org.openanzo.atom.jastor.atomowl
Class VersionImpl

java.lang.Object
  extended by org.openanzo.jastor.GraphThingImpl
      extended by org.openanzo.atom.jastor.atomowl.VersionImpl
All Implemented Interfaces:
Version, CoreThing, GraphThing

public class VersionImpl
extends GraphThingImpl
implements Version

Implementation of Version Use the org.openanzo.atom.jastor.atomowl.Factory to create instances of this class.

(URI: http://bblfish.net/work/atom-owl/2006-06-06/#Version)



Field Summary
 
Fields inherited from interface org.openanzo.atom.jastor.atomowl.Version
TYPE
 
Method Summary
 GraphThing addAlternate()
          Adds an anonymous value for the 'alternate' property
 void addAlternate(GraphThing alternate)
          Adds a value for the 'alternate' property
 GraphThing addAlternate(org.openrdf.model.Resource resource)
          Adds a value for the 'alternate' property.
 GraphThing addEmail()
          Adds an anonymous value for the 'email' property
 void addEmail(GraphThing email)
          Adds a value for the 'email' property
 GraphThing addEmail(org.openrdf.model.Resource resource)
          Adds a value for the 'email' property.
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getAlternate()
          Get an Iterator the 'alternate' property values.
 Content getContent()
          Gets the 'content' property value
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getEmail()
          Get an Iterator the 'email' property values.
 java.lang.String getId()
          Gets the 'id' property value
 java.util.Date getUpdated()
          Gets the 'updated' property value
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void removeAlternate(GraphThing alternate)
          Removes a value for the 'alternate' property.
 void removeEmail(GraphThing email)
          Removes a value for the 'email' property.
 Content setContent()
          Sets the 'content' property value to an anonymous node
 void setContent(Content content)
          Sets the 'content' property value
 Content setContent(org.openrdf.model.Resource resource)
          Sets the 'content' property value to the given resource, and add's rdf:type properties.
 void setId(java.lang.String id)
          Sets the 'id' property value
 void setUpdated(java.util.Date updated)
          Sets the 'updated' property value
 
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

getUpdated

public java.util.Date getUpdated()
                          throws JastorException
Description copied from interface: Version
Gets the 'updated' property value

Specified by:
getUpdated in interface Version
Returns:
Date
Throws:
JastorException
See Also:
Version.updatedProperty

setUpdated

public void setUpdated(java.util.Date updated)
                throws JastorException
Description copied from interface: Version
Sets the 'updated' property value

Specified by:
setUpdated in interface Version
Throws:
JastorException
See Also:
Version.updatedProperty

getAlternate

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

Specified by:
getAlternate in interface Version
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
Version.alternateProperty

addAlternate

public void addAlternate(GraphThing alternate)
                  throws JastorException
Description copied from interface: Version
Adds a value for the 'alternate' property

Specified by:
addAlternate in interface Version
Throws:
JastorException
See Also:
Version.alternateProperty

addAlternate

public GraphThing addAlternate()
                        throws JastorException
Description copied from interface: Version
Adds an anonymous value for the 'alternate' property

Specified by:
addAlternate in interface Version
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
Version.alternateProperty

addAlternate

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

removeAlternate

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

getId

public java.lang.String getId()
                       throws JastorException
Description copied from interface: Version
Gets the 'id' property value

Specified by:
getId in interface Version
Returns:
String
Throws:
JastorException
See Also:
Version.idProperty

setId

public void setId(java.lang.String id)
           throws JastorException
Description copied from interface: Version
Sets the 'id' property value

Specified by:
setId in interface Version
Throws:
JastorException
See Also:
Version.idProperty

getEmail

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

Specified by:
getEmail in interface Version
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
Version.emailProperty

addEmail

public void addEmail(GraphThing email)
              throws JastorException
Description copied from interface: Version
Adds a value for the 'email' property

Specified by:
addEmail in interface Version
Throws:
JastorException
See Also:
Version.emailProperty

addEmail

public GraphThing addEmail()
                    throws JastorException
Description copied from interface: Version
Adds an anonymous value for the 'email' property

Specified by:
addEmail in interface Version
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
Version.emailProperty

addEmail

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

removeEmail

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

getContent

public Content getContent()
                   throws JastorException
Description copied from interface: Version
Gets the 'content' property value

Specified by:
getContent in interface Version
Returns:
Content
Throws:
JastorException
See Also:
Version.contentProperty

setContent

public void setContent(Content content)
                throws JastorException
Description copied from interface: Version
Sets the 'content' property value

Specified by:
setContent in interface Version
Throws:
JastorException
See Also:
Version.contentProperty

setContent

public Content setContent()
                   throws JastorException
Description copied from interface: Version
Sets the 'content' property value to an anonymous node

Specified by:
setContent in interface Version
Returns:
Content, the created value
Throws:
JastorException
See Also:
Version.contentProperty

setContent

public Content setContent(org.openrdf.model.Resource resource)
                   throws JastorException
Description copied from interface: Version
Sets the 'content' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of Content with the factory. and calling setContent(org.openanzo.atom.jastor.atomowl.Content content) The resource argument have rdf:type http://bblfish.net/work/atom-owl/2006-06-06/#Content. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
setContent in interface Version
Returns:
Content, the newly created value
Throws:
JastorException
See Also:
Version.contentProperty


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