org.w3c.rdf.implementation.model
Class ResourceImpl

java.lang.Object
  |
  +--org.w3c.rdf.implementation.model.RDFNodeImpl
        |
        +--org.w3c.rdf.implementation.model.ResourceImpl
All Implemented Interfaces:
RDFNode, Resource

public class ResourceImpl
extends RDFNodeImpl
implements Resource


Constructor Summary
protected ResourceImpl()
           
  ResourceImpl(java.lang.String uri)
           
  ResourceImpl(java.lang.String namespace, java.lang.String localName)
           
 
Method Summary
 boolean equals(java.lang.Object that)
           
 java.lang.String getLabel()
          The formal string label of the node.
 java.lang.String getLocalName()
          Returns the local name of the resource.
 java.lang.String getNamespace()
          Returns the namespace of the resource.
 java.lang.String getURI()
          Returns the URI of the resource.
 
Methods inherited from class org.w3c.rdf.implementation.model.RDFNodeImpl
hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceImpl

protected ResourceImpl()

ResourceImpl

public ResourceImpl(java.lang.String uri)

ResourceImpl

public ResourceImpl(java.lang.String namespace,
                    java.lang.String localName)
Method Detail

getURI

public java.lang.String getURI()
Description copied from interface: Resource
Returns the URI of the resource. Triples and models must implement this method in a standard way.
Specified by:
getURI in interface Resource
Following copied from interface: org.w3c.rdf.model.Resource
Returns:
the URI of the resource
See Also:
Statement, Model

getNamespace

public java.lang.String getNamespace()
Description copied from interface: Resource
Returns the namespace of the resource. May return null.
Specified by:
getNamespace in interface Resource
Following copied from interface: org.w3c.rdf.model.Resource
Returns:
the namespace of the resource
See Also:
Statement, Model

getLocalName

public java.lang.String getLocalName()
Description copied from interface: Resource
Returns the local name of the resource. May not return null.
Specified by:
getLocalName in interface Resource
Following copied from interface: org.w3c.rdf.model.Resource
Returns:
the local name of the resource
See Also:
Statement, Model

getLabel

public java.lang.String getLabel()
Description copied from interface: RDFNode
The formal string label of the node. URI in case of a resource, string in case of a literal.
Specified by:
getLabel in interface RDFNode
Overrides:
getLabel in class RDFNodeImpl

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class RDFNodeImpl