public class EntityRefProperty extends AbstractProperty
Constructor and Description |
---|
EntityRefProperty(EntityRefProperty other)
EntityRefProperty copy constructor.
|
EntityRefProperty(java.lang.Enum<?> urn)
Construct an EntityRefProperty with no defined value.
|
EntityRefProperty(java.lang.Enum<?> urn,
EntityID value)
Construct an EntityRefProperty with a defined value.
|
EntityRefProperty(java.lang.String urn)
Construct an EntityRefProperty with no defined value.
|
EntityRefProperty(java.lang.String urn,
EntityID value)
Construct an EntityRefProperty with a defined value.
|
Modifier and Type | Method and Description |
---|---|
EntityRefProperty |
copy()
Create a copy of this property.
|
EntityID |
getValue()
Get the value of this property.
|
void |
read(java.io.InputStream in)
Read this property from a stream.
|
void |
setValue(EntityID value)
Set the value of this property.
|
void |
takeValue(Property p)
Take on the value of another property.
|
void |
write(java.io.OutputStream out)
Write this property to a stream.
|
fireChange, getURN, isDefined, setDefined, setEntity, toString, undefine
public EntityRefProperty(java.lang.String urn)
urn
- The urn of this property.public EntityRefProperty(java.lang.Enum<?> urn)
urn
- The urn of this property.public EntityRefProperty(java.lang.String urn, EntityID value)
urn
- The urn of this property.value
- The initial value of the property.public EntityRefProperty(java.lang.Enum<?> urn, EntityID value)
urn
- The urn of this property.value
- The initial value of the property.public EntityRefProperty(EntityRefProperty other)
other
- The EntityRefProperty to copy.public EntityID getValue()
Property
public void setValue(EntityID value)
AbstractProperty.isDefined()
will return true.value
- The new value.public void takeValue(Property p)
Property
p
- The other property to inspect.public void write(java.io.OutputStream out) throws java.io.IOException
Property
out
- The stream to write to.java.io.IOException
- If the write fails.public void read(java.io.InputStream in) throws java.io.IOException
Property
in
- The stream to read from.java.io.IOException
- If the read fails.public EntityRefProperty copy()
Property