org.diylc.common
Class PropertyWrapper
java.lang.Object
org.diylc.common.PropertyWrapper
- All Implemented Interfaces:
- java.lang.Cloneable
public class PropertyWrapper
- extends java.lang.Object
- implements java.lang.Cloneable
Entity class for editable properties extracted from component objects. Represents a single
editable property together with it's current value.
- Author:
- Branislav Stojkovic
|
Constructor Summary |
PropertyWrapper(java.lang.String name,
java.lang.Class<?> type,
java.lang.String getter,
java.lang.String setter,
boolean defaultable,
IPropertyValidator validator)
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
PropertyWrapper
public PropertyWrapper(java.lang.String name,
java.lang.Class<?> type,
java.lang.String getter,
java.lang.String setter,
boolean defaultable,
IPropertyValidator validator)
readFrom
public void readFrom(java.lang.Object object)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.SecurityException,
java.lang.NoSuchMethodException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.SecurityException
java.lang.NoSuchMethodException
writeTo
public void writeTo(java.lang.Object object)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.SecurityException,
java.lang.NoSuchMethodException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.SecurityException
java.lang.NoSuchMethodException
getName
public java.lang.String getName()
getType
public java.lang.Class<?> getType()
getValue
public java.lang.Object getValue()
setValue
public void setValue(java.lang.Object value)
isDefaultable
public boolean isDefaultable()
getValidator
public IPropertyValidator getValidator()
isUnique
public boolean isUnique()
setUnique
public void setUnique(boolean unique)
isChanged
public boolean isChanged()
setChanged
public void setChanged(boolean changed)
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
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