com.hp.hpl.jena.daml
Interface DAMLDataInstance

All Superinterfaces:
DAMLCommon, RDFNode, Resource
All Known Implementing Classes:
DAMLDataInstanceImpl

public interface DAMLDataInstance
extends DAMLCommon

A data instance is a specific type of DAML object that represents the instantiation of a DAML datatype.

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

Method Summary
 java.util.Iterator getSameInstances()
          Return an iterator over all of the instances that are the same as this one, by generating the transitive closure over the daml:samePropertyAs property.
 DatatypeTranslator getTranslator()
          Answer the Datatype translator for values encoded by the datatype of this instance.
 java.lang.Object getValue()
          Answer the value of this instance as a Java object, translated from the serialised RDF representation by the Dataype's translator.
 PropertyAccessor prop_sameIndividualAs()
          Property accessor for daml:sameIndividualAs property on a DAML instance.
 void setValue(java.lang.Object value)
          Set the value of this instance to the given Java value, which will be serialised into the RDF graph by the datatype's translator
 
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
 

Method Detail

prop_sameIndividualAs

public PropertyAccessor prop_sameIndividualAs()
Property accessor for daml:sameIndividualAs property on a DAML instance.
Returns:
a property accessor

getSameInstances

public java.util.Iterator getSameInstances()
Return an iterator over all of the instances that are the same as this one, by generating the transitive closure over the daml:samePropertyAs property.
Returns:
an iterator whose values will all be DAMLInstance objects

getTranslator

public DatatypeTranslator getTranslator()
Answer the Datatype translator for values encoded by the datatype of this instance.
Returns:
the datatype translator defined by the DAMLDatatype that is the rdf:type of this instance, or null if it is not defined.

getValue

public java.lang.Object getValue()
Answer the value of this instance as a Java object, translated from the serialised RDF representation by the Dataype's translator.
Returns:
the value of this instance, or null if either the translator or the serialised value is defined

setValue

public void setValue(java.lang.Object value)
Set the value of this instance to the given Java value, which will be serialised into the RDF graph by the datatype's translator


Copyright © 2001 Hewlett-Packard. All Rights Reserved.