public abstract class AbstractProperty extends java.lang.Object implements Property
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProperty(AbstractProperty other)
AbstractProperty copy constructor.
|
protected |
AbstractProperty(java.lang.Enum<?> urn)
Construct a property with a given type and assume that the value of this property is initially undefined.
|
protected |
AbstractProperty(java.lang.Enum<?> urn,
boolean defined)
Construct a property with a given type and whether the value of this property is initially defined or not.
|
protected |
AbstractProperty(java.lang.String urn)
Construct a property with a given type and assume that the value of this property is initially undefined.
|
protected |
AbstractProperty(java.lang.String urn,
boolean defined)
Construct a property with a given type and whether the value of this property is initially defined or not.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireChange(java.lang.Object oldValue,
java.lang.Object newValue)
Notify the entity that this property has changed.
|
java.lang.String |
getURN()
Get the urn of this property.
|
boolean |
isDefined()
Does this property have a defined value?
|
protected void |
setDefined()
Set the property status to defined.
|
protected void |
setEntity(AbstractEntity e)
Set this property's containing Entity.
|
java.lang.String |
toString() |
void |
undefine()
Undefine the value of this property.
|
protected AbstractProperty(java.lang.String urn)
urn - The urn of the property.protected AbstractProperty(java.lang.Enum<?> urn)
urn - The urn of the property.protected AbstractProperty(java.lang.String urn,
boolean defined)
urn - The urn of the property.defined - Whether the value is initially defined or not.protected AbstractProperty(java.lang.Enum<?> urn,
boolean defined)
urn - The urn of the property.defined - Whether the value is initially defined or not.protected AbstractProperty(AbstractProperty other)
other - The AbstractProperty to copy.protected void setDefined()
protected void setEntity(AbstractEntity e)
e - The AbstractEntity that holds this property.public boolean isDefined()
Propertypublic void undefine()
PropertyProperty.isDefined() will return false.public java.lang.String getURN()
Propertyprotected void fireChange(java.lang.Object oldValue,
java.lang.Object newValue)
oldValue - The old value of this property.newValue - The new value of this property.public java.lang.String toString()
toString in class java.lang.Object