public interface Categories extends ExtensibleElement
| Modifier and Type | Method and Description |
|---|---|
Categories |
addCategory(Category category)
Add an atom:category to the listing
|
Category |
addCategory(String term)
Create and add an atom:category to the listing
|
Category |
addCategory(String scheme,
String term,
String label)
Create an add an atom:category to the listing
|
boolean |
contains(String term)
Returns true if this app:categories listing contains a category with the
specified term
|
boolean |
contains(String term,
String scheme)
Returns true if this app:categories listing contains a category with the
specified term and scheme
|
List<Category> |
getCategories()
Lists the complete set of categories
|
List<Category> |
getCategories(String scheme)
Lists the complete set of categories that use the specified scheme
|
List<Category> |
getCategoriesWithScheme()
Returns a copy of the complete set of categories with the scheme attribute set
|
List<Category> |
getCategoriesWithScheme(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(String href)
Sets the value of the href attribute.
|
Categories |
setScheme(String scheme)
Sets the default scheme for this listing of categories
|
addExtension, 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, writeToforEach, iterator, spliteratorIRI getHref()
IRI getResolvedHref()
Categories setHref(String href)
href - The location of an Atompub Categories Documentboolean isFixed()
Categories setFixed(boolean fixed)
fixed - True if the app:categories listing is fixedIRI getScheme()
Categories setScheme(String scheme)
scheme - The default scheme used for this listing of categoriesList<Category> getCategories()
List<Category> getCategories(String scheme)
scheme - The IRI of an atom:category schemeList<Category> getCategoriesWithScheme()
List<Category> getCategoriesWithScheme(String scheme)
scheme - A scheme IRICategories addCategory(Category category)
category - The atom:category to add to the listingCategory addCategory(String term)
term - The string termCategory addCategory(String scheme, String term, String label)
scheme - The scheme IRI for the newly created categoryterm - The string termlabel - The human readable label for the categoryboolean contains(String term)
term - The term to look forboolean contains(String term, String scheme)
term - The term to look forscheme - The IRI schemeboolean isOutOfLine()
Copyright © 2010 - 2020 Adobe. All Rights Reserved