net.sourceforge.demetrix.properties
Class DemetrixProperty

java.lang.Object
  extended bynet.sourceforge.demetrix.properties.DemetrixProperty
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BooleanProperty, DoubleProperty, FileProperty, IntegerProperty, StringProperty

public abstract class DemetrixProperty
extends Object
implements Serializable

Author:
Dimitri Pissarenko *
See Also:
Serialized Form

Field Summary
private  Logger logger
           
private  boolean mustBeEntered
           
private  String name
           
private  boolean readOnly
           
private  Object value
           
 
Constructor Summary
DemetrixProperty()
           
 
Method Summary
protected  RuntimeException createClassNotCompatibleException(Class propertyClass, Class allowedValueClass, Class actualValueClass)
           
 boolean equals(Object anotherObject)
           
 String getName()
           
 Object getValue()
           
 int hashCode()
           
 boolean isMustBeEntered()
           
 boolean isReadOnly()
           
protected  void setAllowedValue(Object newValue, Class allowedValueClass)
           
 void setMustBeEntered(boolean b)
           
 void setName(String string)
           
 void setReadOnly(boolean b)
           
abstract  void setValue(Object object)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private String name

value

private Object value

readOnly

private boolean readOnly

mustBeEntered

private boolean mustBeEntered

logger

private Logger logger
Constructor Detail

DemetrixProperty

public DemetrixProperty()
Method Detail

getName

public String getName()

setName

public void setName(String string)

getValue

public Object getValue()
Returns:

setValue

public abstract void setValue(Object object)
Parameters:
object -

setAllowedValue

protected void setAllowedValue(Object newValue,
                               Class allowedValueClass)

toString

public String toString()

isReadOnly

public boolean isReadOnly()
Returns:

setReadOnly

public void setReadOnly(boolean b)
Parameters:
b -

createClassNotCompatibleException

protected RuntimeException createClassNotCompatibleException(Class propertyClass,
                                                             Class allowedValueClass,
                                                             Class actualValueClass)

isMustBeEntered

public boolean isMustBeEntered()
Returns:

setMustBeEntered

public void setMustBeEntered(boolean b)
Parameters:
b -

equals

public boolean equals(Object anotherObject)

hashCode

public int hashCode()