com.hp.hpl.jena.daml.common
Class DAMLDatatypePropertyImpl

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
        |
        +--com.hp.hpl.jena.daml.common.DAMLCommonImpl
              |
              +--com.hp.hpl.jena.daml.common.DAMLPropertyImpl
                    |
                    +--com.hp.hpl.jena.daml.common.DAMLDatatypePropertyImpl
All Implemented Interfaces:
DAMLCommon, DAMLDatatypeProperty, DAMLProperty, Property, RDFNode, Resource, ResourceI

public class DAMLDatatypePropertyImpl
extends DAMLPropertyImpl
implements DAMLDatatypeProperty

Java encapsulation of a datatype property in a DAML ontology. A datatype property is a partition of the class of all properties, whose values are drawn from concrete domains represented by XML schema expressions.

Version:
CVS info: $Id: DAMLDatatypePropertyImpl.java,v 1.4 2003/01/23 15:34:42 ian_dickinson Exp $
Author:
Ian Dickinson, HP Labs (email)

Constructor Summary
DAMLDatatypePropertyImpl(java.lang.String uri, DAMLModel store, DAMLVocabulary vocabulary)
          Constructor, takes the URI for this property, and the underlying model it will be attached to.
DAMLDatatypePropertyImpl(java.lang.String namespace, java.lang.String name, DAMLModel store, DAMLVocabulary vocabulary)
          Constructor, takes the name and namespace for this property, and the underlying model it will be attached to.
 
Method Summary
 Resource port(Model m)
          This is a Jena internal method.
 
Methods inherited from class com.hp.hpl.jena.daml.common.DAMLPropertyImpl
getDomainClasses, getEquivalentValues, getOrdinal, getRangeClasses, getSameProperties, getSubProperties, getSubProperties, getSuperProperties, getSuperProperties, isUnique, prop_domain, prop_range, prop_samePropertyAs, prop_subPropertyOf, setIsUnique, toString
 
Methods inherited from class com.hp.hpl.jena.daml.common.DAMLCommonImpl
getAll, getDAMLModel, getEquivalenceSet, getNumPropertyValues, getPropertyValue, getPropertyValues, getRDFTypes, getSelfIterator, getVocabulary, hasRDFType, hasRDFType, prop_comment, prop_equivalentTo, prop_label, prop_type, remove, removeAll, removeProperty, replaceProperty, setPropertyValue, setRDFType, setRDFType
 
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, getLocalName, getModel, getNameSpace, getProperty, getURI, hashCode, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.daml.DAMLProperty
getDomainClasses, getEquivalentValues, getRangeClasses, getSameProperties, getSubProperties, getSubProperties, getSuperProperties, getSuperProperties, isUnique, prop_domain, prop_range, prop_samePropertyAs, prop_subPropertyOf, setIsUnique
 
Methods inherited from interface com.hp.hpl.jena.daml.DAMLCommon
getAll, getDAMLModel, getEquivalenceSet, getNumPropertyValues, getPropertyValue, getPropertyValues, getRDFTypes, getVocabulary, hasRDFType, hasRDFType, prop_comment, prop_equivalentTo, prop_label, prop_type, remove, removeAll, removeProperty, replaceProperty, setPropertyValue, setRDFType, setRDFType
 
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, getLocalName, getModel, getNameSpace, getProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties, toString
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Property
getLocalName, getNameSpace, getOrdinal
 

Constructor Detail

DAMLDatatypePropertyImpl

public DAMLDatatypePropertyImpl(java.lang.String namespace,
                                java.lang.String name,
                                DAMLModel store,
                                DAMLVocabulary vocabulary)
Constructor, takes the name and namespace for this property, and the underlying model it will be attached to.

Parameters:
namespace - The namespace the property inhabits, or null
name - The name of the property
store - The RDF store that contains the RDF statements defining the properties of the property
vocabulary - Reference to the DAML vocabulary used by this property.

DAMLDatatypePropertyImpl

public DAMLDatatypePropertyImpl(java.lang.String uri,
                                DAMLModel store,
                                DAMLVocabulary vocabulary)
Constructor, takes the URI for this property, and the underlying model it will be attached to.

Parameters:
uri - The URI of the property
store - The RDF store that contains the RDF statements defining the properties of the property
vocabulary - Reference to the DAML vocabulary used by this property.
Method Detail

port

public Resource port(Model m)
              throws RDFException
This is a Jena internal method. I need to override the one in ResourceImpl to prevent a ClassCastException in some circumstances.

Specified by:
port in interface ResourceI
Overrides:
port in class DAMLPropertyImpl
Parameters:
m - The model to port to
Returns:
The ported resource
Throws:
RDFException - if an RDF processing error ocurrs.


Copyright © 2001 Hewlett-Packard. All Rights Reserved.