|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.util.WrapperList<Reference>
org.restlet.data.ReferenceList
public class ReferenceList
List of URI references.
| Constructor Summary | |
|---|---|
ReferenceList()
Constructor. |
|
ReferenceList(int initialCapacity)
Constructor. |
|
ReferenceList(List<Reference> delegate)
Constructor. |
|
ReferenceList(Representation uriList)
Constructor from a "text/uri-list" representation. |
|
| Method Summary | |
|---|---|
boolean |
add(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(String identifier)
Sets the list reference. |
ReferenceList |
subList(int fromIndex,
int toIndex)
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. |
| Methods inherited from class org.restlet.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(List<Reference> delegate)
delegate - The delegate list.
public ReferenceList(Representation uriList)
throws IOException
uriList - The "text/uri-list" representation to parse.
IOException| Method Detail |
|---|
public boolean add(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(String identifier)
identifier - The list identifier as a URI.
public ReferenceList subList(int fromIndex,
int toIndex)
subList in interface 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 | |||||||||