org.qi4j.api.property
Class PropertyWrapper
java.lang.Object
org.qi4j.api.property.PropertyWrapper
- All Implemented Interfaces:
- Property<java.lang.Object>
public class PropertyWrapper
- extends java.lang.Object
- implements Property<java.lang.Object>
If you want to catch getting and setting properties, then create a GenericConcern
that wraps the Qi4j-supplied Property instance with PropertyWrappers. Override
get() and/or set() to perform your custom code.
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
get()
Get the value of the property. |
int |
hashCode()
|
Property<java.lang.Object> |
next()
|
void |
set(java.lang.Object newValue)
Set the value of the property |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
next
protected Property<java.lang.Object> next
PropertyWrapper
public PropertyWrapper(Property<java.lang.Object> next)
next
public Property<java.lang.Object> next()
get
public java.lang.Object get()
- Description copied from interface:
Property
- Get the value of the property.
- Specified by:
get
in interface Property<java.lang.Object>
- Returns:
- the value
set
public void set(java.lang.Object newValue)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException
- Description copied from interface:
Property
- Set the value of the property
- Specified by:
set
in interface Property<java.lang.Object>
- Parameters:
newValue
- the new value
- Throws:
java.lang.IllegalArgumentException
- if the value has an invalid value
java.lang.IllegalStateException
- if the property is immutable
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object