org.openanzo.atom.jastor.atomowl
Class XHTMLImpl

java.lang.Object
  extended by org.openanzo.jastor.GraphThingImpl
      extended by org.openanzo.atom.jastor.atomowl.XHTMLImpl
All Implemented Interfaces:
Content, TextContent, XHTML, Representation, CoreThing, GraphThing

public class XHTMLImpl
extends GraphThingImpl
implements XHTML

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

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



Field Summary
 
Fields inherited from interface org.openanzo.atom.jastor.atomowl.XHTML
TYPE
 
Method Summary
 void addBody(org.openrdf.model.Literal body)
          Add a 'body' property value
 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.
 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.
 InformationResource addSrc()
          Adds an anonymous value for the 'src' property
 void addSrc(InformationResource src)
          Adds a value for the 'src' property
 InformationResource addSrc(org.openrdf.model.Resource resource)
          Adds a value for the 'src' property.
 info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Literal> getBody()
          Iterates through the 'body' 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 getLang()
          Gets the 'lang' property value
 java.lang.Integer getLength()
          Gets the 'length' property value
 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.
 info.aduna.collections.iterators.CloseableIterator<InformationResource> getSrc()
          Get an Iterator the 'src' property values.
 java.lang.String getType()
          Gets the 'type' property value
 java.lang.String getXhtml()
          Gets the 'xhtml' property value
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void removeBody(org.openrdf.model.Literal body)
          Remove a 'body' property value.
 void removeEmail(GraphThing email)
          Removes a value for the 'email' property.
 void removeRepresentation(GraphThing representation)
          Removes a value for the 'representation' property.
 void removeRepresentationOf(GraphThing representationOf)
          Removes a value for the 'representationOf' property.
 void removeSrc(InformationResource src)
          Removes a value for the 'src' 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 setLang(java.lang.String lang)
          Sets the 'lang' property value
 void setLength(java.lang.Integer length)
          Sets the 'length' property value
 void setType(java.lang.String type)
          Sets the 'type' property value
 void setXhtml(java.lang.String xhtml)
          Sets the 'xhtml' 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

getRepresentationOf

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

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

addRepresentationOf

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

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

addRepresentationOf

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

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

addRepresentationOf

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

removeRepresentationOf

public void removeRepresentationOf(GraphThing representationOf)
                            throws JastorException
Description copied from interface: Representation
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 Representation
Throws:
JastorException
See Also:
Representation.representationOfProperty

getRepresentation

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

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

addRepresentation

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

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

addRepresentation

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

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

addRepresentation

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

removeRepresentation

public void removeRepresentation(GraphThing representation)
                          throws JastorException
Description copied from interface: Representation
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 Representation
Throws:
JastorException
See Also:
Representation.representationProperty

getLength

public java.lang.Integer getLength()
                            throws JastorException
Description copied from interface: Content
Gets the 'length' property value

Specified by:
getLength in interface Content
Returns:
Integer
Throws:
JastorException
See Also:
Content.lengthProperty

setLength

public void setLength(java.lang.Integer length)
               throws JastorException
Description copied from interface: Content
Sets the 'length' property value

Specified by:
setLength in interface Content
Throws:
JastorException
See Also:
Content.lengthProperty

getType

public java.lang.String getType()
                         throws JastorException
Description copied from interface: Content
Gets the 'type' property value

Specified by:
getType in interface Content
Returns:
String
Throws:
JastorException
See Also:
Content.typeProperty

setType

public void setType(java.lang.String type)
             throws JastorException
Description copied from interface: Content
Sets the 'type' property value

Specified by:
setType in interface Content
Throws:
JastorException
See Also:
Content.typeProperty

getBody

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

Specified by:
getBody in interface Content
Returns:
Iterator of Literal
Throws:
JastorException
See Also:
Content.bodyProperty

addBody

public void addBody(org.openrdf.model.Literal body)
             throws JastorException
Description copied from interface: Content
Add a 'body' property value

Specified by:
addBody in interface Content
Throws:
JastorException
See Also:
Content.bodyProperty

removeBody

public void removeBody(org.openrdf.model.Literal body)
                throws JastorException
Description copied from interface: Content
Remove a 'body' 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:
removeBody in interface Content
Throws:
JastorException
See Also:
Content.bodyProperty

getSrc

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

Specified by:
getSrc in interface Content
Returns:
Iterator of InformationResource
Throws:
JastorException
See Also:
Content.srcProperty

addSrc

public void addSrc(InformationResource src)
            throws JastorException
Description copied from interface: Content
Adds a value for the 'src' property

Specified by:
addSrc in interface Content
Throws:
JastorException
See Also:
Content.srcProperty

addSrc

public InformationResource addSrc()
                           throws JastorException
Description copied from interface: Content
Adds an anonymous value for the 'src' property

Specified by:
addSrc in interface Content
Returns:
The anoymous InformationResource created
Throws:
JastorException
See Also:
Content.srcProperty

addSrc

public InformationResource addSrc(org.openrdf.model.Resource resource)
                           throws JastorException
Description copied from interface: Content
Adds a value for the 'src' property. This method is equivalent constructing a new instance of InformationResource with the factory and calling addSrc(org.openanzo.atom.jastor.webarch.InformationResource src) The resource argument have rdf:type http://sw.nokia.com/WebArch-1/InformationResource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addSrc in interface Content
Throws:
JastorException
See Also:
Content.srcProperty

removeSrc

public void removeSrc(InformationResource src)
               throws JastorException
Description copied from interface: Content
Removes a value for the 'src' 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:
removeSrc in interface Content
Throws:
JastorException
See Also:
Content.srcProperty

getLang

public java.lang.String getLang()
                         throws JastorException
Description copied from interface: Content
Gets the 'lang' property value

Specified by:
getLang in interface Content
Returns:
String
Throws:
JastorException
See Also:
Content.langProperty

setLang

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

Specified by:
setLang in interface Content
Throws:
JastorException
See Also:
Content.langProperty

getEmail

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

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

addEmail

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

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

addEmail

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

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

addEmail

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

removeEmail

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

getContent

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

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

setContent

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

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

setContent

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

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

setContent

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

getXhtml

public java.lang.String getXhtml()
                          throws JastorException
Description copied from interface: XHTML
Gets the 'xhtml' property value

Specified by:
getXhtml in interface XHTML
Returns:
String
Throws:
JastorException
See Also:
XHTML.xhtmlProperty

setXhtml

public void setXhtml(java.lang.String xhtml)
              throws JastorException
Description copied from interface: XHTML
Sets the 'xhtml' property value

Specified by:
setXhtml in interface XHTML
Throws:
JastorException
See Also:
XHTML.xhtmlProperty


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