|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mindswap.rdfparser.rdf.util.RDFResourceList
Constructor Summary | |
RDFResourceList()
|
Method Summary | |
void |
addAll(RDFResourceList rl)
Adds all elements of parameter to current list. |
void |
addElement(RDFResource res)
Adds the parameter to the list if it has not already been added. |
void |
clear()
Removes all elements from the list. |
java.lang.Object |
clone()
Makes a copy of this object. |
boolean |
contains(java.lang.Object obj)
Returns true or false depending on whether the parameter is currently in the list. |
RDFResource |
elementAt(int index)
Returns the element at the specified index. |
RDFResource |
getResourceById(java.lang.String id)
Search through the list and return the resource with the specified id. |
RDFResourceList |
getResourceByType(java.lang.String type)
Search through the list and return all resources with the specifed type. |
int |
indexOf(RDFResource r)
Returns the index of the parameter in the list. |
void |
remove(int index)
Removes the element at the index from the list. |
void |
remove(RDFResource res)
Removes the element from the list if it is in the list. |
void |
removeElement(RDFResource r)
Removes element from list if currently in the list. |
void |
set(int index,
RDFResource r)
Sets the element at the specified index to the parameter r. |
void |
setElementAt(RDFResource r,
int index)
Sets the element at the specified index to the parameter r. |
int |
size()
Returns the number of elements currently in the list. |
java.lang.String |
toRDF()
Produce the RDF for each element in this list. |
java.lang.String |
toRDF(Namespaces ns,
int indent)
Produce the RDF for each element in this list. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RDFResourceList()
Method Detail |
public java.lang.Object clone()
public void addElement(RDFResource res)
res
- Element to be addedpublic void remove(RDFResource res)
res
- Element to be removedpublic void remove(int index)
index
- Index to remove element frompublic RDFResource elementAt(int index)
index
- Index in arraypublic int size()
public void clear()
public boolean contains(java.lang.Object obj)
obj
- Element to search forpublic void set(int index, RDFResource r)
index
- Index in arrayr
- Element to setsetElementAt(org.mindswap.rdfparser.rdf.RDFResource, int)
public void setElementAt(RDFResource r, int index)
f
- Element to setindex
- Index in arrayset(int, org.mindswap.rdfparser.rdf.RDFResource)
public void removeElement(RDFResource r)
r
- Element to removepublic void addAll(RDFResourceList rl)
rl
- List to be addedpublic int indexOf(RDFResource r)
fn
- Element to search forpublic RDFResource getResourceById(java.lang.String id)
id
- Id of resource to search forpublic RDFResourceList getResourceByType(java.lang.String type)
type
- Type of resource to search forpublic java.lang.String toRDF()
public java.lang.String toRDF(Namespaces ns, int indent)
ns
- Namespace object for encoding this listindent
- number of spaces to indent the RDF
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |