org.openanzo.atom.jastor.atomowl
Class LinkImpl

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

public class LinkImpl
extends GraphThingImpl
implements Link

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

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



Field Summary
 
Fields inherited from interface org.openanzo.atom.jastor.atomowl.Link
TYPE
 
Method Summary
 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.
 RelationType addRel()
          Adds an anonymous value for the 'rel' property
 void addRel(RelationType rel)
          Adds a value for the 'rel' property
 RelationType addRel(org.openrdf.model.Resource resource)
          Adds a value for the 'rel' property.
 Content getContent()
          Gets the 'content' property value
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getEmail()
          Get an Iterator the 'email' property values.
 info.aduna.collections.iterators.CloseableIterator<RelationType> getRel()
          Get an Iterator the 'rel' property values.
 TextContent getTitle()
          Gets the 'title' property value
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void removeEmail(GraphThing email)
          Removes a value for the 'email' property.
 void removeRel(RelationType rel)
          Removes a value for the 'rel' 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.
 TextContent setTitle()
          Sets the 'title' property value to an anonymous node
 TextContent setTitle(org.openrdf.model.Resource resource)
          Sets the 'title' property value to the given resource, and add's rdf:type properties.
 void setTitle(TextContent title)
          Sets the 'title' 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

getRel

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

Specified by:
getRel in interface Link
Returns:
Iterator of RelationType
Throws:
JastorException
See Also:
Link.relProperty

addRel

public void addRel(RelationType rel)
            throws JastorException
Description copied from interface: Link
Adds a value for the 'rel' property

Specified by:
addRel in interface Link
Throws:
JastorException
See Also:
Link.relProperty

addRel

public RelationType addRel()
                    throws JastorException
Description copied from interface: Link
Adds an anonymous value for the 'rel' property

Specified by:
addRel in interface Link
Returns:
The anoymous RelationType created
Throws:
JastorException
See Also:
Link.relProperty

addRel

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

Specified by:
addRel in interface Link
Throws:
JastorException
See Also:
Link.relProperty

removeRel

public void removeRel(RelationType rel)
               throws JastorException
Description copied from interface: Link
Removes a value for the 'rel' 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:
removeRel in interface Link
Throws:
JastorException
See Also:
Link.relProperty

getContent

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

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

setContent

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

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

setContent

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

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

setContent

public Content setContent(org.openrdf.model.Resource resource)
                   throws JastorException
Description copied from interface: Link
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 Link
Returns:
Content, the newly created value
Throws:
JastorException
See Also:
Link.contentProperty

getEmail

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

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

addEmail

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

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

addEmail

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

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

addEmail

public GraphThing addEmail(org.openrdf.model.Resource resource)
                    throws JastorException
Description copied from interface: Link
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 Link
Throws:
JastorException
See Also:
Link.emailProperty

removeEmail

public void removeEmail(GraphThing email)
                 throws JastorException
Description copied from interface: Link
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 Link
Throws:
JastorException
See Also:
Link.emailProperty

getTitle

public TextContent getTitle()
                     throws JastorException
Description copied from interface: Link
Gets the 'title' property value

Specified by:
getTitle in interface Link
Returns:
TextContent
Throws:
JastorException
See Also:
Link.titleProperty

setTitle

public void setTitle(TextContent title)
              throws JastorException
Description copied from interface: Link
Sets the 'title' property value

Specified by:
setTitle in interface Link
Throws:
JastorException
See Also:
Link.titleProperty

setTitle

public TextContent setTitle()
                     throws JastorException
Description copied from interface: Link
Sets the 'title' property value to an anonymous node

Specified by:
setTitle in interface Link
Returns:
TextContent, the created value
Throws:
JastorException
See Also:
Link.titleProperty

setTitle

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

Specified by:
setTitle in interface Link
Returns:
TextContent, the newly created value
Throws:
JastorException
See Also:
Link.titleProperty


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