nesstar.rdf
Class RDFClass

java.lang.Object
  extended by java.util.Observable
      extended by nesstar.rdf.RDFObject
          extended by nesstar.rdf.RDFClass
All Implemented Interfaces:
Comparable, Type, RDFObj
Direct Known Subclasses:
AType, NSMethod

public class RDFClass
extends RDFObject
implements Type

An RDF Class.

Created:
26 April 2002

Field Summary
 
Fields inherited from class nesstar.rdf.RDFObject
COLSEP, IS_GETTER, IS_PART, IS_PART_OF, WRITE_OP
 
Fields inherited from interface nesstar.api.Type
GET_FORM, NO_FORM, POST_DATA_FORM, POST_FORM
 
Constructor Summary
RDFClass()
          Constructor for the RDFClass object
RDFClass(RDFDB db, URL url)
          Constructor for the RDFClass object
 
Method Summary
 Vector getAllMethods()
           
 Vector getAllProperties()
           
 String getDefaultValue()
           
 String getFormType()
          Return the type for the HTML input form field.
 String getJavaSimpleType()
           
 String getJavaType()
           
 NSMethod getMethod(String name)
           
 Vector getMethods()
          Gets the methods attribute of the RDFClass object
 Vector getProperties()
          Gets the properties attribute of the RDFClass object
 RDFProperty getProperty(String name)
           
static RDFClass getRDFClass(RDFDB db, String url)
          Gets the rDFClass attribute of the RDFClass class
static RDFClass getRDFClass(RDFDB db, URL url)
          Gets the rDFClass attribute of the RDFClass class
 String getStringToTypeOp()
           
 RDFClass getSuperClass()
          Gets the superClass attribute of the RDFClass object
 Object getSuperClassRef()
          Gets the superClassRef attribute of the RDFClass object
 Object getValue(NSParameter parameter, Parameters params)
          Read a value of the given type from the parameters
 void init()
          Method
 boolean isAssignableFrom(RDFClass cls)
          Gets the assignableFrom attribute of the RDFClass object
 boolean isSubclassOf(RDFClass superClass)
           
 int needsFormType()
           
 String toString()
          Method
 
Methods inherited from class nesstar.rdf.RDFObject
AddProperty, AddStringProperty, chkFinal, clear, compareTo, dbg, equals, err, err, get_comment, get_creationDate, get_label, get, getAccessCondition, getBinding, getBindings, getBookmarkLabel, getCollectionURL, getComment, getCreationDate, getDB, getDescriptor, getDescriptor, getDomain, getGetterMethods, getID, getInitialisedProperties, getInternalID, getLabel, getLastClear, getPartsDescriptor, getPartsDescriptor, getPartsDescriptor, getPath, GetProperties, GetProperty, GetPropertyStatement, GetPropertyStatements, getRange, getRangeType, getRef, getRef, getServer, getShortId, getShortID, getStatementHome, GetStringProperties, GetStringProperty, getTimeoutInSecs, getType, init, init, initialised, isComplete, isLocal, isMeta, isStale, loaded, neededCollectionReload, neededReload, neededReload, neededReload, neededReload, needsReload, reload, remove, set_comment, set_complete, set_creationDate, set_label, set, setComment, setComplete, setCreationDate, setDB, setHardOrSoft, setID, setLabel, setLastClear, SetProperty, setServer, SetStringProperty, setTimeoutInSecs, setTimestamp, setType, setTypeID, stale, toRDF, toRDFWrapped, update
 
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

RDFClass

public RDFClass()
Constructor for the RDFClass object


RDFClass

public RDFClass(RDFDB db,
                URL url)
         throws Exception
Constructor for the RDFClass object

Parameters:
db -
url -
Throws:
Exception
Method Detail

getRDFClass

public static RDFClass getRDFClass(RDFDB db,
                                   String url)
                            throws Exception
Gets the rDFClass attribute of the RDFClass class

Parameters:
db -
url -
Returns:
The rDFClass value
Throws:
Exception

getRDFClass

public static RDFClass getRDFClass(RDFDB db,
                                   URL url)
                            throws Exception
Gets the rDFClass attribute of the RDFClass class

Parameters:
db -
url -
Returns:
The rDFClass value
Throws:
Exception

getMethods

public Vector getMethods()
                  throws Exception
Gets the methods attribute of the RDFClass object

Returns:
The methods value
Throws:
Exception

getAllMethods

public Vector getAllMethods()
                     throws Exception
Returns:
all methods including the ones that are inherited from other classes
Throws:
Exception

getProperties

public Vector getProperties()
                     throws Exception
Gets the properties attribute of the RDFClass object

Overrides:
getProperties in class RDFObject
Returns:
The properties value
Throws:
Exception

getAllProperties

public Vector getAllProperties()
                        throws Exception
Returns:
all properties including the ones that are inherited from other classes
Throws:
Exception

getProperty

public RDFProperty getProperty(String name)
                        throws Exception
Parameters:
name - the short or long name of the property
Returns:
The property value
Throws:
Exception

getSuperClassRef

public Object getSuperClassRef()
                        throws Exception
Gets the superClassRef attribute of the RDFClass object

Returns:
The superClassRef value
Throws:
Exception

getSuperClass

public RDFClass getSuperClass()
                       throws Exception
Gets the superClass attribute of the RDFClass object

Returns:
The superClass value
Throws:
Exception

isSubclassOf

public boolean isSubclassOf(RDFClass superClass)
                     throws Exception
Parameters:
superClass - the superclass
Returns:
true if it's subclass of superClass
Throws:
Exception

isAssignableFrom

public boolean isAssignableFrom(RDFClass cls)
                         throws Exception
Gets the assignableFrom attribute of the RDFClass object

Parameters:
cls -
Returns:
The assignableFrom value
Throws:
Exception

getMethod

public NSMethod getMethod(String name)
                   throws Exception
Parameters:
name - the short or long name of the method
Returns:
The method value
Throws:
Exception

init

public void init()
          throws Exception
Method

Throws:
Exception

toString

public String toString()
Method

Overrides:
toString in class RDFObject
Returns:

getValue

public Object getValue(NSParameter parameter,
                       Parameters params)
                throws Exception
Read a value of the given type from the parameters

Specified by:
getValue in interface Type
Parameters:
parameter -
params -
Returns:
an object
Throws:
Exception

getJavaType

public String getJavaType()
Specified by:
getJavaType in interface Type
Returns:
the name of the Java class that correspond to this type

getJavaSimpleType

public String getJavaSimpleType()
Specified by:
getJavaSimpleType in interface Type
Returns:
the name of the Java simple type that correspond to this type

getFormType

public String getFormType()
Return the type for the HTML input form field.

Specified by:
getFormType in interface Type
Returns:
the type name

getStringToTypeOp

public String getStringToTypeOp()
Specified by:
getStringToTypeOp in interface Type
Returns:
the name of the operation to be applied to a String to get a value of this type or null if no convertion is needed

getDefaultValue

public String getDefaultValue()
Specified by:
getDefaultValue in interface Type
Returns:
the default value for this type

needsFormType

public int needsFormType()
Specified by:
needsFormType in interface Type
Returns:
the simple form type required to input this type

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved