|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
nesstar.rdf.RDFObject
public abstract class RDFObject
A basic implementation of RDFObj.
Most RDF object classes will extends this class rather than implementing RDFObj directly.
| Field Summary | |
|---|---|
static char |
COLSEP
|
static String |
IS_GETTER
|
static String |
IS_PART
|
static String |
IS_PART_OF
|
static String |
WRITE_OP
|
| Constructor Summary | |
|---|---|
RDFObject()
|
|
| Method Summary | |
|---|---|
Statement |
AddProperty(URL property,
RDFObject value,
String label,
String comment)
|
Statement |
AddStringProperty(URL property,
String value,
String label,
String comment)
|
void |
chkFinal(Object fld)
Returns the label (a one word name) of the Field |
void |
clear()
Clear all properties of this object |
int |
compareTo(Object o)
Description of the Method |
static void |
dbg(String msg)
Method |
boolean |
equals(Object obj)
This method is called after the object has been created and before its properties have been set |
static void |
err(Exception e)
Method |
static void |
err(String s)
Method |
String |
get_comment()
|
String |
get_creationDate()
|
String |
get_label()
Gets the label attribute of the RDFObject object |
Object |
get(RDFProperty property)
|
RDFObject |
getAccessCondition()
Gets the accessCondition attribute of the RDFObject object |
PropertyBinding |
getBinding(URL property)
Gets the binding attribute of the RDFObject object |
Collection |
getBindings()
Gets the bindings attribute of the RDFObject object |
String |
getBookmarkLabel()
Gets the bookmarkLabel attribute of the RDFObject object |
String |
getCollectionURL(String colName)
|
String |
getComment()
Returns a human readable comment/description of the object as an HTML string (it should contain only basic HTML markers). |
String |
getCreationDate()
Returns a human readable creationDate/description of the object as an HTML string (it should contain only basic HTML markers). |
RDFDB |
getDB()
Gets the dB attribute of the RDFObject object |
static FeatureDescriptor |
getDescriptor(String featureName)
|
static FeatureDescriptor |
getDescriptor(String featureName,
Object obj)
|
RDFClass |
getDomain()
Gets the domain attribute of the RDFObject object |
static Collection |
getGetterMethods()
|
URL |
getID()
Gets the ID attribute of the RDFObject object |
Vector |
getInitialisedProperties()
Gets the initialisedProperties attribute of the RDFObject object |
String |
getInternalID()
Return the internal ID for the RDFObject object. |
String |
getLabel()
|
static long |
getLastClear()
|
static Collection |
getPartsDescriptor()
|
static Collection |
getPartsDescriptor(Class cls)
|
static Collection |
getPartsDescriptor(Object obj)
|
String |
getPath()
Returns the path of an object in a context (for example a folder where the object was found by a search) |
Vector |
getProperties()
Gets the properties attribute of the RDFObject object |
List |
GetProperties(URL property)
retrieve a list of properties with the same name |
Object |
GetProperty(URL property)
Returns the value of the given property as seen by the current user. |
Statement |
GetPropertyStatement(URL property)
|
List |
GetPropertyStatements(URL property)
|
RDFClass |
getRange()
Gets the range attribute of the RDFObject object |
String |
getRangeType()
Gets the rangeType attribute of the RDFObject object |
RDFRef |
getRef(RDFObj to)
Gets the ref attribute of the RDFObject object |
RDFRef |
getRef(String to)
Gets the ref attribute of the RDFObject object |
Server |
getServer()
|
String |
getShortId()
|
String |
getShortID()
Deprecated. we do not encourage the use of this method in the api, instead use the local object to retrieve component id's |
StatementHome |
getStatementHome()
|
String[] |
GetStringProperties(URL property)
retrieve a list of properties with same name and return it as String array |
Object |
GetStringProperty(URL property)
retrieve a property and return it as String |
static long |
getTimeoutInSecs()
|
RDFClass |
getType()
Returns the class/type for this object BUG: an RDF obj can have multiple classes |
void |
init(RDFDB db,
URL id)
This might be called when a Constructor is called while creating an RDFObj from an RDF stream or when creating on obj directly, ex: new RDFBag(db); |
void |
init(RDFDB db,
URL id,
String type)
Method |
void |
initialised()
Method |
boolean |
isComplete()
|
boolean |
isLocal()
|
boolean |
isMeta()
|
boolean |
isStale()
check if an object is stale, either because it has explicitly been set to stale or it has timed out |
void |
loaded()
Mark that the object has been reloaded |
void |
neededCollectionReload(Object value,
String collectionName)
|
boolean |
neededReload()
|
boolean |
neededReload(Object value)
|
boolean |
neededReload(Object value,
boolean basicField)
|
boolean |
neededReload(URL property,
Object value)
|
boolean |
needsReload(Object value,
boolean basicField)
|
void |
reload()
Reload the object from the Net |
void |
remove()
Method |
void |
set_comment(String comment)
|
void |
set_complete(String complete)
|
void |
set_creationDate(String creationDate)
|
void |
set_label(String label)
Sets the label attribute of the RDFObject object |
void |
set(RDFProperty property,
Object value)
Method |
void |
setComment(String comment)
|
void |
setComplete(boolean complete)
|
void |
setCreationDate(String creationDate)
|
void |
setDB(RDFDB db)
Sets the dB attribute of the RDFObject object |
void |
setHardOrSoft(RDFProperty property,
Object propertyValue)
Sets the hardOrSoft attribute of the RDFObject object |
void |
setID(URL id)
Sets the iD attribute of the RDFObject object |
void |
setLabel(String label)
|
static void |
setLastClear()
|
Statement |
SetProperty(URL property,
RDFObject value,
String label,
String comment)
|
void |
setServer(Server server)
|
Statement |
SetStringProperty(URL property,
String value,
String label,
String comment)
Set the property on the target object. |
static void |
setTimeoutInSecs(long timeoutInSecs)
set the timeout in seconds for the proxy objects |
void |
setTimestamp()
Mark the timestamp of the object at the current time |
void |
setType(RDFClass s)
Sets the type attribute of the RDFObject object |
void |
setTypeID(URL url)
Sets the typeID attribute of the RDFObject object |
void |
stale()
Mark that the object is 'stale' and should be reloaded |
String |
toRDF()
|
String |
toRDFWrapped()
|
String |
toString()
Method |
void |
update(Server server)
|
| 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 |
| Field Detail |
|---|
public static final String IS_PART
public static final String IS_PART_OF
public static final String IS_GETTER
public static final String WRITE_OP
public static final char COLSEP
| Constructor Detail |
|---|
public RDFObject()
| Method Detail |
|---|
public static void dbg(String msg)
msg - public static void err(Exception e)
e - public static void err(String s)
s - public static FeatureDescriptor getDescriptor(String featureName)
public static Collection getGetterMethods()
public static FeatureDescriptor getDescriptor(String featureName,
Object obj)
throws Exception
Exceptionpublic static Collection getPartsDescriptor()
public static Collection getPartsDescriptor(Object obj)
throws Exception
Exception
public static Collection getPartsDescriptor(Class cls)
throws Exception
Exception
public void setID(URL id)
throws Exception
setID in interface RDFObjid - The new iD value
Exception - should throw an exception if the ID has already been
setpublic void setDB(RDFDB db)
setDB in interface RDFObjdb - The new dB valuepublic void setType(RDFClass s)
setType in interface RDFObjs - The new type valuepublic void setTypeID(URL url)
url - The new typeID value
public void set(RDFProperty property,
Object value)
set in interface RDFObjproperty - value -
public void setHardOrSoft(RDFProperty property,
Object propertyValue)
throws Exception
property - The new hardOrSoft valuepropertyValue - The new hardOrSoft value
Exceptionpublic URL getID()
getID in interface RDFObjpublic RDFDB getDB()
getDB in interface RDFObj
public RDFClass getType()
throws Exception
RDFObj
getType in interface RDFObjExceptionpublic String getInternalID()
public String getShortID()
public String getShortId()
throws Exception
Exception
public RDFRef getRef(RDFObj to)
throws Exception
to -
Exception
public RDFRef getRef(String to)
throws Exception
to -
Exceptionpublic Collection getBindings()
getBindings in interface RDFObj
public PropertyBinding getBinding(URL property)
throws Exception
property -
Exception
public Object get(RDFProperty property)
throws Exception
get in interface RDFObjproperty -
Exception
public Vector getProperties()
throws Exception
Exception
public Vector getInitialisedProperties()
throws Exception
Exceptionpublic void set_complete(String complete)
public void setComplete(boolean complete)
public boolean isComplete()
public void set_label(String label)
label - The new label valuepublic void setLabel(String label)
public String get_label()
throws Exception
Exception
public String getLabel()
throws Exception
Exceptionpublic void set_comment(String comment)
public void setComment(String comment)
public String get_comment()
throws Exception
Exception
public String getComment()
throws Exception
Exceptionpublic void set_creationDate(String creationDate)
public void setCreationDate(String creationDate)
public String get_creationDate()
throws Exception
Exception
public String getCreationDate()
throws Exception
Exception
public String getBookmarkLabel()
throws Exception
Exception
public RDFClass getRange()
throws Exception
Exception
public RDFClass getDomain()
throws Exception
Exception
public String getRangeType()
throws Exception
Exception
public RDFObject getAccessCondition()
throws Exception
Exceptionpublic boolean isLocal()
public boolean isMeta()
public String getPath()
throws Exception
Exception
public void init(RDFDB db,
URL id)
throws Exception
db - id -
Exception
public void init(RDFDB db,
URL id,
String type)
throws Exception
db - id - type -
Exception
public void chkFinal(Object fld)
throws Exception
fld -
Exceptionpublic String toString()
toString in class Object
public String toRDF()
throws Exception
Exception
public String toRDFWrapped()
throws Exception
Exceptionpublic boolean equals(Object obj)
equals in class Objectobj -
public void remove()
public void initialised()
public boolean isStale()
public static void setLastClear()
public static long getLastClear()
public static void setTimeoutInSecs(long timeoutInSecs)
the - new timeout in secondspublic static long getTimeoutInSecs()
public boolean needsReload(Object value,
boolean basicField)
throws Exception
value - a value to checkbasicField - if true it indicates a basic field (label/comment) that should always be returned by the server
Exception
public boolean neededReload(URL property,
Object value)
throws Exception
property - a property to which the value belongsvalue - a value to check
Exception
public boolean neededReload(Object value)
throws Exception
value - a value to check
Exception
public void neededCollectionReload(Object value,
String collectionName)
throws Exception
value - a value to check
Exception
public boolean neededReload(Object value,
boolean basicField)
throws Exception
value - a value to checkbasicField - if true it indicates a basic field (label/comment) that should always be returned by the server
Exception
public boolean neededReload()
throws Exception
Exceptionpublic String getCollectionURL(String colName)
public void loaded()
public void setTimestamp()
public void stale()
public void reload()
throws Exception
Exception
public int compareTo(Object o)
throws ClassCastException
compareTo in interface Comparableo -
ClassCastExceptionpublic void clear()
public void update(Server server)
throws Exception
Exception
public Server getServer()
throws Exception
Exception
public StatementHome getStatementHome()
throws Exception
Exceptionpublic void setServer(Server server)
public Statement SetStringProperty(URL property,
String value,
String label,
String comment)
throws Exception
property - the unique URL of the propertyvalue - the value of the property
Exception
public Statement AddStringProperty(URL property,
String value,
String label,
String comment)
throws Exception
Exception
public Statement SetProperty(URL property,
RDFObject value,
String label,
String comment)
throws Exception
Exception
public Statement AddProperty(URL property,
RDFObject value,
String label,
String comment)
throws Exception
Exception
public List GetPropertyStatements(URL property)
throws Exception
property - the unique URL of the property
Exception
public Statement GetPropertyStatement(URL property)
throws Exception
property - the unique URL of the property
Exception
public Object GetProperty(URL property)
throws Exception
property - the unique URL of the property
ExceptionStatement.getProperty()
public Object GetStringProperty(URL property)
throws Exception
property - the name of the property
Exception
public List GetProperties(URL property)
throws Exception
property - the name of the property
Exception
public String[] GetStringProperties(URL property)
throws Exception
property - the name of the property
Exception
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||