|
||||||||||
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
public class MetaProperty
Meta property is a class for describing IElement
s' and
IDataSet
s' Property
'ies.
Meta property introduces name by which property is identifiable in MetaPropertyManager
and type
- one of that defined by PropertyType
. writable flag indicates if property can be modified after it's
creation and at last matchable flag says if the property is taken into account during comparison of objects
using IPropertyContainer#match(IPropertyContainer)
method. More details about this method you find in it's
javadoc.
The name of the property has to follow the following rules:
Constructor Summary | |
---|---|
MetaProperty(String name,
PropertyType type,
boolean writable,
boolean matchable)
Creates new meta property. |
|
MetaProperty(String name,
String displayName,
PropertyType type,
boolean writable,
boolean matchable)
Creates new meta property. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Returns true if given object is of type MetaProperty and has equal name,
type, writable and matchable flags. |
String |
getDisplayName()
Returns the property display name (ex. |
String |
getName()
Returns the property name (always in UPPER CASE). |
PropertyType |
getType()
Returns the property type. |
int |
hashCode()
|
boolean |
isMatchable()
Checks if property is matchable. |
boolean |
isWritable()
Checks if the property is writable (may be modified). |
void |
setDisplayName(String displayName)
Sets the property display name. |
void |
setWritable(boolean writable)
Sets the writable flag. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MetaProperty(String name, PropertyType type, boolean writable, boolean matchable)
name
- the name of the propertytype
- the type of property valuewritable
- whether the value may be set/changedmatchable
- the matchable flagpublic MetaProperty(String name, String displayName, PropertyType type, boolean writable, boolean matchable)
name
- the name of the propertydisplayName
- the display name of the propertytype
- the type of property valuewritable
- whether the value may be set/changedmatchable
- the matchable flagMethod Detail |
---|
public final boolean isWritable()
public void setWritable(boolean writable)
writable
- the writable flag to setpublic final String getName()
public final String getDisplayName()
public final void setDisplayName(String displayName)
displayName
- the property display namepublic final PropertyType getType()
public boolean isMatchable()
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 Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |