|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.template.InternalValue
public class InternalValue
An anonymous value inside a template, which is not referenced anywhere in
the template, but can be used to produce intermediate strings using the
template engine. To obtain an InternalValue, you should use
Template.createInternalValue().
| Method Summary | |
|---|---|
void |
appendBlock(String blockId)
Appends the content of a block to this value. |
void |
appendValue(boolean value)
Appends "true" or "false" to this value,
depending on the given value. |
void |
appendValue(char value)
Appends the single specified character to this value. |
void |
appendValue(char[] value)
Appends the given characters to this value. |
void |
appendValue(char[] value,
int offset,
int count)
Appends the specified range of the given character string to this value. |
void |
appendValue(CharSequence value)
Appends the given character sequence to this value. |
void |
appendValue(double value)
Appends the given double precision floating point value to this value. |
void |
appendValue(float value)
Appends the given floating point value to this value. |
void |
appendValue(int value)
Appends the given integer to this value. |
void |
appendValue(InternalValue value)
Appends to this value the value of the given internal value. |
void |
appendValue(long value)
Appends the given long to this value. |
void |
appendValue(Object value)
Appends the result of calling String.valueOf on the given value to this value in this
template. |
void |
appendValue(String value)
Appends the given string to this value. |
void |
clear()
Removes all content from this value. |
boolean |
equals(Object object)
|
boolean |
isEmpty()
Returns whether this value contains no cnotent. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void appendBlock(String blockId)
throws TemplateException
blockId - the ID of the block whose value should be appended to
the specified value
TemplateException - if the specified block does not exist in
the corresponding templatepublic void appendValue(InternalValue value)
value - an internal valuepublic void appendValue(Object value)
String.valueOf on the given value to this value in this
template.
value - an objectpublic void appendValue(boolean value)
"true" or "false" to this value,
depending on the given value.
value - a boolean valuepublic void appendValue(char value)
value - a characterpublic void appendValue(char[] value)
value - a string of characters
public void appendValue(char[] value,
int offset,
int count)
value will be
used, starting at the character specified by offset.
value - a character stringoffset - the index in value of the first character to
usecount - the number of characters to usepublic void appendValue(double value)
String.format or
NumberFormat instead.
value - a floating point valuepublic void appendValue(float value)
String.format or NumberFormat instead.
value - a floating point valuepublic void appendValue(int value)
value - an integerpublic void appendValue(long value)
value - a longpublic void appendValue(String value)
value - a stringpublic void appendValue(CharSequence value)
value - a character sequencepublic boolean isEmpty()
false for newly created values as well as values for whom
clear() has just been called.
public void clear()
public boolean equals(Object object)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||