String
values.
The result value is created from text of the body of this element.
For example:<string>description</string>is equivalent to
"description"
in Java code.
The value of inner element is calculated
before adding to the string using String#valueOf(Object)
.
Note that all characters are used including whitespaces (' ', '\t', '\n', '\r').
So the value of the element<string><true></string>is not equal to the value of the element
<string> <true> </string>
The following attribute is supported:
Modifier and Type | Field and Description |
---|---|
private StringBuilder | |
private ValueObject |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
protected final void | addArgument(Object
the value of the element that contained in this one argument)
Adds the string value of the argument to the string value of this element.
|
public final void | addCharacter(char
the character ch)Overrides com. |
protected Object | |
protected final ValueObject | Returns: the value of this elementImplements abstract com. |
sb | back to summary |
---|---|
private StringBuilder sb |
value | back to summary |
---|---|
private ValueObject value |
StringElementHandler | back to summary |
---|---|
public StringElementHandler() |
addArgument | back to summary |
---|---|
protected final void addArgument(Object argument) Overrides com. Adds the string value of the argument to the string value of this element. |
addCharacter | back to summary |
---|---|
public final void addCharacter(char ch) Overrides com. Adds the character that contained in this element.
|
getValue | back to summary |
---|---|
protected Object getValue(String argument) Returns the text of the body of this element. This method evaluates value from text of the body, and should be overridden in those handlers that extend behavior of this element. |
getValueObject | back to summary |
---|---|
protected final ValueObject getValueObject() Implements abstract com. Returns the value of this element.
|