|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.managed.plugins.DefaultFieldsImpl
public class DefaultFieldsImpl
A default implementation of the Fields interface.
| Field Summary |
|---|
| Fields inherited from interface org.jboss.managed.api.Fields |
|---|
ANNOTATIONS, ATTACHMENT, DESCRIPTION, LEGAL_VALUES, MANDATORY, MAPPED_NAME, MAXIMUM_VALUE, META_TYPE, MINIMUM_VALUE, NAME, PROPERTY_INFO, VALUE |
| Constructor Summary | |
|---|---|
DefaultFieldsImpl()
Create a new DefaultFieldsImpl. |
|
DefaultFieldsImpl(String name)
Create a new DefaultFieldsImpl. |
|
| Method Summary | ||
|---|---|---|
String |
getDescription()
Get the description |
|
Serializable |
getField(String name)
Get a field |
|
|
getField(String fieldName,
Class<T> expected)
Get a field |
|
Set<org.jboss.metatype.api.values.MetaValue> |
getLegalValues()
Get the legal values |
|
Comparable<?> |
getMaximumValue()
Get the maximum value |
|
org.jboss.metatype.api.types.MetaType |
getMetaType()
Get the meta type |
|
Comparable<?> |
getMinimumValue()
Get the minimum value |
|
String |
getName()
Get the property name |
|
Object |
getValue()
Get the value |
|
boolean |
isMandatory()
Get whether the property is mandatory |
|
void |
setDescription(String description)
Set the description |
|
void |
setField(String name,
Serializable value)
Set a field |
|
void |
setLegalValues(Set<org.jboss.metatype.api.values.MetaValue> values)
Set the legal values |
|
void |
setMandatory(boolean flag)
Set the mandatory value |
|
void |
setMaximumValue(Comparable<?> value)
Get 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 |
setName(String name)
Set the property name |
|
void |
setValue(Serializable value)
Set the value |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFieldsImpl()
public DefaultFieldsImpl(String name)
name - the property name| Method Detail |
|---|
public String getName()
public void setName(String name)
name - the namepublic String getDescription()
public void setDescription(String description)
description - the descriptionpublic org.jboss.metatype.api.types.MetaType getMetaType()
public void setMetaType(org.jboss.metatype.api.types.MetaType type)
type - the meta typepublic Object getValue()
public void setValue(Serializable value)
value - the valuepublic Set<org.jboss.metatype.api.values.MetaValue> getLegalValues()
public void setLegalValues(Set<org.jboss.metatype.api.values.MetaValue> values)
values - the valuespublic Comparable<?> getMinimumValue()
public void setMinimumValue(Comparable<?> value)
value - the valuepublic Comparable<?> getMaximumValue()
public void setMaximumValue(Comparable<?> value)
value - the valuepublic boolean isMandatory()
public void setMandatory(boolean flag)
flag - true when mandatorypublic Serializable getField(String name)
getField in interface Fieldsname - the field name
public void setField(String name,
Serializable value)
setField in interface Fieldsname - the field namevalue - the value
public <T> T getField(String fieldName,
Class<T> expected)
T - the expected typefieldName - the field nameexpected - the expected type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||