public class BooleanProperty extends AbstractProperty
Constructor and Description |
---|
BooleanProperty(BooleanProperty other)
BooleanProperty copy constructor.
|
BooleanProperty(java.lang.Enum<?> urn)
Construct a BooleanProperty with no defined value.
|
BooleanProperty(java.lang.Enum<?> urn,
boolean value)
Construct a BooleanProperty with a defined value.
|
BooleanProperty(java.lang.String urn)
Construct a BooleanProperty with no defined value.
|
BooleanProperty(java.lang.String urn,
boolean value)
Construct a BooleanProperty with a defined value.
|
Modifier and Type | Method and Description |
---|---|
BooleanProperty |
copy()
Create a copy of this property.
|
java.lang.Boolean |
getValue()
Get the value of this property.
|
void |
read(java.io.InputStream in)
Read this property from a stream.
|
void |
setValue(boolean 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 BooleanProperty(java.lang.String urn)
urn
- The urn of this property.public BooleanProperty(java.lang.Enum<?> urn)
urn
- The urn of this property.public BooleanProperty(java.lang.String urn, boolean value)
urn
- The urn of this property.value
- The initial value of the property.public BooleanProperty(java.lang.Enum<?> urn, boolean value)
urn
- The urn of this property.value
- The initial value of the property.public BooleanProperty(BooleanProperty other)
other
- The BooleanProperty to copy.public java.lang.Boolean getValue()
Property
public void setValue(boolean 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 BooleanProperty copy()
Property