public class FOMCategories extends FOMExtensibleElement implements Categories
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODEACCEPT, AID, ALTERNATE, APP_MEDIA_TYPE, APP_NS, APP_NS_PRE_RFC, APP_PREFIX, ATITLE, ATOM_MEDIA_TYPE, ATOM_NS, AURI, AUTHOR, BASE, CAT_MEDIA_TYPE, CATEGORIES, CATEGORY, CLASS, COLLECTION, CONFIG_FACTORY, CONFIG_PARSER, CONFIG_PARSERFACTORY, CONFIG_STREAMWRITER, CONFIG_WRITER, CONFIG_WRITERFACTORY, CONFIG_XPATH, CONTENT, CONTRIBUTOR, CONTROL, CONTROL_NS, CONTROL_PREFIX, DEFAULT_FACTORY, DEFAULT_PARSER, DEFAULT_PARSERFACTORY, DEFAULT_STREAMWRITER, DEFAULT_WRITER, DEFAULT_WRITERFACTORY, DEFAULT_XPATH, DIV, DRAFT, EDITED, EMAIL, ENTRY, ENTRY_MEDIA_TYPE, FEED, FEED_MEDIA_TYPE, FIXED, GENERATOR, HREF, HREFLANG, HTML, ICON, ID, LABEL, LANG, LENGTH, LINK, LN_ACCEPT, LN_ALTERNATE, LN_ALTERNATE_MULTIPART_RELATED, LN_AUTHOR, LN_BASE, LN_CATEGORIES, LN_CATEGORY, LN_CLASS, LN_COLLECTION, LN_CONTENT, LN_CONTRIBUTOR, LN_CONTROL, LN_DIV, LN_DRAFT, LN_EDITED, LN_EMAIL, LN_ENTRY, LN_FEED, LN_FIXED, LN_GENERATOR, LN_HREF, LN_HREFLANG, LN_ICON, LN_ID, LN_LABEL, LN_LANG, LN_LENGTH, LN_LINK, LN_LOGO, LN_NAME, LN_PUBLISHED, LN_REL, LN_RIGHTS, LN_SCHEME, LN_SERVICE, LN_SOURCE, LN_SPACE, LN_SRC, LN_SUBTITLE, LN_SUMMARY, LN_TERM, LN_TITLE, LN_TYPE, LN_UPDATED, LN_URI, LN_VERSION, LN_WORKSPACE, LOGO, MULTIPART_RELATED_TYPE, NAME, NAMED_PARSER, NAMED_WRITER, NO, PRE_RFC_ACCEPT, PRE_RFC_CATEGORIES, PRE_RFC_COLLECTION, PRE_RFC_CONTROL, PRE_RFC_DRAFT, PRE_RFC_EDITED, PRE_RFC_SERVICE, PRE_RFC_WORKSPACE, PREFIX, PREFIXED_TITLE, PUBLISHED, REL, RIGHTS, SCHEME, SERVICE, SOURCE, SPACE, SRC, STREAM_WRITER, SUBTITLE, SUMMARY, TERM, TEXT, TITLE, TYPE, UPDATED, URI, VERSION, WORKSPACE, XHTML, XHTML_NS, XML, XML_MEDIA_TYPE, XML_NS, YESARRAY_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, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI| Constructor and Description |
|---|
FOMCategories() |
| Modifier and Type | Method and Description |
|---|---|
Categories |
addCategory(Category category)
Add an atom:category to the listing
|
Category |
addCategory(java.lang.String term)
Create and add an atom:category to the listing
|
Category |
addCategory(java.lang.String scheme,
java.lang.String term,
java.lang.String label)
Create an add an atom:category to the listing
|
boolean |
contains(java.lang.String term)
Returns true if this app:categories listing contains a category with the
specified term
|
boolean |
contains(java.lang.String term,
java.lang.String scheme)
Returns true if this app:categories listing contains a category with the
specified term and scheme
|
java.util.List<Category> |
getCategories()
Lists the complete set of categories
|
java.util.List<Category> |
getCategories(java.lang.String scheme)
Lists the complete set of categories that use the specified scheme
|
java.util.List<Category> |
getCategoriesWithScheme()
Returns a copy of the complete set of categories with the scheme attribute set
|
java.util.List<Category> |
getCategoriesWithScheme(java.lang.String scheme)
Returns a copy of the complete set of categories with the scheme
attribute set as specified in 7.2.1.
|
IRI |
getHref()
When contained within an app:collection element, the app:categories element
can have an href attribute whose value MUST point to an Atompub Categories Document.
|
IRI |
getResolvedHref()
Returns the value of the href attribute resolved against the in-scope Base URI
|
IRI |
getScheme()
The app:categories element may specify a default scheme attribute for listed
atom:category elements that do not have their own scheme attribute.
|
boolean |
isFixed()
If an app:categories element is marked as fixed, then the set of atom:category
elements is considered to be a closed set.
|
boolean |
isOutOfLine()
Returns true if the href attribute is set
|
Categories |
setFixed(boolean fixed)
Sets whether or not this is a fixed listing of categories.
|
Categories |
setHref(java.lang.String href)
Sets the value of the href attribute.
|
Categories |
setScheme(java.lang.String scheme)
Sets the default scheme for this listing of categories
|
addExtension, addExtension, addExtension, addExtension, addExtension, addExtensions, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtensionaddComment, clone, complete, declareNS, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDefaultWriterOptions, getDocument, getElements, getExtensionAttributes, getFactory, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getResolvedBaseUri, getText, iterator, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText, toFormattedString, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeToaddAttribute, addAttribute, addChild, build, buildNext, buildWithAttachments, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, detach, discard, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getBuilder, getChildElements, getChildren, getChildrenWithName, getDefaultNamespace, getFirstChildWithName, getFirstElement, getFirstOMChild, getLineNumber, getLocalName, getNamespace, getNextOMSibling, getQName, getTextAsQName, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReaderWithoutCaching, internalSerialize, internalSerializeAndConsume, isComplete, removeAttribute, resolveQName, setBuilder, setFirstChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsumegetOMFactory, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setTypeequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddExtension, addExtension, addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtensiondeclareNS, 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, setTextaddComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeToaddAttribute, 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, toStringWithConsumebuild, buildWithAttachments, detach, discard, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumepublic Categories addCategory(Category category)
CategoriesaddCategory in interface Categoriescategory - The atom:category to add to the listingpublic Category addCategory(java.lang.String term)
CategoriesaddCategory in interface Categoriesterm - The string termpublic Category addCategory(java.lang.String scheme, java.lang.String term, java.lang.String label)
CategoriesaddCategory in interface Categoriesscheme - The scheme IRI for the newly created categoryterm - The string termlabel - The human readable label for the categorypublic java.util.List<Category> getCategories()
CategoriesgetCategories in interface Categoriespublic java.util.List<Category> getCategories(java.lang.String scheme)
CategoriesgetCategories in interface Categoriesscheme - The IRI of an atom:category schemepublic java.util.List<Category> getCategoriesWithScheme()
CategoriesgetCategoriesWithScheme in interface Categoriespublic java.util.List<Category> getCategoriesWithScheme(java.lang.String scheme)
CategoriesgetCategoriesWithScheme in interface Categoriesscheme - A scheme IRIpublic IRI getScheme()
CategoriesgetScheme in interface Categoriespublic boolean isFixed()
CategoriesisFixed in interface Categoriespublic Categories setFixed(boolean fixed)
CategoriessetFixed in interface Categoriesfixed - True if the app:categories listing is fixedpublic Categories setScheme(java.lang.String scheme)
CategoriessetScheme in interface Categoriesscheme - The default scheme used for this listing of categoriespublic IRI getHref()
CategoriesgetHref in interface Categoriespublic IRI getResolvedHref()
CategoriesgetResolvedHref in interface Categoriespublic Categories setHref(java.lang.String href)
CategoriessetHref in interface Categorieshref - The location of an Atompub Categories Documentpublic boolean contains(java.lang.String term)
Categoriescontains in interface Categoriesterm - The term to look forpublic boolean contains(java.lang.String term,
java.lang.String scheme)
Categoriescontains in interface Categoriesterm - The term to look forscheme - The IRI schemepublic boolean isOutOfLine()
CategoriesisOutOfLine in interface CategoriesCopyright © 2010 - 2019 Adobe. All Rights Reserved