|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.workstate.config.MetaAttributeBuilder
public class MetaAttributeBuilder
Build a MetaAttribute starting from the strings read from a data source.
| Constructor Summary | |
|---|---|
MetaAttributeBuilder(String tag,
String attrClass,
String initialExpr)
Constructs a builder given the base MetaAttribute parameters:
The tag
The class
The initial value
|
|
| Method Summary | |
|---|---|
void |
addValidator(String validator)
Add a validator object for the attribute. |
MetaAttribute |
getBuiltAttribute()
The built MetaAttribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaAttributeBuilder(String tag,
String attrClass,
String initialExpr)
MetaAttribute parameters:
tag - the MetaAttribute tagattrClass - the MetaAttribute classinitialExpr - the initial value. This string will be interpreted as a
BeanShell expression whose result must be of the class given in
the attrClass parameter
IllegalArgumentException - if the initial value expression is incorrect| Method Detail |
|---|
public void addValidator(String validator)
validator - the string that define the validator object
IllegalArgumentException - if the passed string is incorrect
ClassCastException - if the resulting object does not implements
the AttributeValidator interfacepublic MetaAttribute getBuiltAttribute()
MetaAttribute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||