gate.creole.ontology
Class DatatypePropertyImpl
java.lang.Object
gate.creole.ontology.PropertyImpl
gate.creole.ontology.DatatypePropertyImpl
- All Implemented Interfaces:
- DatatypeProperty, Property
- public class DatatypePropertyImpl
- extends PropertyImpl
- implements DatatypeProperty
Fields inherited from class gate.creole.ontology.PropertyImpl |
|
range
private Object range
DatatypePropertyImpl
public DatatypePropertyImpl(String aName,
OClass aDomain,
String aString,
Ontology aKB)
DatatypePropertyImpl
public DatatypePropertyImpl(String aName,
OClass aDomain,
Number number,
Ontology aKB)
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