public class OwlDatatypeProperty extends OwlProperty
Constructor and Description |
---|
OwlDatatypeProperty(java.lang.String name,
java.lang.String type)
Create a new OwlDataTypeProperty with the given name and type
|
Modifier and Type | Method and Description |
---|---|
boolean |
addValueToThing(OwlThing thing,
java.lang.String value)
Apply the value to this property for the given OwlThing.
|
static OwlDatatypeProperty |
createFromElement(org.w3c.dom.Element element)
Create a DataType property from an Element.
|
FieldDesc<?> |
generateFieldDesc(java.lang.String fieldType)
Generate the internal field description for this datatype element, based
upon the field type.
|
DataType |
getDataType()
Get the basic data type expected by this property.
|
FieldDesc<?> |
getFieldDesc()
Get the internal field descriptor for this datatype property
|
Property |
getParent()
Get the parent property, if any, for this property
|
static OwlDatatypeProperty |
getProperty(java.lang.String name)
Get the named datatype property.
|
static java.util.Set<java.lang.String> |
getPropertyNames()
Get the list of DatatypeProperty names
|
java.lang.String |
getRangeType()
Get the range type for this datatype.
|
void |
setFieldDesc(FieldDesc<?> desc)
Set the field descriptor for this datatype property.
|
void |
setName(java.lang.String propName)
Set the name of this datatype property
|
void |
setParent(OwlDatatypeProperty prop)
Set the parent for this property
|
getComment, getDisplayName, getDomain, isFunctional, isInverseFunctional, setComment, setDisplayName, setDomain, setFunctional, setInverseFunctional
addProperty, clearDefined, equals, getName, getUri, hashCode, isDescendant, isDescendant, putProperty, setUri, toString
public OwlDatatypeProperty(java.lang.String name, java.lang.String type)
name
- the property nametype
- the property typepublic boolean addValueToThing(OwlThing thing, java.lang.String value)
addValueToThing
in class OwlProperty
thing
- The OwlThing to apply the property to.value
- The value for this propertypublic FieldDesc<?> generateFieldDesc(java.lang.String fieldType)
fieldType
- the fieldType attribute.public DataType getDataType()
public FieldDesc<?> getFieldDesc()
public Property getParent()
public java.lang.String getRangeType()
public void setFieldDesc(FieldDesc<?> desc)
desc
- the new field descriptorpublic void setName(java.lang.String propName)
public void setParent(OwlDatatypeProperty prop)
prop
- the parent propertypublic static OwlDatatypeProperty createFromElement(org.w3c.dom.Element element)
element
- the datatype property elementpublic static OwlDatatypeProperty getProperty(java.lang.String name)
name
- the name of the propertypublic static java.util.Set<java.lang.String> getPropertyNames()