|
||||||||||
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.MetaTransientProperty
public class MetaTransientProperty
Meta property describing transient properties. Transient properties cannot be modified and are not persisted. They may be calculated based on other properties.
Constructor Summary | |
---|---|
MetaTransientProperty(String name,
PropertyType type,
boolean matchable,
Method getter)
Creates new permanent meta property (non-writable by default). |
|
MetaTransientProperty(String name,
String displayName,
PropertyType type,
boolean matchable,
Method getter)
Creates new permanent meta property (non-writable by default). |
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. |
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 MetaTransientProperty(String name, PropertyType type, boolean matchable, Method getter)
name
- the name of the propertytype
- the type of property valuematchable
- the matchable flaggetter
- value getter methodpublic MetaTransientProperty(String name, String displayName, PropertyType type, boolean matchable, Method getter)
name
- the name of the propertydisplayName
- the display name of the propertytype
- the type of property valuematchable
- the matchable flaggetter
- value getter methodMethod Detail |
---|
public Method getGetter()
public void setWritable(boolean writable)
setWritable
in class MetaProperty
writable
- 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 MetaProperty
MetaProperty.equals(java.lang.Object)
public int hashCode()
hashCode
in class MetaProperty
MetaProperty.hashCode()
public String toString()
toString
in class MetaProperty
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |