|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.managed.plugins.ManagedParameterImpl
public class ManagedParameterImpl
| Constructor Summary | |
|---|---|
ManagedParameterImpl(Fields fields)
Create a new ManagedProperty that is not associated to a ManagedObject. |
|
ManagedParameterImpl(String name)
Create a new ManagedProperty that is not associated to a ManagedObject. |
|
| Method Summary | ||
|---|---|---|
String |
checkValidValue(Serializable value)
Check whether this is a valid value |
|
boolean |
equals(Object obj)
|
|
Map<String,Annotation> |
getAnnotations()
Get the annotations associated with the property |
|
String |
getDescription()
Get the description |
|
|
getField(String fieldName,
Class<T> expected)
Get a field |
|
Fields |
getFields()
Get the fields |
|
Set<MetaValue> |
getLegalValues()
Get the legal values |
|
Comparable<?> |
getMaximumValue()
Get the miximum value |
|
MetaType |
getMetaType()
Get the type |
|
Comparable<?> |
getMinimumValue()
Get the minimum value |
|
String |
getName()
Get the property's name |
|
Object |
getValue()
Get the value |
|
int |
hashCode()
|
|
void |
setAnnotations(Map<String,Annotation> annotations)
|
|
void |
setDescription(String description)
Set the description |
|
void |
setField(String fieldName,
Serializable value)
Set a field |
|
void |
setLegalValues(Set<MetaValue> values)
Set the legal values |
|
void |
setMaximumValue(Comparable<?> value)
Set the maximum value |
|
void |
setMetaType(MetaType type)
Set the meta type |
|
void |
setMinimumValue(Comparable<?> value)
Set the minimum value |
|
void |
setValue(Serializable value)
Set the value |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedParameterImpl(String name)
name - the managed property name
IllegalArgumentException - for null fields or
missing Fields.NAMEpublic ManagedParameterImpl(Fields fields)
fields - the fields
IllegalArgumentException - for null fields or
missing Fields.NAME| Method Detail |
|---|
public Fields getFields()
ManagedParameter
getFields in interface ManagedParameter
public <T> T getField(String fieldName,
Class<T> expected)
ManagedParameter
getField in interface ManagedParameterT - the expected typefieldName - the field nameexpected - the expected type
public void setField(String fieldName,
Serializable value)
ManagedParameter
setField in interface ManagedParameterfieldName - the field namevalue - the valuepublic String getName()
ManagedParameter
getName in interface ManagedParameterpublic String getDescription()
ManagedParameter
getDescription in interface ManagedParameterpublic void setDescription(String description)
description - the descriptionpublic Map<String,Annotation> getAnnotations()
public void setAnnotations(Map<String,Annotation> annotations)
public MetaType getMetaType()
ManagedParameter
getMetaType in interface ManagedParameterpublic void setMetaType(MetaType type)
type - the meta typepublic Object getValue()
ManagedParameter
getValue in interface ManagedParameterpublic void setValue(Serializable value)
ManagedParameter
setValue in interface ManagedParametervalue - the valuepublic Set<MetaValue> getLegalValues()
ManagedParameter
getLegalValues in interface ManagedParameterpublic void setLegalValues(Set<MetaValue> values)
values - the valuespublic Comparable<?> getMinimumValue()
ManagedParameter
getMinimumValue in interface ManagedParameterpublic void setMinimumValue(Comparable<?> value)
value - the valuepublic Comparable<?> getMaximumValue()
ManagedParameter
getMaximumValue in interface ManagedParameterpublic void setMaximumValue(Comparable<?> value)
value - the valuepublic String checkValidValue(Serializable value)
ManagedParameter
checkValidValue in interface ManagedParametervalue - the value
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||