|
Joda System API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.joda.property.impl.AbstractModelElement
|
+--org.joda.property.impl.AbstractProperty
|
+--org.joda.property.impl.type.AbstractBooleanicProperty
Default implementation of a Booleanic property.
Data is stored in the associated PropertyData object as a Boolean object. This is immutable so can be directly returned.
| Nested Class Summary |
| Nested classes inherited from class org.joda.property.Property |
Property.Internal |
| Constructor Summary | |
AbstractBooleanicProperty()
Constructor |
|
| Method Summary | |
boolean |
booleanValue()
Get the property's value as a boolean. |
protected java.lang.Boolean |
convertObjectToBoolean(java.lang.Object object)
Convert an Object to a Boolean, throwing an exception if unable to convert. |
protected java.lang.Boolean |
getInternal()
Get the property as a Boolean |
boolean |
isFalse()
Is the property value currently in a 'false' state. |
boolean |
isTrue()
Is the property value currently in a 'true' state. |
void |
negate()
Negate the current value of the property. |
void |
set(boolean propertyValue)
Set the property's value. |
void |
set(java.lang.Object propertyValue)
Set the property's value as an object. |
protected void |
setInternal(java.lang.Boolean newValue)
Set the property value as a Boolean |
java.lang.Boolean |
toBoolean()
Get the property's value as a Boolean. |
java.lang.Object |
toObject()
Get the property's value as an object. |
| Methods inherited from class org.joda.property.impl.AbstractProperty |
addPropertyChangeListener, bean, checkArgumentNotNull, checkModifiable, checkValueNotNull, checkValueNotNull, cloneDeep, convertObject, createClonedProperty, data, equals, equalsValue, firePropertyChange, firePropertyChange, getContentName, getContentType, getPropertyName, getThis, hashCode, initBeanCreated, initPropertyCreated, isModifiable, isNull, isReadOnly, populateClonedProperty, removePropertyChangeListener, setModifiable, setReadOnly, toDataString, toString |
| Methods inherited from class org.joda.property.impl.AbstractModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.joda.property.type.DataProperty |
toDataString |
| Methods inherited from interface org.joda.property.Property |
addPropertyChangeListener, bean, equals, equalsValue, firePropertyChange, getContentName, getContentType, getPropertyName, getPropertyType, hashCode, isModifiable, isNull, isReadOnly, removePropertyChangeListener, setModifiable, setReadOnly, toString |
| Methods inherited from interface org.joda.property.ModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
| Constructor Detail |
public AbstractBooleanicProperty()
| Method Detail |
protected java.lang.Boolean getInternal()
protected void setInternal(java.lang.Boolean newValue)
newValue - the value to storepublic java.lang.Object toObject()
Property
This method has strong semantics such that where a and b are
properties of the same type, it must be true that:
b.set( a.toObject() );
a.equals(b);
In other words, the object contains all the data necessary to
recreate the property's value.
toObject in interface PropertytoObject in class AbstractPropertyProperty#toObject()public java.lang.Boolean toBoolean()
BooleanicProperty
toBoolean in interface BooleanicPropertyBooleanProperty#toBoolean()public boolean booleanValue()
BooleanicProperty
booleanValue in interface BooleanicPropertyBooleanProperty#booleanValue()public boolean isTrue()
BooleanicProperty
isTrue in interface BooleanicPropertyBooleanProperty#isTrue()public boolean isFalse()
BooleanicProperty
isFalse in interface BooleanicPropertyBooleanProperty#isFalse()protected java.lang.Boolean convertObjectToBoolean(java.lang.Object object)
object - the value to convert
public void set(java.lang.Object propertyValue)
PropertyIf a String is passed in, it can be parsed in various ways. If the results of toDataString() are passed in, it must reconstitute the original value.
set in interface Propertyset in class AbstractPropertypropertyValue - an Object to set the property's value toProperty#set(Object)public void set(boolean propertyValue)
BooleanicProperty
set in interface BooleanicPropertypropertyValue - a value to set the property's value toBooleanProperty#set(boolean)public void negate()
BooleanicProperty
negate in interface BooleanicPropertyBooleanProperty#negate()
|
Joda System API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||