|
||||||||||
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(MetaValue 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 |
|
|
getTransientAttachment(Class<T> expectedType)
Get an attachment from the parameter, uses the expected type as both the name and to cast the resulting object. |
|
Object |
getTransientAttachment(String name)
Get a transient attachment from the parameter. |
|
MetaValue |
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 |
setTransientAttachment(String name,
Object attachment)
Set an transient attachment against the parameter. |
|
void |
setValue(MetaValue 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.NAMEMethod Detail |
---|
public Fields getFields()
ManagedParameter
getFields
in interface ManagedParameter
public <T> T getField(String fieldName, Class<T> expected)
ManagedParameter
getField
in interface ManagedParameter
T
- the expected typefieldName
- the field nameexpected
- the expected type
public void setField(String fieldName, Serializable value)
ManagedParameter
setField
in interface ManagedParameter
fieldName
- the field namevalue
- the valuepublic String getName()
ManagedParameter
getName
in interface ManagedParameter
public String getDescription()
ManagedParameter
getDescription
in interface ManagedParameter
public 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 ManagedParameter
public void setMetaType(MetaType type)
type
- the meta typepublic MetaValue getValue()
ManagedParameter
getValue
in interface ManagedParameter
public void setValue(MetaValue value)
ManagedParameter
setValue
in interface ManagedParameter
value
- the valuepublic Set<MetaValue> getLegalValues()
ManagedParameter
getLegalValues
in interface ManagedParameter
public void setLegalValues(Set<MetaValue> values)
values
- the valuespublic Comparable<?> getMinimumValue()
ManagedParameter
getMinimumValue
in interface ManagedParameter
public void setMinimumValue(Comparable<?> value)
value
- the valuepublic Comparable<?> getMaximumValue()
ManagedParameter
getMaximumValue
in interface ManagedParameter
public void setMaximumValue(Comparable<?> value)
value
- the valuepublic String checkValidValue(MetaValue value)
ManagedParameter
checkValidValue
in interface ManagedParameter
value
- the value
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public <T> T getTransientAttachment(Class<T> expectedType)
TransientAttachments
getTransientAttachment
in interface TransientAttachments
T
- the expected typeexpectedType
- the expected type
public Object getTransientAttachment(String name)
TransientAttachments
getTransientAttachment
in interface TransientAttachments
name
- the name
TransientAttachments.setTransientAttachment(String, Object)
public void setTransientAttachment(String name, Object attachment)
TransientAttachments
setTransientAttachment
in interface TransientAttachments
name
- the nameattachment
- the attachment, pass null to remove an attachment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |