public class Categories extends SaxRepresentation
Category
entries.XML_SECURE_PROCESSING
XML_EXPANDING_ENTITY_REFS, XML_VALIDATING_DTD
UNKNOWN_SIZE
Constructor and Description |
---|
Categories(Client clientDispatcher,
java.lang.String categoriesUri)
Constructor.
|
Categories(Context context,
java.lang.String categoriesUri)
Constructor.
|
Categories(Representation categoriesFeed)
Constructor.
|
Categories(java.lang.String categoriesUri)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Reference |
getBaseReference()
Returns the base reference used to resolve relative references found
within the scope of the xml:base attribute.
|
java.util.List<Category> |
getEntries()
Returns the list of entries.
|
Reference |
getScheme()
Returns the scheme.
|
boolean |
isFixed()
Indicates if the list is fixed.
|
void |
setBaseReference(Reference baseReference)
Sets the base reference used to resolve relative references found within
the scope of the xml:base attribute.
|
void |
setEntries(java.util.List<Category> entries)
Sets the list of entries.
|
void |
setFixed(boolean fixed)
Indicates if the list is fixed.
|
void |
setScheme(Reference scheme)
Sets the scheme.
|
void |
write(XmlWriter writer)
Writes the representation to a XML writer.
|
void |
writeElement(XmlWriter writer)
Writes the representation to a XML writer.
|
getInputSource, getSaxSource, isSecureProcessing, parse, release, setSaxSource, setSecureProcessing, write
getBoolean, getDocument, getDocumentBuilder, getDomSource, getEntityResolver, getErrorHandler, getNamespaces, getNamespaceURI, getNode, getNodes, getNumber, getPrefix, getPrefixes, getSaxSource, getSchema, getStreamSource, getText, isCoalescing, isExpandingEntityRefs, isIgnoringComments, isIgnoringExtraWhitespaces, isNamespaceAware, isValidatingDtd, isXIncludeAware, setCoalescing, setEntityResolver, setErrorHandler, setExpandingEntityRefs, setIgnoringComments, setIgnoringExtraWhitespaces, setNamespaceAware, setNamespaces, setSchema, setSchema, setValidatingDtd, setXIncludeAware, validate, validate, validate, validate
getReader
getChannel, getStream, write, write
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient
getModificationDate, getTag, setModificationDate, setTag
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
public Categories(Client clientDispatcher, java.lang.String categoriesUri) throws java.io.IOException
clientDispatcher
- The client HTTP dispatcher.categoriesUri
- The feed URI.java.io.IOException
public Categories(Context context, java.lang.String categoriesUri) throws java.io.IOException
context
- The context from which the client dispatcher will be
retrieved.categoriesUri
- The feed URI.java.io.IOException
public Categories(Representation categoriesFeed) throws java.io.IOException
categoriesFeed
- The XML entries document.java.io.IOException
public Categories(java.lang.String categoriesUri) throws java.io.IOException
categoriesUri
- The feed URI.java.io.IOException
public Reference getBaseReference()
public java.util.List<Category> getEntries()
public Reference getScheme()
public boolean isFixed()
public void setBaseReference(Reference baseReference)
baseReference
- The base reference used to resolve relative references found
within the scope of the xml:base attribute.public void setEntries(java.util.List<Category> entries)
entries
- The list of entries.public void setFixed(boolean fixed)
fixed
- True if the list is fixed.public void setScheme(Reference scheme)
scheme
- The scheme.public void write(XmlWriter writer) throws java.io.IOException
write
in class SaxRepresentation
writer
- The XML writer to write to.java.io.IOException
public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
writer
- The XML writer to write to.org.xml.sax.SAXException
Copyright © 2005-2020 Restlet.