public class AttributeAttributeAdapter extends Object implements IAttribute, IStringEvaluatorAccess
IAttribute| Constructor and Description |
|---|
AttributeAttributeAdapter(Attr attribute) |
AttributeAttributeAdapter(Attr attribute,
IStringEvaluator evaluator) |
| Modifier and Type | Method and Description |
|---|---|
Attr |
getAttr() |
Object |
getData()
The attribute value as a typed value, according to an optional schema
declaration.
|
String |
getName()
The attribute name
|
IStringEvaluator |
getStringEvaluator()
An
IStringEvaluator that allows to evaluate expressions on the
receiver. |
String |
getTemplate()
If this implementation supports template expansion, return the template
(unexpanded) value.
|
String |
getValue()
The attribute value.
|
void |
setStringEvaluator(IStringEvaluator evaluator)
Assign an
IStringEvaluator that manages string expansion within
the receiver. |
String |
toString() |
public AttributeAttributeAdapter(Attr attribute)
public AttributeAttributeAdapter(Attr attribute, IStringEvaluator evaluator)
public Attr getAttr()
public Object getData()
IAttributegetData in interface IAttributepublic String getName()
IAttributegetName in interface IAttributepublic IStringEvaluator getStringEvaluator()
IStringEvaluatorSupportIStringEvaluator that allows to evaluate expressions on the
receiver.
The evaluator should be defined in terms of the most basic building
blocks. This means you should get an expression evaluation object here
(understands "foo.bar"), not a template evaluation object (understands
"${foo} makes ${bar}").getStringEvaluator in interface IStringEvaluatorSupportIStringEvaluator that allows to evaluate expressions
on the receiver.public String getTemplate()
IAttributegetTemplate in interface IAttributepublic String getValue()
IAttributegetValue in interface IAttributepublic void setStringEvaluator(IStringEvaluator evaluator)
IStringEvaluatorAccessIStringEvaluator that manages string expansion within
the receiver.setStringEvaluator in interface IStringEvaluatorAccessCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.