gate.creole.ontology
Class DatatypePropertyImpl

java.lang.Object
  extended bygate.creole.ontology.PropertyImpl
      extended bygate.creole.ontology.DatatypePropertyImpl
All Implemented Interfaces:
DatatypeProperty, Property

public class DatatypePropertyImpl
extends PropertyImpl
implements DatatypeProperty


Field Summary
private  Object range
           
 
Fields inherited from class gate.creole.ontology.PropertyImpl
 
Constructor Summary
DatatypePropertyImpl(String aName, OClass aDomain, Number number, Ontology aKB)
           
DatatypePropertyImpl(String aName, OClass aDomain, String aString, Ontology aKB)
           
 
Method Summary
 Object getRange()
           
 boolean isValueCompatible(Object value)
           
 String toString()
           
 
Methods inherited from class gate.creole.ontology.PropertyImpl
getDomain, getName, getOntology, getSamePropertyAs, getSubPropertyOf, getURI, setSamePropertyAs, setSubPropertyOf, setURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gate.creole.ontology.Property
getDomain, getName, getOntology, getSamePropertyAs, getSubPropertyOf, getURI, setSamePropertyAs, setSubPropertyOf, setURI
 

Field Detail

range

private Object range
Constructor Detail

DatatypePropertyImpl

public DatatypePropertyImpl(String aName,
                            OClass aDomain,
                            String aString,
                            Ontology aKB)

DatatypePropertyImpl

public DatatypePropertyImpl(String aName,
                            OClass aDomain,
                            Number number,
                            Ontology aKB)
Method Detail

isValueCompatible

public boolean isValueCompatible(Object value)
Specified by:
isValueCompatible in interface Property
Parameters:
value -
Returns:
true if this value is compatible with the range restrictions on the property. False otherwise.

getRange

public Object getRange()
Specified by:
getRange in interface DatatypeProperty

toString

public String toString()
Overrides:
toString in class PropertyImpl