|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.nava.informa.utils.AtomParserUtils
public class AtomParserUtils
Common utility functions for Atom 0.3 and Atom 1.0 parser
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOGGER
|
Constructor Summary | |
---|---|
AtomParserUtils()
|
Method Summary | |
---|---|
static String |
getItemLink(org.jdom.Element item,
org.jdom.Namespace defNS)
Looks for link sub-elements of type "link" and selects the most preferred. |
static int |
getPreferenceOrderForItemLinkType(String type,
String rel)
Returns order of item link type preference. |
static String |
getValue(org.jdom.Element elt,
String mode)
Returns value of the element. |
static List |
trimContents(List contents)
Cuts all empty (whitespace) text blocks from the head and tail of contents list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOGGER
Constructor Detail |
---|
public AtomParserUtils()
Method Detail |
---|
public static String getItemLink(org.jdom.Element item, org.jdom.Namespace defNS)
item
- item element.defNS
- default namespace.
null
.public static int getPreferenceOrderForItemLinkType(String type, String rel)
type
- type ("text/html", "text/plain", "application/xml" ...).
public static String getValue(org.jdom.Element elt, String mode)
elt
- the element to retrieve the value from.mode
- can be one of "escaped", "base64" or "xml". If null, "xml" is assumed.public static List trimContents(List contents)
contents
- list of contents.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |