org.openanzo.atom.jastor.rdfs
Class _StatementImpl

java.lang.Object
  extended by org.openanzo.jastor.GraphThingImpl
      extended by org.openanzo.atom.jastor.rdfs._StatementImpl
All Implemented Interfaces:
_Statement, CoreThing, GraphThing

public class _StatementImpl
extends GraphThingImpl
implements _Statement

Implementation of _Statement Use the org.openanzo.atom.jastor.rdfs.Factory to create instances of this class.

(URI: http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement)



Field Summary
 
Fields inherited from interface org.openanzo.atom.jastor.rdfs._Statement
TYPE
 
Method Summary
 void addComment(org.openrdf.model.Literal comment)
          Add a 'comment' property value
 GraphThing addIsDefinedBy()
          Adds an anonymous value for the 'isDefinedBy' property
 void addIsDefinedBy(GraphThing isDefinedBy)
          Adds a value for the 'isDefinedBy' property
 GraphThing addIsDefinedBy(org.openrdf.model.Resource resource)
          Adds a value for the 'isDefinedBy' property.
 void addLabel(org.openrdf.model.Literal label)
          Add a 'label' property value
 GraphThing addMember()
          Adds an anonymous value for the 'member' property
 void addMember(GraphThing member)
          Adds a value for the 'member' property
 GraphThing addMember(org.openrdf.model.Resource resource)
          Adds a value for the 'member' property.
 GraphThing addSeeAlso()
          Adds an anonymous value for the 'seeAlso' property
 void addSeeAlso(GraphThing seeAlso)
          Adds a value for the 'seeAlso' property
 GraphThing addSeeAlso(org.openrdf.model.Resource resource)
          Adds a value for the 'seeAlso' property.
 GraphThing addSubject()
          Adds an anonymous value for the 'subject' property
 void addSubject(GraphThing subject)
          Adds a value for the 'subject' property
 GraphThing addSubject(org.openrdf.model.Resource resource)
          Adds a value for the 'subject' property.
 GraphThing addTo()
          Adds an anonymous value for the 'to' property
 void addTo(GraphThing to)
          Adds a value for the 'to' property
 GraphThing addTo(org.openrdf.model.Resource resource)
          Adds a value for the 'to' property.
 Class addType()
          Adds an anonymous value for the 'type' property
 void addType(Class type)
          Adds a value for the 'type' property
 Class addType(org.openrdf.model.Resource resource)
          Adds a value for the 'type' property.
 GraphThing addValue()
          Adds an anonymous value for the 'value' property
 void addValue(GraphThing value)
          Adds a value for the 'value' property
 GraphThing addValue(org.openrdf.model.Resource resource)
          Adds a value for the 'value' property.
 info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Literal> getComment()
          Iterates through the 'comment' property values.
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getIsDefinedBy()
          Get an Iterator the 'isDefinedBy' property values.
 info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Literal> getLabel()
          Iterates through the 'label' property values.
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getMember()
          Get an Iterator the 'member' property values.
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getSeeAlso()
          Get an Iterator the 'seeAlso' property values.
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getSubject()
          Get an Iterator the 'subject' property values.
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getTo()
          Get an Iterator the 'to' property values.
 info.aduna.collections.iterators.CloseableIterator<Class> getType()
          Get an Iterator the 'type' property values.
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getValue()
          Get an Iterator the 'value' property values.
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void removeComment(org.openrdf.model.Literal comment)
          Remove a 'comment' property value.
 void removeIsDefinedBy(GraphThing isDefinedBy)
          Removes a value for the 'isDefinedBy' property.
 void removeLabel(org.openrdf.model.Literal label)
          Remove a 'label' property value.
 void removeMember(GraphThing member)
          Removes a value for the 'member' property.
 void removeSeeAlso(GraphThing seeAlso)
          Removes a value for the 'seeAlso' property.
 void removeSubject(GraphThing subject)
          Removes a value for the 'subject' property.
 void removeTo(GraphThing to)
          Removes a value for the 'to' property.
 void removeType(Class type)
          Removes a value for the 'type' property.
 void removeValue(GraphThing value)
          Removes a value for the 'value' 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

getTo

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

Specified by:
getTo in interface _Statement
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
_Statement.toProperty

addTo

public void addTo(GraphThing to)
           throws JastorException
Description copied from interface: _Statement
Adds a value for the 'to' property

Specified by:
addTo in interface _Statement
Throws:
JastorException
See Also:
_Statement.toProperty

addTo

public GraphThing addTo()
                 throws JastorException
Description copied from interface: _Statement
Adds an anonymous value for the 'to' property

Specified by:
addTo in interface _Statement
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
_Statement.toProperty

addTo

public GraphThing addTo(org.openrdf.model.Resource resource)
                 throws JastorException
Description copied from interface: _Statement
Adds a value for the 'to' property. This method is equivalent constructing a new instance of GraphThing with the factory and calling addTo(org.openanzo.jastor.GraphThing to) 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:
addTo in interface _Statement
Throws:
JastorException
See Also:
_Statement.toProperty

removeTo

public void removeTo(GraphThing to)
              throws JastorException
Description copied from interface: _Statement
Removes a value for the 'to' 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:
removeTo in interface _Statement
Throws:
JastorException
See Also:
_Statement.toProperty

getSubject

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

Specified by:
getSubject in interface _Statement
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
_Statement.subjectProperty

addSubject

public void addSubject(GraphThing subject)
                throws JastorException
Description copied from interface: _Statement
Adds a value for the 'subject' property

Specified by:
addSubject in interface _Statement
Throws:
JastorException
See Also:
_Statement.subjectProperty

addSubject

public GraphThing addSubject()
                      throws JastorException
Description copied from interface: _Statement
Adds an anonymous value for the 'subject' property

Specified by:
addSubject in interface _Statement
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
_Statement.subjectProperty

addSubject

public GraphThing addSubject(org.openrdf.model.Resource resource)
                      throws JastorException
Description copied from interface: _Statement
Adds a value for the 'subject' property. This method is equivalent constructing a new instance of GraphThing with the factory and calling addSubject(org.openanzo.jastor.GraphThing subject) 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:
addSubject in interface _Statement
Throws:
JastorException
See Also:
_Statement.subjectProperty

removeSubject

public void removeSubject(GraphThing subject)
                   throws JastorException
Description copied from interface: _Statement
Removes a value for the 'subject' 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:
removeSubject in interface _Statement
Throws:
JastorException
See Also:
_Statement.subjectProperty

getValue

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

Specified by:
getValue in interface _Statement
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
_Statement.valueProperty

addValue

public void addValue(GraphThing value)
              throws JastorException
Description copied from interface: _Statement
Adds a value for the 'value' property

Specified by:
addValue in interface _Statement
Throws:
JastorException
See Also:
_Statement.valueProperty

addValue

public GraphThing addValue()
                    throws JastorException
Description copied from interface: _Statement
Adds an anonymous value for the 'value' property

Specified by:
addValue in interface _Statement
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
_Statement.valueProperty

addValue

public GraphThing addValue(org.openrdf.model.Resource resource)
                    throws JastorException
Description copied from interface: _Statement
Adds a value for the 'value' property. This method is equivalent constructing a new instance of GraphThing with the factory and calling addValue(org.openanzo.jastor.GraphThing value) 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:
addValue in interface _Statement
Throws:
JastorException
See Also:
_Statement.valueProperty

removeValue

public void removeValue(GraphThing value)
                 throws JastorException
Description copied from interface: _Statement
Removes a value for the 'value' 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:
removeValue in interface _Statement
Throws:
JastorException
See Also:
_Statement.valueProperty

getComment

public info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Literal> getComment()
                                                                                         throws JastorException
Description copied from interface: _Statement
Iterates through the 'comment' property values. This Iteartor may be used to remove all such values.

Specified by:
getComment in interface _Statement
Returns:
Iterator of Literal
Throws:
JastorException
See Also:
_Statement.commentProperty

addComment

public void addComment(org.openrdf.model.Literal comment)
                throws JastorException
Description copied from interface: _Statement
Add a 'comment' property value

Specified by:
addComment in interface _Statement
Throws:
JastorException
See Also:
_Statement.commentProperty

removeComment

public void removeComment(org.openrdf.model.Literal comment)
                   throws JastorException
Description copied from interface: _Statement
Remove a 'comment' property value. 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:
removeComment in interface _Statement
Throws:
JastorException
See Also:
_Statement.commentProperty

getLabel

public info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Literal> getLabel()
                                                                                       throws JastorException
Description copied from interface: _Statement
Iterates through the 'label' property values. This Iteartor may be used to remove all such values.

Specified by:
getLabel in interface _Statement
Returns:
Iterator of Literal
Throws:
JastorException
See Also:
_Statement.labelProperty

addLabel

public void addLabel(org.openrdf.model.Literal label)
              throws JastorException
Description copied from interface: _Statement
Add a 'label' property value

Specified by:
addLabel in interface _Statement
Throws:
JastorException
See Also:
_Statement.labelProperty

removeLabel

public void removeLabel(org.openrdf.model.Literal label)
                 throws JastorException
Description copied from interface: _Statement
Remove a 'label' property value. 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:
removeLabel in interface _Statement
Throws:
JastorException
See Also:
_Statement.labelProperty

getIsDefinedBy

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

Specified by:
getIsDefinedBy in interface _Statement
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
_Statement.isDefinedByProperty

addIsDefinedBy

public void addIsDefinedBy(GraphThing isDefinedBy)
                    throws JastorException
Description copied from interface: _Statement
Adds a value for the 'isDefinedBy' property

Specified by:
addIsDefinedBy in interface _Statement
Throws:
JastorException
See Also:
_Statement.isDefinedByProperty

addIsDefinedBy

public GraphThing addIsDefinedBy()
                          throws JastorException
Description copied from interface: _Statement
Adds an anonymous value for the 'isDefinedBy' property

Specified by:
addIsDefinedBy in interface _Statement
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
_Statement.isDefinedByProperty

addIsDefinedBy

public GraphThing addIsDefinedBy(org.openrdf.model.Resource resource)
                          throws JastorException
Description copied from interface: _Statement
Adds a value for the 'isDefinedBy' property. This method is equivalent constructing a new instance of GraphThing with the factory and calling addIsDefinedBy(org.openanzo.jastor.GraphThing isDefinedBy) 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:
addIsDefinedBy in interface _Statement
Throws:
JastorException
See Also:
_Statement.isDefinedByProperty

removeIsDefinedBy

public void removeIsDefinedBy(GraphThing isDefinedBy)
                       throws JastorException
Description copied from interface: _Statement
Removes a value for the 'isDefinedBy' 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:
removeIsDefinedBy in interface _Statement
Throws:
JastorException
See Also:
_Statement.isDefinedByProperty

getMember

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

Specified by:
getMember in interface _Statement
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
_Statement.memberProperty

addMember

public void addMember(GraphThing member)
               throws JastorException
Description copied from interface: _Statement
Adds a value for the 'member' property

Specified by:
addMember in interface _Statement
Throws:
JastorException
See Also:
_Statement.memberProperty

addMember

public GraphThing addMember()
                     throws JastorException
Description copied from interface: _Statement
Adds an anonymous value for the 'member' property

Specified by:
addMember in interface _Statement
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
_Statement.memberProperty

addMember

public GraphThing addMember(org.openrdf.model.Resource resource)
                     throws JastorException
Description copied from interface: _Statement
Adds a value for the 'member' property. This method is equivalent constructing a new instance of GraphThing with the factory and calling addMember(org.openanzo.jastor.GraphThing member) 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:
addMember in interface _Statement
Throws:
JastorException
See Also:
_Statement.memberProperty

removeMember

public void removeMember(GraphThing member)
                  throws JastorException
Description copied from interface: _Statement
Removes a value for the 'member' 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:
removeMember in interface _Statement
Throws:
JastorException
See Also:
_Statement.memberProperty

getType

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

Specified by:
getType in interface _Statement
Returns:
Iterator of Class
Throws:
JastorException
See Also:
_Statement.typeProperty

addType

public void addType(Class type)
             throws JastorException
Description copied from interface: _Statement
Adds a value for the 'type' property

Specified by:
addType in interface _Statement
Throws:
JastorException
See Also:
_Statement.typeProperty

addType

public Class addType()
              throws JastorException
Description copied from interface: _Statement
Adds an anonymous value for the 'type' property

Specified by:
addType in interface _Statement
Returns:
The anoymous Class created
Throws:
JastorException
See Also:
_Statement.typeProperty

addType

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

Specified by:
addType in interface _Statement
Throws:
JastorException
See Also:
_Statement.typeProperty

removeType

public void removeType(Class type)
                throws JastorException
Description copied from interface: _Statement
Removes a value for the 'type' 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:
removeType in interface _Statement
Throws:
JastorException
See Also:
_Statement.typeProperty

getSeeAlso

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

Specified by:
getSeeAlso in interface _Statement
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
_Statement.seeAlsoProperty

addSeeAlso

public void addSeeAlso(GraphThing seeAlso)
                throws JastorException
Description copied from interface: _Statement
Adds a value for the 'seeAlso' property

Specified by:
addSeeAlso in interface _Statement
Throws:
JastorException
See Also:
_Statement.seeAlsoProperty

addSeeAlso

public GraphThing addSeeAlso()
                      throws JastorException
Description copied from interface: _Statement
Adds an anonymous value for the 'seeAlso' property

Specified by:
addSeeAlso in interface _Statement
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
_Statement.seeAlsoProperty

addSeeAlso

public GraphThing addSeeAlso(org.openrdf.model.Resource resource)
                      throws JastorException
Description copied from interface: _Statement
Adds a value for the 'seeAlso' property. This method is equivalent constructing a new instance of GraphThing with the factory and calling addSeeAlso(org.openanzo.jastor.GraphThing seeAlso) 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:
addSeeAlso in interface _Statement
Throws:
JastorException
See Also:
_Statement.seeAlsoProperty

removeSeeAlso

public void removeSeeAlso(GraphThing seeAlso)
                   throws JastorException
Description copied from interface: _Statement
Removes a value for the 'seeAlso' 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:
removeSeeAlso in interface _Statement
Throws:
JastorException
See Also:
_Statement.seeAlsoProperty


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