nesstar.api.common
Class DCResource

java.lang.Object
  extended by java.util.Observable
      extended by nesstar.rdf.RDFObject
          extended by nesstar.api.common.Resource
              extended by nesstar.api.common.DCResource
All Implemented Interfaces:
Comparable, RDFObj
Direct Known Subclasses:
EGMSResource

public class DCResource
extends Resource

Code automatically generated from ARGO/UML


Field Summary
static String CLASS_ID
           
 
Fields inherited from class nesstar.rdf.RDFObject
COLSEP, IS_GETTER, IS_PART, IS_PART_OF, WRITE_OP
 
Constructor Summary
DCResource(RDFDB db, URL id)
          Create an object with the indicated id in the indicated db
 
Method Summary
 void clear()
          Clear all properties of this object
 String get_contributor()
           
 String get_coverage()
           
 String get_creator()
           
 String get_format()
           
 String get_identifier()
           
 String get_language()
           
 String get_publisher()
           
 String get_relation()
           
 String get_resourceDate()
           
 String get_resourceType()
           
 String get_rights()
           
 String get_source()
           
 String get_subject()
           
static Vector getAllInstances()
           
static Vector getAllInstances(RDFDB db)
           
 String[] getContributor()
           An entity responsible for making contributions to the content of the resource.
 String getContributorAsString()
           
 String[] getCoverage()
           The extent or scope of the content of the resource.
 String getCoverageAsString()
           
 String[] getCreator()
           An entity primarily responsible for making the content of the resource.
 String getCreatorAsString()
           
static FeatureDescriptor getDescriptor(String featureName)
          get the descriptor for a feature of the class, either method or attribute Note: the methods' feature are still not implemented
 String getFormat()
           The physical or digital manifestation of the resource.
static Collection getGetterMethods()
           
 String getIdentifier()
           An unambiguous reference to the resource within a given context.
static Resource getInstance(RDFDB db, URL id)
          If an object of type DCResource with the indicated id exists in the db returns it otherwise create a new object in the db and returns it
static Resource getInstance(String rdf)
           
 String[] getLanguage()
           A language of the intellectual content of the resource.
 String getLanguageAsString()
           
static Collection getPartsDescriptor()
           
 String[] getPublisher()
           An entity responsible for making the resource available.
 String getPublisherAsString()
           
 String[] getRelation()
           A reference to a related resource.
 String getRelationAsString()
           
 String[] getResourceDate()
           A date associated with an event in the life cycle of the resource.
 String getResourceDateAsString()
           
 String getResourceType()
           The nature or genre of the content of the resource.
 String[] getRights()
           Information about rights held in and over the resource.
 String getRightsAsString()
           
 String[] getSource()
           A reference to a resource from which the present resource is derived.
 String getSourceAsString()
           
 String[] getSubject()
           A topic of the content of the resource.
 String getSubjectAsString()
           
 void initialised()
          Notify that the object has been created and its properties setup for the first time.
static void listenForNewObj(NewObjListener listener)
          Register to be notified when new objects are added.
static Resource newInstance(RDFDB db)
          Create a new object of this type with a locally unique id and returns it
static Resource retrieve(URL id)
          If an object of type DCResource with the indicated id has already being retrieved from the network returns it otherwise retrieve it together with its class information (methods, properties, etc.)
 void set_contributor(String contributor)
           
 void set_coverage(String coverage)
           
 void set_creator(String creator)
           
 void set_format(String format)
           
 void set_identifier(String identifier)
           
 void set_language(String language)
           
 void set_publisher(String publisher)
           
 void set_relation(String relation)
           
 void set_resourceDate(String resourceDate)
           
 void set_resourceType(String resourceType)
           
 void set_rights(String rights)
           
 void set_source(String source)
           
 void set_subject(String subject)
           
 void setContributor(String[] contributor)
           An entity responsible for making contributions to the content of the resource.
 void setCoverage(String[] coverage)
           The extent or scope of the content of the resource.
 void setCreator(String[] creator)
           An entity primarily responsible for making the content of the resource.
 void setFormat(String format)
           The physical or digital manifestation of the resource.
 void setIdentifier(String identifier)
           An unambiguous reference to the resource within a given context.
 void setLanguage(String[] language)
           A language of the intellectual content of the resource.
 void setPublisher(String[] publisher)
           An entity responsible for making the resource available.
 void setRelation(String[] relation)
           A reference to a related resource.
 void setResourceDate(String[] resourceDate)
           A date associated with an event in the life cycle of the resource.
 void setResourceType(String resourceType)
           The nature or genre of the content of the resource.
 void setRights(String[] rights)
           Information about rights held in and over the resource.
 void setSource(String[] source)
           A reference to a resource from which the present resource is derived.
 void setSubject(String[] subject)
           A topic of the content of the resource.
 
Methods inherited from class nesstar.rdf.RDFObject
AddProperty, AddStringProperty, chkFinal, compareTo, dbg, equals, err, err, get_comment, get_creationDate, get_label, get, getAccessCondition, getBinding, getBindings, getBookmarkLabel, getCollectionURL, getComment, getCreationDate, getDB, getDescriptor, getDomain, getID, getInitialisedProperties, getInternalID, getLabel, getLastClear, getPartsDescriptor, getPartsDescriptor, getPath, getProperties, GetProperties, GetProperty, GetPropertyStatement, GetPropertyStatements, getRange, getRangeType, getRef, getRef, getServer, getShortId, getShortID, getStatementHome, GetStringProperties, GetStringProperty, getTimeoutInSecs, getType, init, init, 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, toString, 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
 

Field Detail

CLASS_ID

public static String CLASS_ID
Constructor Detail

DCResource

public DCResource(RDFDB db,
                  URL id)
           throws Exception
Create an object with the indicated id in the indicated db

Parameters:
db - the db where the object is to be created
id - the id of the object to create
Throws:
Exception
Method Detail

setContributor

public void setContributor(String[] contributor)

An entity responsible for making contributions to the content of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
contributor -

set_contributor

public void set_contributor(String contributor)
Parameters:
contributor -

setCoverage

public void setCoverage(String[] coverage)

The extent or scope of the content of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
coverage -

set_coverage

public void set_coverage(String coverage)
Parameters:
coverage -

setCreator

public void setCreator(String[] creator)

An entity primarily responsible for making the content of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
creator -

set_creator

public void set_creator(String creator)
Parameters:
creator -

setResourceDate

public void setResourceDate(String[] resourceDate)

A date associated with an event in the life cycle of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
resourceDate -

set_resourceDate

public void set_resourceDate(String resourceDate)
Parameters:
resourceDate -

setFormat

public void setFormat(String format)

The physical or digital manifestation of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
format -

set_format

public void set_format(String format)
Parameters:
format -

setIdentifier

public void setIdentifier(String identifier)

An unambiguous reference to the resource within a given context.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
identifier -

set_identifier

public void set_identifier(String identifier)
Parameters:
identifier -

setLanguage

public void setLanguage(String[] language)

A language of the intellectual content of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
language -

set_language

public void set_language(String language)
Parameters:
language -

setPublisher

public void setPublisher(String[] publisher)

An entity responsible for making the resource available.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
publisher -

set_publisher

public void set_publisher(String publisher)
Parameters:
publisher -

setRelation

public void setRelation(String[] relation)

A reference to a related resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
relation -

set_relation

public void set_relation(String relation)
Parameters:
relation -

setRights

public void setRights(String[] rights)

Information about rights held in and over the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
rights -

set_rights

public void set_rights(String rights)
Parameters:
rights -

setSource

public void setSource(String[] source)

A reference to a resource from which the present resource is derived.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
source -

set_source

public void set_source(String source)
Parameters:
source -

setSubject

public void setSubject(String[] subject)

A topic of the content of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
subject -

set_subject

public void set_subject(String subject)
Parameters:
subject -

setResourceType

public void setResourceType(String resourceType)

The nature or genre of the content of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/

Parameters:
resourceType -

set_resourceType

public void set_resourceType(String resourceType)
Parameters:
resourceType -

getAllInstances

public static Vector getAllInstances(RDFDB db)
                              throws Exception
Parameters:
db - the db where the instances are to be found
Returns:
all the instances of this class in the database
Throws:
Exception

getAllInstances

public static Vector getAllInstances()
                              throws Exception
Returns:
get all the instances of this class from the default database
Throws:
Exception

getInstance

public static Resource getInstance(RDFDB db,
                                   URL id)
                            throws Exception
If an object of type DCResource with the indicated id exists in the db returns it otherwise create a new object in the db and returns it

Parameters:
db - the db where the object is to be found or created
id - the id of the object to retrieve or create
Returns:
an object of type Server with the indicated id and existing in the indicated db
Throws:
Exception

getInstance

public static Resource getInstance(String rdf)
                            throws Exception
Parameters:
rdf - some rdf code that contains a description of an object of this kind
Returns:
the single instance of this class described in the passed RDF code
Throws:
Exception

getContributor

public String[] getContributor()

An entity responsible for making contributions to the content of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


getContributorAsString

public String getContributorAsString()

get_contributor

public String get_contributor()
                       throws Exception
Throws:
Exception

getCoverage

public String[] getCoverage()

The extent or scope of the content of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


getCoverageAsString

public String getCoverageAsString()

get_coverage

public String get_coverage()
                    throws Exception
Throws:
Exception

getCreator

public String[] getCreator()

An entity primarily responsible for making the content of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


getCreatorAsString

public String getCreatorAsString()

get_creator

public String get_creator()
                   throws Exception
Throws:
Exception

getResourceDate

public String[] getResourceDate()

A date associated with an event in the life cycle of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


getResourceDateAsString

public String getResourceDateAsString()

get_resourceDate

public String get_resourceDate()
                        throws Exception
Throws:
Exception

getFormat

public String getFormat()

The physical or digital manifestation of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


get_format

public String get_format()
                  throws Exception
Throws:
Exception

getIdentifier

public String getIdentifier()

An unambiguous reference to the resource within a given context.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


get_identifier

public String get_identifier()
                      throws Exception
Throws:
Exception

getLanguage

public String[] getLanguage()

A language of the intellectual content of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


getLanguageAsString

public String getLanguageAsString()

get_language

public String get_language()
                    throws Exception
Throws:
Exception

getPublisher

public String[] getPublisher()

An entity responsible for making the resource available.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


getPublisherAsString

public String getPublisherAsString()

get_publisher

public String get_publisher()
                     throws Exception
Throws:
Exception

getRelation

public String[] getRelation()

A reference to a related resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


getRelationAsString

public String getRelationAsString()

get_relation

public String get_relation()
                    throws Exception
Throws:
Exception

getRights

public String[] getRights()

Information about rights held in and over the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


getRightsAsString

public String getRightsAsString()

get_rights

public String get_rights()
                  throws Exception
Throws:
Exception

getSource

public String[] getSource()

A reference to a resource from which the present resource is derived.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


getSourceAsString

public String getSourceAsString()

get_source

public String get_source()
                  throws Exception
Throws:
Exception

getSubject

public String[] getSubject()

A topic of the content of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


getSubjectAsString

public String getSubjectAsString()

get_subject

public String get_subject()
                   throws Exception
Throws:
Exception

getResourceType

public String getResourceType()

The nature or genre of the content of the resource.

For more information see http://www.govtalk.gov.uk/documents/metadataV2.pdf, http://dublincore.org/documents/dces/


get_resourceType

public String get_resourceType()
                        throws Exception
Throws:
Exception

getDescriptor

public static FeatureDescriptor getDescriptor(String featureName)
get the descriptor for a feature of the class, either method or attribute Note: the methods' feature are still not implemented

Parameters:
featureName -

getPartsDescriptor

public static Collection getPartsDescriptor()
Returns:
the descriptor of the attribute that are part of the class

getGetterMethods

public static Collection getGetterMethods()
Returns:
the descriptor of the attribute that are part of the class

newInstance

public static Resource newInstance(RDFDB db)
                            throws Exception
Create a new object of this type with a locally unique id and returns it

Parameters:
db - the db where the object is to be found or created
Returns:
an object of this type
Throws:
Exception

listenForNewObj

public static void listenForNewObj(NewObjListener listener)
Register to be notified when new objects are added.

Parameters:
listener - the listener

initialised

public void initialised()
Notify that the object has been created and its properties setup for the first time. This is NOT called when the object is simply reloaded.

Overrides:
initialised in class Resource

retrieve

public static Resource retrieve(URL id)
                         throws Exception
If an object of type DCResource with the indicated id has already being retrieved from the network returns it otherwise retrieve it together with its class information (methods, properties, etc.)

Parameters:
id - the id of the object to retrieve
Returns:
an object of type DCResource with the indicated id
Throws:
Exception

clear

public void clear()
Description copied from class: RDFObject
Clear all properties of this object

Overrides:
clear in class Resource

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved