public abstract class OwlProperty extends Property
Constructor and Description |
---|
OwlProperty()
Create an uninitialized OwlProperty
|
OwlProperty(java.lang.String propName)
Construct an OwlProperty with the given name
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
addValueToThing(OwlThing thing,
java.lang.String value)
Apply the value to this property for the given OwlThing.
|
java.lang.String |
getComment()
Get the comment for this OwlProperty, if any.
|
java.lang.String |
getDisplayName()
Get the display name for this property.
|
OwlClass |
getDomain()
Get the OwlClass domain for this property.
|
static OwlProperty |
getProperty(java.lang.String name)
Get the named property.
|
boolean |
isFunctional()
Return whether the property is a functional property.
|
boolean |
isInverseFunctional()
Return whether the property is an inverse functional property.
|
void |
setComment(java.lang.String newComment)
Set the comment for this property
|
protected void |
setDisplayName(java.lang.String display)
Set the display name for this property.
|
void |
setDomain(OwlClass domainClass)
Set the domain class for this property
|
void |
setFunctional(boolean flag)
Set this property as a functional property
|
void |
setInverseFunctional(boolean flag)
Set this property as an inverse functional property
|
addProperty, clearDefined, equals, getName, getParent, getPropertyNames, getUri, hashCode, isDescendant, isDescendant, putProperty, setName, setUri, toString
public OwlProperty()
public OwlProperty(java.lang.String propName)
propName
- the property namepublic abstract boolean addValueToThing(OwlThing thing, java.lang.String value)
thing
- The OwlThing to apply the property to.value
- The value for this propertypublic java.lang.String getComment()
public java.lang.String getDisplayName()
public OwlClass getDomain()
public boolean isFunctional()
public boolean isInverseFunctional()
public void setComment(java.lang.String newComment)
newComment
- the comment for the propertyprotected void setDisplayName(java.lang.String display)
display
- the display namepublic void setDomain(OwlClass domainClass)
domainClass
- the domain classpublic void setFunctional(boolean flag)
flag
- true if the property is functionalpublic void setInverseFunctional(boolean flag)
flag
- true if the property is inverse functionalpublic static OwlProperty getProperty(java.lang.String name)
name
- the name of the property