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

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
        |
        +--com.hp.hpl.jena.daml.common.DAMLCommonImpl
              |
              +--com.hp.hpl.jena.daml.common.DAMLDatatypeImpl
All Implemented Interfaces:
DAMLCommon, DAMLDatatype, RDFNode, Resource, ResourceI

public class DAMLDatatypeImpl
extends DAMLCommonImpl
implements DAMLDatatype

Encapsulates a DAML dataype, that represents values from a concrete domain by encoding their type using XML schema.

Version:
CVS info: $Id: DAMLDatatypeImpl.java,v 1.1 2001/09/24 17:02:41 ijd Exp $
Author:
Ian Dickinson, HP Labs (email)

Constructor Summary
DAMLDatatypeImpl(java.lang.String uri, DAMLModel store, DAMLVocabulary vocabulary)
          Constructor, takes URI for this datatype, and the underlying model it will be attached to.
DAMLDatatypeImpl(java.lang.String namespace, java.lang.String name, DAMLModel model, DAMLVocabulary vocabulary)
          Constructor, takes the name and namespace for this datatype, and the underlying model it will be attached to.
 
Method Summary
 DatatypeTranslator getTranslator()
          Answer the traslator that can map between Java values and the serialised form that represents the value in the RDF graph.
 
Methods inherited from class com.hp.hpl.jena.daml.common.DAMLCommonImpl
getAll, getDAMLModel, getEquivalenceSet, getEquivalentValues, getNumPropertyValues, getPropertyValue, getPropertyValues, getRDFTypes, getSelfIterator, getVocabulary, hasRDFType, hasRDFType, prop_comment, prop_equivalentTo, prop_label, prop_type, remove, removeAll, removeProperty, replaceProperty, setPropertyValue, setRDFType, setRDFType, toString
 
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, port, removeProperties
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.daml.DAMLCommon
getAll, getDAMLModel, getEquivalenceSet, getEquivalentValues, 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
 

Constructor Detail

DAMLDatatypeImpl

public DAMLDatatypeImpl(java.lang.String namespace,
                        java.lang.String name,
                        DAMLModel model,
                        DAMLVocabulary vocabulary)
Constructor, takes the name and namespace for this datatype, and the underlying model it will be attached to.
Parameters:
namespace - The namespace the datatype inhabits, or null
name - The name of the datatype
model - Reference to the DAML model that will contain statements about this DAML datatype.
vocabulary - Reference to the DAML vocabulary used by this datatype.

DAMLDatatypeImpl

public DAMLDatatypeImpl(java.lang.String uri,
                        DAMLModel store,
                        DAMLVocabulary vocabulary)
Constructor, takes URI for this datatype, and the underlying model it will be attached to.
Parameters:
uri - The URI of the datatype
store - Reference to the DAML store that will contain statements about this DAML datatype.
vocabulary - Reference to the DAML vocabulary used by this datatype.
Method Detail

getTranslator

public DatatypeTranslator getTranslator()
Answer the traslator that can map between Java values and the serialised form that represents the value in the RDF graph.
Specified by:
getTranslator in interface DAMLDatatype
Returns:
a datatype translator.


Copyright © 2001 Hewlett-Packard. All Rights Reserved.