Package org.restlet.ext.atom
Class Categories
- java.lang.Object
-
- All Implemented Interfaces:
javax.xml.namespace.NamespaceContext
public class Categories extends SaxRepresentation
Collection ofCategoryentries.
-
-
Field Summary
Fields Modifier and Type Field Description private ReferencebaseReferenceThe base reference used to resolve relative references found within the scope of the xml:base attribute.private java.util.List<Category>entriesThe list of entries.private booleanfixedIndicates if the list is fixed.private Referencescheme-
Fields inherited from class org.restlet.ext.xml.SaxRepresentation
XML_SECURE_PROCESSING
-
Fields inherited from class org.restlet.ext.xml.XmlRepresentation
XML_EXPANDING_ENTITY_REFS, XML_VALIDATING_DTD
-
Fields inherited from class org.restlet.representation.Representation
UNKNOWN_SIZE
-
-
Constructor Summary
Constructors Constructor Description Categories(java.lang.String categoriesUri)Constructor.Categories(Client clientDispatcher, java.lang.String categoriesUri)Constructor.Categories(Context context, java.lang.String categoriesUri)Constructor.Categories(Representation categoriesFeed)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferencegetBaseReference()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.ReferencegetScheme()Returns the scheme.booleanisFixed()Indicates if the list is fixed.voidsetBaseReference(Reference baseReference)Sets the base reference used to resolve relative references found within the scope of the xml:base attribute.voidsetEntries(java.util.List<Category> entries)Sets the list of entries.voidsetFixed(boolean fixed)Indicates if the list is fixed.voidsetScheme(Reference scheme)Sets the scheme.voidwrite(XmlWriter writer)Writes the representation to a XML writer.voidwriteElement(XmlWriter writer)Writes the representation to a XML writer.-
Methods inherited from class org.restlet.ext.xml.SaxRepresentation
getInputSource, getSaxSource, isSecureProcessing, parse, release, setSaxSource, setSecureProcessing, write
-
Methods inherited from class org.restlet.ext.xml.XmlRepresentation
getBoolean, getDocument, getDocumentBuilder, getDomSource, getEntityResolver, getErrorHandler, getNamespaces, getNamespaceURI, getNode, getNodes, getNumber, getPrefix, getPrefixes, getSaxSource, getSchema, getStreamSource, getText, getTextContent, isCoalescing, isExpandingEntityRefs, isIgnoringComments, isIgnoringExtraWhitespaces, isNamespaceAware, isValidatingDtd, isXIncludeAware, setCoalescing, setEntityResolver, setErrorHandler, setExpandingEntityRefs, setIgnoringComments, setIgnoringExtraWhitespaces, setNamespaceAware, setNamespaces, setSchema, setSchema, setValidatingDtd, setXIncludeAware, validate, validate, validate, validate
-
Methods inherited from class org.restlet.representation.WriterRepresentation
getReader
-
Methods inherited from class org.restlet.representation.CharacterRepresentation
getChannel, getStream, write, write
-
Methods inherited from class org.restlet.representation.Representation
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient
-
Methods inherited from class org.restlet.representation.RepresentationInfo
getModificationDate, getTag, setModificationDate, setTag
-
Methods inherited from class org.restlet.representation.Variant
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
-
-
-
-
Field Detail
-
baseReference
private volatile Reference baseReference
The base reference used to resolve relative references found within the scope of the xml:base attribute.
-
entries
private volatile java.util.List<Category> entries
The list of entries.
-
fixed
private boolean fixed
Indicates if the list is fixed.
-
scheme
private Reference scheme
-
-
Constructor Detail
-
Categories
public Categories(Client clientDispatcher, java.lang.String categoriesUri) throws java.io.IOException
Constructor.- Parameters:
clientDispatcher- The client HTTP dispatcher.categoriesUri- The feed URI.- Throws:
java.io.IOException
-
Categories
public Categories(Context context, java.lang.String categoriesUri) throws java.io.IOException
Constructor.- Parameters:
context- The context from which the client dispatcher will be retrieved.categoriesUri- The feed URI.- Throws:
java.io.IOException
-
Categories
public Categories(Representation categoriesFeed) throws java.io.IOException
Constructor.- Parameters:
categoriesFeed- The XML entries document.- Throws:
java.io.IOException
-
Categories
public Categories(java.lang.String categoriesUri) throws java.io.IOExceptionConstructor.- Parameters:
categoriesUri- The feed URI.- Throws:
java.io.IOException
-
-
Method Detail
-
getBaseReference
public Reference getBaseReference()
Returns the base reference used to resolve relative references found within the scope of the xml:base attribute.- Returns:
- The base reference used to resolve relative references found within the scope of the xml:base attribute.
-
getEntries
public java.util.List<Category> getEntries()
Returns the list of entries.- Returns:
- The list of entries.
-
getScheme
public Reference getScheme()
Returns the scheme.- Returns:
- The scheme.
-
isFixed
public boolean isFixed()
Indicates if the list is fixed.- Returns:
- True if the list is fixed.
-
setBaseReference
public void setBaseReference(Reference baseReference)
Sets the base reference used to resolve relative references found within the scope of the xml:base attribute.- Parameters:
baseReference- The base reference used to resolve relative references found within the scope of the xml:base attribute.
-
setEntries
public void setEntries(java.util.List<Category> entries)
Sets the list of entries.- Parameters:
entries- The list of entries.
-
setFixed
public void setFixed(boolean fixed)
Indicates if the list is fixed.- Parameters:
fixed- True if the list is fixed.
-
setScheme
public void setScheme(Reference scheme)
Sets the scheme.- Parameters:
scheme- The scheme.
-
write
public void write(XmlWriter writer) throws java.io.IOException
Writes the representation to a XML writer.- Overrides:
writein classSaxRepresentation- Parameters:
writer- The XML writer to write to.- Throws:
java.io.IOException
-
writeElement
public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
Writes the representation to a XML writer.- Parameters:
writer- The XML writer to write to.- Throws:
org.xml.sax.SAXException
-
-