|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
nesstar.rdf.RDFObject
nesstar.rdf.RDFBag
public class RDFBag
A Bag of RDF objects.
BUG: we assume that it contains only references to objects, there is no handling of strings or other simple types.
| Field Summary |
|---|
| Fields inherited from class nesstar.rdf.RDFObject |
|---|
COLSEP, IS_GETTER, IS_PART, IS_PART_OF, WRITE_OP |
| Constructor Summary | |
|---|---|
RDFBag(RDFDB db)
Constructor for the RDFBag object |
|
RDFBag(RDFDB db,
URL id)
Constructor for the RDFBag object |
|
| Method Summary | |
|---|---|
void |
add(int index,
RDFObject element)
Method |
void |
add(Object[] objs)
Method |
void |
add(RDFObject obj)
Method |
void |
clear()
Method |
boolean |
contains(URL url)
|
static void |
dbg(String msg)
Method |
Object |
get(int index)
|
static RDFBag |
getBag(RDFDB db,
URL id)
Gets the bag attribute of the RDFBag class |
Object |
getN(int n)
Gets the n attribute of the RDFBag object |
int |
getNSize()
Gets the nSize attribute of the RDFBag object |
Object[] |
getObjs()
Gets the objs attribute of the RDFBag object |
static Object[] |
getObjs(Object[] refs)
|
static Object[] |
getObjs(RDFRef ref)
Gets the objs attribute of the RDFBag class |
static Object[] |
getObjs(Vector refs)
Gets the objs attribute of the RDFBag class |
void |
reload()
Description of the Method |
Object |
remove(int index)
Removes the element at the specified position in this list. |
Object |
set(int index,
RDFObject obj)
Method |
void |
setN(Integer n,
RDFRef ref)
Sets the n attribute of the RDFBag object |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RDFBag(RDFDB db,
URL id)
throws Exception
db - id -
Exception
public RDFBag(RDFDB db)
throws Exception
db -
Exception| Method Detail |
|---|
public void setN(Integer n,
RDFRef ref)
n - The new n valueref - The new n value
public Object set(int index,
RDFObject obj)
throws Exception
index - obj -
Exception
public Object get(int index)
throws Exception
Exception
public static RDFBag getBag(RDFDB db,
URL id)
throws Exception
db - id -
Exceptionpublic Object getN(int n)
n -
public int getNSize()
public Object[] getObjs()
throws Exception
Exception
public static Object[] getObjs(Object[] refs)
throws Exception
refs - the references to be resolved
Exception
public static Object[] getObjs(Vector refs)
throws Exception
refs -
Exception
public static Object[] getObjs(RDFRef ref)
throws Exception
ref -
Exceptionpublic static void dbg(String msg)
msg - public void clear()
clear in class RDFObject
public void add(RDFObject obj)
throws Exception
obj -
Exception
public void add(Object[] objs)
throws Exception
objs -
Exceptionpublic boolean contains(URL url)
url -
public void add(int index,
RDFObject element)
throws Exception
index - element -
Exceptionpublic Object remove(int index)
index - - the index of the element to remove.
public void reload()
throws Exception
reload in class RDFObjectException
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||