|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axiom.om.impl.llom.OMNodeImpl
org.apache.axiom.om.impl.llom.OMElementImpl
org.apache.abdera.parser.stax.FOMElement
org.apache.abdera.parser.stax.FOMExtensibleElement
org.apache.abdera.parser.stax.FOMSource
org.apache.abdera.parser.stax.FOMFeed
public class FOMFeed
| Field Summary |
|---|
| Fields inherited from class org.apache.axiom.om.impl.llom.OMElementImpl |
|---|
attributes, DEFAULT_DEFAULT_NS_OBJECT, firstChild, lastChild, localName, namespaces, noPrefixNamespaceCounter, ns, qName |
| Fields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
|---|
builder, done, factory, nextSibling, nodeType, parent, previousSibling |
| Fields inherited from interface org.apache.axiom.om.OMNode |
|---|
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
| Fields inherited from interface org.apache.axiom.om.OMConstants |
|---|
ARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DATA_HANDLER, DEFAULT_CHAR_SET_ENCODING, DEFAULT_DEFAULT_NAMESPACE, DEFAULT_XML_VERSION, IS_BINARY, IS_DATA_HANDLERS_AWARE, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER, XMLATTRTYPE_CDATA, XMLATTRTYPE_ENTITIES, XMLATTRTYPE_ENTITY, XMLATTRTYPE_ID, XMLATTRTYPE_IDREF, XMLATTRTYPE_IDREFS, XMLATTRTYPE_NMTOKEN, XMLATTRTYPE_NMTOKENS, XMLATTRTYPE_NOTATION, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI |
| Constructor Summary | |
|---|---|
|
FOMFeed()
|
protected |
FOMFeed(org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
|
protected |
FOMFeed(org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMXMLParserWrapper builder)
|
protected |
FOMFeed(QName qname,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
|
protected |
FOMFeed(QName qname,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMXMLParserWrapper builder)
|
protected |
FOMFeed(String name,
org.apache.axiom.om.OMNamespace namespace,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
|
| Method Summary | |
|---|---|
void |
addChild(org.apache.axiom.om.OMNode node)
|
Entry |
addEntry()
Adds a new Entry to the end of the Feeds collection of entries |
Feed |
addEntry(Entry entry)
Adds a new Entry to the end of the Feeds collection of entries |
Source |
getAsSource()
Creates a Source element from this Feed |
List<Entry> |
getEntries()
Returns the complete set of entries contained in this feed |
Entry |
getEntry(String id)
Retrieves the first entry in the feed with the given atom:id value |
Entry |
insertEntry()
Adds a new Entry to the start of the Feeds collection of entries |
Feed |
insertEntry(Entry entry)
Adds a new Entry to the start of the Feeds collection of entries |
Feed |
sortEntries(Comparator<Entry> comparator)
Sorts entries using the given comparator |
Feed |
sortEntriesByEdited(boolean new_first)
Sorts entries by the app:edited property. |
Feed |
sortEntriesByUpdated(boolean new_first)
Sorts entries by the atom:updated property |
| Methods inherited from class org.apache.abdera.parser.stax.FOMExtensibleElement |
|---|
addExtension, addExtension, addExtension, addExtension, addExtension, addExtensions, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtension |
| Methods inherited from class org.apache.axiom.om.impl.llom.OMElementImpl |
|---|
addAttribute, addAttribute, build, buildNext, buildWithAttachments, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, detach, discard, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getBuilder, getChildElements, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDefaultNamespace, getFirstChildWithName, getFirstElement, getFirstOMChild, getLineNumber, getLocalName, getNamespace, getNextOMSibling, getQName, getTextAsQName, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReaderWithoutCaching, internalSerialize, internalSerialize, internalSerializeAndConsume, isComplete, notifyChildComplete, removeAttribute, resolveQName, setBuilder, setFirstChild, setLastChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsume |
| Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
|---|
close, getOMFactory, getParent, getPreviousOMSibling, importNode, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setType |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.abdera.model.ExtensibleElement |
|---|
addExtension, addExtension, addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtension |
| Methods inherited from interface org.apache.abdera.model.Element |
|---|
declareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getElements, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText |
| Methods inherited from interface org.apache.abdera.model.Base |
|---|
addComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Methods inherited from interface org.apache.axiom.om.OMElement |
|---|
addAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getBuilder, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getLocalName, getNamespace, getQName, getTextAsQName, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeAttribute, resolveQName, setBuilder, setFirstChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsume |
| Methods inherited from interface org.apache.axiom.om.OMNode |
|---|
build, buildWithAttachments, close, detach, discard, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
| Methods inherited from interface org.apache.axiom.om.OMContainer |
|---|
buildNext, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild, isComplete |
| Methods inherited from interface org.apache.axiom.om.impl.OMContainerEx |
|---|
setComplete |
| Constructor Detail |
|---|
public FOMFeed()
protected FOMFeed(String name,
org.apache.axiom.om.OMNamespace namespace,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException
protected FOMFeed(QName qname,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
protected FOMFeed(QName qname,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMXMLParserWrapper builder)
protected FOMFeed(org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException
protected FOMFeed(org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMXMLParserWrapper builder)
throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException| Method Detail |
|---|
public List<Entry> getEntries()
Feed
getEntries in interface Feedpublic Feed addEntry(Entry entry)
Feed
addEntry in interface Feedentry - Add an entrypublic Entry addEntry()
Feed
addEntry in interface Feedpublic Feed insertEntry(Entry entry)
Feed
insertEntry in interface Feedentry - An atom:entry to insertpublic Entry insertEntry()
Feed
insertEntry in interface Feedpublic Source getAsSource()
Feed
getAsSource in interface Feedpublic void addChild(org.apache.axiom.om.OMNode node)
addChild in interface org.apache.axiom.om.OMContaineraddChild in class org.apache.axiom.om.impl.llom.OMElementImplpublic Feed sortEntriesByUpdated(boolean new_first)
Feed
sortEntriesByUpdated in interface Feednew_first - If true, entries with newer atom:updated values will come firstpublic Feed sortEntriesByEdited(boolean new_first)
Feed
sortEntriesByEdited in interface Feedpublic Feed sortEntries(Comparator<Entry> comparator)
Feed
sortEntries in interface Feedcomparator - Sort the entries using the comparatorpublic Entry getEntry(String id)
Feed
getEntry in interface Feedid - The id to retrieve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||