org.openanzo.atom.jastor.webarch
Class InformationResourceImpl

java.lang.Object
  extended by org.openanzo.jastor.GraphThingImpl
      extended by org.openanzo.atom.jastor.webarch.InformationResourceImpl
All Implemented Interfaces:
InformationResource, CoreThing, GraphThing

public class InformationResourceImpl
extends GraphThingImpl
implements InformationResource

Implementation of InformationResource Use the org.openanzo.atom.jastor.webarch.Factory to create instances of this class.

(URI: http://sw.nokia.com/WebArch-1/InformationResource)



Field Summary
 
Fields inherited from interface org.openanzo.atom.jastor.webarch.InformationResource
TYPE
 
Method Summary
 GraphThing addRepresentation()
          Adds an anonymous value for the 'representation' property
 void addRepresentation(GraphThing representation)
          Adds a value for the 'representation' property
 GraphThing addRepresentation(org.openrdf.model.Resource resource)
          Adds a value for the 'representation' property.
 GraphThing addRepresentationOf()
          Adds an anonymous value for the 'representationOf' property
 void addRepresentationOf(GraphThing representationOf)
          Adds a value for the 'representationOf' property
 GraphThing addRepresentationOf(org.openrdf.model.Resource resource)
          Adds a value for the 'representationOf' property.
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getRepresentation()
          Get an Iterator the 'representation' property values.
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getRepresentationOf()
          Get an Iterator the 'representationOf' property values.
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void removeRepresentation(GraphThing representation)
          Removes a value for the 'representation' property.
 void removeRepresentationOf(GraphThing representationOf)
          Removes a value for the 'representationOf' property.
 
Methods inherited from class org.openanzo.jastor.GraphThingImpl
clearCache, equals, getLiteral, getLiteralValue, getProperties, getPropertyValue, getPropertyValue, graph, isRDFType, registerListener, removeStatements, resource, setPropertyValue, setPropertyValue, toString, unregisterListener, uri
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openanzo.jastor.GraphThing
getProperties, getPropertyValue, getPropertyValue, graph, setPropertyValue, setPropertyValue
 
Methods inherited from interface org.openanzo.jastor.CoreThing
clearCache, isRDFType, registerListener, removeStatements, resource, unregisterListener, uri
 

Method Detail

listStatements

public java.util.Collection<org.openrdf.model.Statement> listStatements()
Description copied from interface: CoreThing
Get set of statements that makeup this THINGS's properties and types

Specified by:
listStatements in interface CoreThing
Overrides:
listStatements in class GraphThingImpl
Returns:
set of statements that makeup this THINGS's properties and types

getRepresentationOf

public info.aduna.collections.iterators.CloseableIterator<GraphThing> getRepresentationOf()
                                                                                   throws JastorException
Description copied from interface: InformationResource
Get an Iterator the 'representationOf' property values. This Iteartor may be used to remove all such values.

Specified by:
getRepresentationOf in interface InformationResource
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
InformationResource.representationOfProperty

addRepresentationOf

public void addRepresentationOf(GraphThing representationOf)
                         throws JastorException
Description copied from interface: InformationResource
Adds a value for the 'representationOf' property

Specified by:
addRepresentationOf in interface InformationResource
Throws:
JastorException
See Also:
InformationResource.representationOfProperty

addRepresentationOf

public GraphThing addRepresentationOf()
                               throws JastorException
Description copied from interface: InformationResource
Adds an anonymous value for the 'representationOf' property

Specified by:
addRepresentationOf in interface InformationResource
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
InformationResource.representationOfProperty

addRepresentationOf

public GraphThing addRepresentationOf(org.openrdf.model.Resource resource)
                               throws JastorException
Description copied from interface: InformationResource
Adds a value for the 'representationOf' property. This method is equivalent constructing a new instance of GraphThing with the factory and calling addRepresentationOf(org.openanzo.jastor.GraphThing representationOf) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addRepresentationOf in interface InformationResource
Throws:
JastorException
See Also:
InformationResource.representationOfProperty

removeRepresentationOf

public void removeRepresentationOf(GraphThing representationOf)
                            throws JastorException
Description copied from interface: InformationResource
Removes a value for the 'representationOf' property. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Specified by:
removeRepresentationOf in interface InformationResource
Throws:
JastorException
See Also:
InformationResource.representationOfProperty

getRepresentation

public info.aduna.collections.iterators.CloseableIterator<GraphThing> getRepresentation()
                                                                                 throws JastorException
Description copied from interface: InformationResource
Get an Iterator the 'representation' property values. This Iteartor may be used to remove all such values.

Specified by:
getRepresentation in interface InformationResource
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
InformationResource.representationProperty

addRepresentation

public void addRepresentation(GraphThing representation)
                       throws JastorException
Description copied from interface: InformationResource
Adds a value for the 'representation' property

Specified by:
addRepresentation in interface InformationResource
Throws:
JastorException
See Also:
InformationResource.representationProperty

addRepresentation

public GraphThing addRepresentation()
                             throws JastorException
Description copied from interface: InformationResource
Adds an anonymous value for the 'representation' property

Specified by:
addRepresentation in interface InformationResource
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
InformationResource.representationProperty

addRepresentation

public GraphThing addRepresentation(org.openrdf.model.Resource resource)
                             throws JastorException
Description copied from interface: InformationResource
Adds a value for the 'representation' property. This method is equivalent constructing a new instance of GraphThing with the factory and calling addRepresentation(org.openanzo.jastor.GraphThing representation) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addRepresentation in interface InformationResource
Throws:
JastorException
See Also:
InformationResource.representationProperty

removeRepresentation

public void removeRepresentation(GraphThing representation)
                          throws JastorException
Description copied from interface: InformationResource
Removes a value for the 'representation' property. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Specified by:
removeRepresentation in interface InformationResource
Throws:
JastorException
See Also:
InformationResource.representationProperty


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.