nesstar.api
Class AType
java.lang.Object
java.util.Observable
nesstar.rdf.RDFObject
nesstar.rdf.RDFClass
nesstar.api.AType
- All Implemented Interfaces:
- Comparable, Type, RDFObj
- Direct Known Subclasses:
- BooleanType, CollectionType, FileType, StringType, VoidType
public abstract class AType
- extends RDFClass
A Type, for example String or Integer, used to indicate
- Created:
- 26 April 2002
|
Constructor Summary |
AType(RDFDB db,
URL id)
Constructor for the Type object |
| Methods inherited from class nesstar.rdf.RDFClass |
getAllMethods, getAllProperties, getMethod, getMethods, getProperties, getProperty, getRDFClass, getRDFClass, getSuperClass, getSuperClassRef, init, isAssignableFrom, isSubclassOf, toString |
| 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 |
AType
public AType(RDFDB db,
URL id)
throws Exception
- Constructor for the Type object
- Parameters:
db - id -
- Throws:
Exception
getValue
public abstract Object getValue(NSParameter parameter,
Parameters user)
throws Exception
- Read a value of the given type from the parameters
- Specified by:
getValue in interface Type- Overrides:
getValue in class RDFClass
- Parameters:
parameter - user -
- Returns:
- an object
- Throws:
Exception
getJavaType
public abstract String getJavaType()
- Specified by:
getJavaType in interface Type- Overrides:
getJavaType in class RDFClass
- Returns:
- the name of the Java class that correspond to this type
getJavaSimpleType
public String getJavaSimpleType()
- Specified by:
getJavaSimpleType in interface Type- Overrides:
getJavaSimpleType in class RDFClass
- Returns:
- the name of the Java simple type that correspond to this type
getFormType
public abstract String getFormType()
- Return the type for the HTML input form field.
- Specified by:
getFormType in interface Type- Overrides:
getFormType in class RDFClass
- Returns:
- the type name
getStringToTypeOp
public String getStringToTypeOp()
- Specified by:
getStringToTypeOp in interface Type- Overrides:
getStringToTypeOp in class RDFClass
- 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- Overrides:
getDefaultValue in class RDFClass
- Returns:
- the default value for this type
needsFormType
public abstract int needsFormType()
- Specified by:
needsFormType in interface Type- Overrides:
needsFormType in class RDFClass
- Returns:
- the simple form type required to input this type
Copyright©2003 NSD - All Rights Reserved