|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.managed.plugins.ManagedPropertyImpl
public class ManagedPropertyImpl
ManagedProperty.
| Constructor Summary | |
|---|---|
ManagedPropertyImpl(Fields fields)
Create a new ManagedProperty that is not associated to a ManagedObject. |
|
ManagedPropertyImpl(ManagedObject managedObject,
Fields fields)
Create a new ManagedProperty. |
|
ManagedPropertyImpl(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<org.jboss.metatype.api.values.MetaValue> |
getLegalValues()
Get the legal values |
|
ManagedObject |
getManagedObject()
Get the managed object the property is associated with. |
|
String |
getMappedName()
Get the property's mapped name. |
|
Comparable<?> |
getMaximumValue()
Get the miximum value |
|
org.jboss.metatype.api.types.MetaType |
getMetaType()
Get the type |
|
Comparable<?> |
getMinimumValue()
Get the minimum value |
|
String |
getName()
Get the property's name |
|
ManagedObject |
getTargetManagedObject()
Get the ManagedObject |
|
Object |
getValue()
Get the value |
|
int |
hashCode()
|
|
boolean |
hasViewUse(ViewUse use)
See if the property has the indicated ViewUse among its |
|
boolean |
isMandatory()
Whether the property is mandatory |
|
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<org.jboss.metatype.api.values.MetaValue> values)
Set the legal values |
|
void |
setManagedObject(ManagedObject managedObject)
Set managed object |
|
void |
setMandatory(boolean flag)
Set whether the field is mandatory |
|
void |
setMaximumValue(Comparable<?> value)
Set the maximum value |
|
void |
setMetaType(org.jboss.metatype.api.types.MetaType type)
Set the meta type |
|
void |
setMinimumValue(Comparable<?> value)
Set the minimum value |
|
void |
setTargetManagedObject(ManagedObject target)
|
|
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 ManagedPropertyImpl(String name)
name - the managed property name
IllegalArgumentException - for null fields or
missing Fields.NAMEpublic ManagedPropertyImpl(Fields fields)
fields - the fields
IllegalArgumentException - for null fields or
missing Fields.NAME
public ManagedPropertyImpl(ManagedObject managedObject,
Fields fields)
managedObject - the managed object, may be nullfields - the fields
IllegalArgumentException - for null fields or
missing Fields.NAME| Method Detail |
|---|
public ManagedObject getManagedObject()
ManagedProperty
getManagedObject in interface ManagedPropertypublic void setManagedObject(ManagedObject managedObject)
setManagedObject in interface ManagedPropertymanagedObject - the managed objectpublic ManagedObject getTargetManagedObject()
ManagedProperty
getTargetManagedObject in interface ManagedPropertyManagementObjectRef}public void setTargetManagedObject(ManagedObject target)
setTargetManagedObject in interface ManagedPropertypublic Fields getFields()
ManagedProperty
getFields in interface ManagedProperty
public <T> T getField(String fieldName,
Class<T> expected)
ManagedProperty
getField in interface ManagedPropertyT - the expected typefieldName - the field nameexpected - the expected type
public void setField(String fieldName,
Serializable value)
ManagedProperty
setField in interface ManagedPropertyfieldName - the field namevalue - the valuepublic String getName()
ManagedProperty
getName in interface ManagedPropertypublic String getMappedName()
ManagedProperty
getMappedName in interface ManagedPropertypublic String getDescription()
ManagedProperty
getDescription in interface ManagedPropertypublic void setDescription(String description)
description - the descriptionpublic Map<String,Annotation> getAnnotations()
getAnnotations in interface ManagedPropertypublic void setAnnotations(Map<String,Annotation> annotations)
public boolean hasViewUse(ViewUse use)
hasViewUse in interface ManagedPropertyuse - - the ViewUse to check for
public org.jboss.metatype.api.types.MetaType getMetaType()
ManagedProperty
getMetaType in interface ManagedPropertypublic void setMetaType(org.jboss.metatype.api.types.MetaType type)
type - the meta typepublic Object getValue()
ManagedProperty
getValue in interface ManagedPropertypublic void setValue(Serializable value)
ManagedProperty
setValue in interface ManagedPropertyvalue - the valuepublic Set<org.jboss.metatype.api.values.MetaValue> getLegalValues()
ManagedProperty
getLegalValues in interface ManagedPropertypublic void setLegalValues(Set<org.jboss.metatype.api.values.MetaValue> values)
values - the valuespublic Comparable<?> getMinimumValue()
ManagedProperty
getMinimumValue in interface ManagedPropertypublic void setMinimumValue(Comparable<?> value)
value - the valuepublic Comparable<?> getMaximumValue()
ManagedProperty
getMaximumValue in interface ManagedPropertypublic void setMaximumValue(Comparable<?> value)
value - the valuepublic String checkValidValue(Serializable value)
ManagedProperty
checkValidValue in interface ManagedPropertyvalue - the value
public boolean isMandatory()
ManagedProperty
isMandatory in interface ManagedPropertypublic void setMandatory(boolean flag)
flag - true for mandatorypublic 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 | |||||||||