|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.gwt.util.WrapperList<Reference>
org.restlet.gwt.data.ReferenceList
public class ReferenceList
List of URI references.
Constructor Summary | |
---|---|
ReferenceList()
Constructor. |
|
ReferenceList(int initialCapacity)
Constructor. |
|
ReferenceList(java.util.List<Reference> delegate)
Constructor. |
|
ReferenceList(Representation uriList)
Constructor from a "text/uri-list" representation. |
Method Summary | |
---|---|
boolean |
add(java.lang.String uri)
Creates then adds a reference at the end of the list. |
Reference |
getIdentifier()
Returns the list identifier. |
Representation |
getTextRepresentation()
Returns a representation of the list in the "text/uri-list" format. |
Representation |
getWebRepresentation()
Returns a representation of the list in "text/html" format. |
void |
setIdentifier(Reference identifier)
Sets the list reference. |
void |
setIdentifier(java.lang.String identifier)
Sets the list reference. |
ReferenceList |
subList(int fromIndex,
int toIndex)
Returns a COPY of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. |
Methods inherited from class org.restlet.gwt.util.WrapperList |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, getDelegate, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReferenceList()
public ReferenceList(int initialCapacity)
initialCapacity
- The initial list capacity.public ReferenceList(java.util.List<Reference> delegate)
delegate
- The delegate list.public ReferenceList(Representation uriList) throws java.lang.Exception
uriList
- The "text/uri-list" representation to parse.
java.io.IOException
java.lang.Exception
Method Detail |
---|
public boolean add(java.lang.String uri)
uri
- The uri of the reference to add.
public Reference getIdentifier()
public Representation getTextRepresentation()
public Representation getWebRepresentation()
public void setIdentifier(Reference identifier)
identifier
- The list identifier.public void setIdentifier(java.lang.String identifier)
identifier
- The list identifier as a URI.public ReferenceList subList(int fromIndex, int toIndex)
subList
in interface java.util.List<Reference>
subList
in class WrapperList<Reference>
fromIndex
- The start position.toIndex
- The end position (exclusive).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |