|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.representation.Variant
org.restlet.representation.RepresentationInfo
org.restlet.representation.Representation
org.restlet.representation.CharacterRepresentation
org.restlet.representation.WriterRepresentation
org.restlet.ext.xml.XmlRepresentation
org.restlet.ext.xml.SaxRepresentation
org.restlet.ext.atom.Categories
public class Categories
Collection of Category
entries.
Field Summary |
---|
Fields inherited from class org.restlet.representation.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
Categories(Client clientDispatcher,
String categoriesUri)
Constructor. |
|
Categories(Context context,
String categoriesUri)
Constructor. |
|
Categories(Representation categoriesFeed)
Constructor. |
|
Categories(String categoriesUri)
Constructor. |
Method Summary | |
---|---|
Reference |
getBaseReference()
Returns the base reference used to resolve relative references found within the scope of the xml:base attribute. |
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(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. |
Methods inherited from class org.restlet.ext.xml.SaxRepresentation |
---|
getInputSource, getSaxSource, isSecureProcessing, parse, release, setSaxSource, setSecureProcessing, write |
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, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Categories(Client clientDispatcher, String categoriesUri) throws IOException
clientDispatcher
- The client HTTP dispatcher.categoriesUri
- The feed URI.
IOException
public Categories(Context context, String categoriesUri) throws IOException
context
- The context from which the client dispatcher will be
retrieved.categoriesUri
- The feed URI.
IOException
public Categories(Representation categoriesFeed) throws IOException
categoriesFeed
- The XML entries document.
IOException
public Categories(String categoriesUri) throws IOException
categoriesUri
- The feed URI.
IOException
Method Detail |
---|
public Reference getBaseReference()
public 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(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 IOException
write
in class SaxRepresentation
writer
- The XML writer to write to.
IOException
public void writeElement(XmlWriter writer) throws SAXException
writer
- The XML writer to write to.
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |