org.apache.lucene.gdata.gom.core.utils
Class GOMUtils

java.lang.Object
  extended by org.apache.lucene.gdata.gom.core.utils.GOMUtils

public class GOMUtils
extends Object

Author:
Simon Willnauer

Constructor Summary
GOMUtils()
           
 
Method Summary
static GOMAttribute buildAtomAttribute(String aValue, String aName)
          Builds a atom namespace attribute
static GOMAttribute buildDefaultNamespaceAttribute(String aValue, String aName)
           
static String buildRfc3339DateFormat(long aMillisecondLong)
           
static String buildRfc822Date(long aMillisecondLong)
           
static GOMAttribute buildXMLNamespaceAttribute(String aValue, String aName)
           
static GOMAttribute getAttributeByContentType(ContentType type)
           
static GOMAttribute getAttributeByContentTypeDefaultNs(ContentType type)
           
 GOMLink getHtmlLink(List<GOMLink> links)
           
static boolean isRfc3339DateFormat(String aString)
           
static long parseRfc3339DateFormat(String aString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GOMUtils

public GOMUtils()
Method Detail

getAttributeByContentType

public static GOMAttribute getAttributeByContentType(ContentType type)
Parameters:
type -
Returns:

getAttributeByContentTypeDefaultNs

public static GOMAttribute getAttributeByContentTypeDefaultNs(ContentType type)
Parameters:
type -
Returns:

buildAtomAttribute

public static GOMAttribute buildAtomAttribute(String aValue,
                                              String aName)
Builds a atom namespace attribute

Parameters:
aValue - attribute value
aName - attribute name
Returns:
a GOMAttribute

buildDefaultNamespaceAttribute

public static GOMAttribute buildDefaultNamespaceAttribute(String aValue,
                                                          String aName)
Parameters:
aValue -
aName -
Returns:

buildXMLNamespaceAttribute

public static GOMAttribute buildXMLNamespaceAttribute(String aValue,
                                                      String aName)
Parameters:
aValue -
aName -
Returns:

isRfc3339DateFormat

public static boolean isRfc3339DateFormat(String aString)
Parameters:
aString -
Returns:

parseRfc3339DateFormat

public static long parseRfc3339DateFormat(String aString)
Parameters:
aString -
Returns:

buildRfc3339DateFormat

public static String buildRfc3339DateFormat(long aMillisecondLong)
Parameters:
aMillisecondLong -
Returns:

buildRfc822Date

public static String buildRfc822Date(long aMillisecondLong)
Parameters:
aMillisecondLong -
Returns:

getHtmlLink

public GOMLink getHtmlLink(List<GOMLink> links)


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.