|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.extensions.validator.core.metadata.MetaDataEntry
public class MetaDataEntry
Data holder which stores the meta-data and some information where the meta-data was found.
| Field Summary | |
|---|---|
protected Logger |
logger
|
| Constructor Summary | |
|---|---|
MetaDataEntry()
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(Object o)
|
|
String |
getKey()
Returns the key which identifies the meta-data. |
|
Object |
getProperty(String key)
Returns the property-value for the given property-key. |
|
|
getProperty(String key,
Class<T> targetClass)
Returns the property-value for the given property-key. |
|
Object |
getValue()
Returns the meta-data or a data-structure which represents the meta-data. |
|
|
getValue(Class<T> targetClass)
Returns the meta-data or a data-structure which represents the meta-data. |
|
int |
hashCode()
|
|
void |
setKey(String key)
Sets the key of the meta-data. |
|
void |
setProperties(Map<String,Object> properties)
Sets the map which contains further properties which are linked to the meta-data. |
|
void |
setProperty(String key,
Object value)
Sets the property-value for the given property-key. |
|
void |
setValue(Object value)
Sets the object which represents the meta-data hold by this instance. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Logger logger
| Constructor Detail |
|---|
public MetaDataEntry()
| Method Detail |
|---|
public String getKey()
public void setKey(String key)
key - value identifies the the meta-data stored in the instance.public Object getValue()
public <T> T getValue(Class<T> targetClass)
T - generic typetargetClass - Type to which the return value must be casted.
public void setValue(Object value)
value - the object which represents the meta-data hold by this instance.public void setProperties(Map<String,Object> properties)
properties - properties which are linked to the meta-data.public Object getProperty(String key)
key - key value used to identify the property value.
public <T> T getProperty(String key,
Class<T> targetClass)
T - Generic typekey - key which identifies a propertytargetClass - Type to which the return value must be casted.
public void setProperty(String key,
Object value)
PropertyInformationKeys
contains the keys used by ExtVal.
key - key value used to identify the property value.value - property value to set.public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||