|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.data.model.property.MetaProperty
pl.edu.agh.cast.data.model.property.MetaPermanentProperty
public class MetaPermanentProperty
Meta property describing permanent properties.
| Constructor Summary | |
|---|---|
MetaPermanentProperty(String name,
PropertyType type,
boolean matchable,
Method getter,
Method setter)
Creates new permanent meta property (writable by default if setter exists). |
|
MetaPermanentProperty(String name,
String displayName,
PropertyType type,
boolean matchable,
Method getter,
Method setter)
Creates new permanent meta property (writable by default if setter exists). |
|
MetaPermanentProperty(String name,
String displayName,
PropertyType type,
boolean matchable,
Method getter,
Method setter,
boolean writable)
Creates new permanent meta property with the given writable flag. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true if given object is of type MetaProperty and has equal name,
type, writable and matchable flags. |
Method |
getGetter()
Returns getter method for retrieving property value from data element. |
Method |
getSetter()
Returns setter method for modifying property value in data element. |
int |
hashCode()
|
void |
setWritable(boolean writable)
Sets the writable flag. |
String |
toString()
|
| Methods inherited from class pl.edu.agh.cast.data.model.property.MetaProperty |
|---|
getDisplayName, getName, getType, isMatchable, isWritable, setDisplayName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MetaPermanentProperty(String name,
PropertyType type,
boolean matchable,
Method getter,
Method setter)
name - the name of the propertytype - the type of property valuematchable - the matchable flaggetter - value getter methodsetter - value setter method
public MetaPermanentProperty(String name,
String displayName,
PropertyType type,
boolean matchable,
Method getter,
Method setter)
name - the name of the propertydisplayName - the display name of the propertytype - the type of property valuematchable - the matchable flaggetter - value getter methodsetter - value setter method
public MetaPermanentProperty(String name,
String displayName,
PropertyType type,
boolean matchable,
Method getter,
Method setter,
boolean writable)
name - the name of the propertydisplayName - the display name of the propertytype - the type of property valuematchable - the matchable flaggetter - value getter methodsetter - value setter methodwritable - flat which indicates if the property is writable| Method Detail |
|---|
public Method getGetter()
public Method getSetter()
public void setWritable(boolean writable)
true only if setter is defined.
setWritable in class MetaPropertywritable - the writable flag to setMetaProperty.setWritable(boolean)public boolean equals(Object obj)
true if given object is of type MetaProperty and has equal name,
type, writable and matchable flags.
equals in class MetaPropertyMetaProperty.equals(java.lang.Object)public int hashCode()
hashCode in class MetaPropertyMetaProperty.hashCode()public String toString()
toString in class MetaPropertyObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||