com.hp.hpl.mesa.rdf.jena.common
Class PropertyImpl

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
        |
        +--com.hp.hpl.mesa.rdf.jena.common.PropertyImpl
All Implemented Interfaces:
Property, RDFNode, Resource, ResourceI

public class PropertyImpl
extends ResourceImpl
implements Property

An implementation of Property.

Version:
Release='$Name: $' Revision='$Revision: 1.2 $' Date='$Date: 2001/09/10 16:17:21 $'
Author:
bwm

Constructor Summary
PropertyImpl(java.lang.String uri)
          Creates new PropertyImpl
PropertyImpl(java.lang.String uri, Model m)
           
PropertyImpl(java.lang.String nameSpace, java.lang.String localName)
           
PropertyImpl(java.lang.String nameSpace, java.lang.String localName, int ordinal, Model m)
           
PropertyImpl(java.lang.String nameSpace, java.lang.String localName, Model m)
           
 
Method Summary
 java.lang.String getLocalName()
          Returns the name of this property within its namespace.
 java.lang.String getNameSpace()
          Returns the namespace associated with this property.
 int getOrdinal()
          Returns the ordinal value of a containment property.
 Resource port(Model m)
          For internal use only
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getEmbeddedResource, getId, getModel, getProperty, getURI, hashCode, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Resource
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getModel, getProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties, toString
 

Constructor Detail

PropertyImpl

public PropertyImpl(java.lang.String uri)
             throws RDFException
Creates new PropertyImpl

PropertyImpl

public PropertyImpl(java.lang.String nameSpace,
                    java.lang.String localName)
             throws RDFException

PropertyImpl

public PropertyImpl(java.lang.String uri,
                    Model m)
             throws RDFException

PropertyImpl

public PropertyImpl(java.lang.String nameSpace,
                    java.lang.String localName,
                    Model m)
             throws RDFException

PropertyImpl

public PropertyImpl(java.lang.String nameSpace,
                    java.lang.String localName,
                    int ordinal,
                    Model m)
             throws RDFException
Method Detail

getNameSpace

public java.lang.String getNameSpace()
Description copied from interface: Property
Returns the namespace associated with this property.
Specified by:
getNameSpace in interface Property
Overrides:
getNameSpace in class ResourceImpl
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Property
Returns:
The namespace for this property.

getLocalName

public java.lang.String getLocalName()
Description copied from interface: Property
Returns the name of this property within its namespace.
Specified by:
getLocalName in interface Property
Overrides:
getLocalName in class ResourceImpl
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Property
Returns:
The name of this property within its namespace.

getOrdinal

public int getOrdinal()
Description copied from interface: Property
Returns the ordinal value of a containment property.

RDF containers use properties of the form _1, _2, _3 etc to represent the containment relationship between the container and the objects it contains. When invoked on such a containment property, this method returns the integer part of the property name. When invoked on other properties, it returns 0.

Specified by:
getOrdinal in interface Property
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.Property
Returns:
The ordinal value of a containment property, or 0 otherwise.

port

public Resource port(Model m)
              throws RDFException
Description copied from interface: ResourceI
For internal use only
Overrides:
port in class ResourceImpl


Copyright 2001 Hewlett-Packard. All Rights Reserved.