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 .
author: Keith Lea <keith[remove] at cs dot oswego dot edu> author: Geert Bevin (gbevin[remove] at uwyn dot com) version: $Revision: 3634 $ since: 1.0
appendValue(boolean value) Appends "true" or "false" to this value,
depending on the given value.
public void
appendValue(char value) Appends the single specified character to this value.
public void
appendValue(char[] value) Appends the given characters to this value.
public void
appendValue(char[] value, int offset, int count) Appends the specified range of the given character string to this
value.
public void
appendValue(double value) Appends the given double precision floating point value to this value.
This method uses the
method to print the given value, which probably prints more digits than
you like.
public void
appendValue(float value) Appends the given floating point value to this value.
public void
appendValue(int value) Appends the given integer to this value.
public void
appendValue(long value) Appends the given long to this value.
Appends the content of a block to this value. The values used by the
block will be captured when this method is called, so any future
changes to template values will not affect text which was appended when
this method is called.
Parameters: blockId - the ID of the block whose value should be appended tothe specified value exception: TemplateException - if the specified block does not exist inthe corresponding template since: 1.0
Appends the result of calling
String.valueOf(Object)String.valueOf on the given value to this value in this
template.
Parameters: value - an object since: 1.0
Appends the given characters to this value.
Parameters: value - a string of characters since: 1.0
appendValue
public void appendValue(char[] value, int offset, int count)(Code)
Appends the specified range of the given character string to this
value. The specified number of bytes from value will be
used, starting at the character specified by offset.
Parameters: value - a character string Parameters: offset - the index in value of the first character touse Parameters: count - the number of characters to use since: 1.0
Appends the given double precision floating point value to this value.
This method uses the
method to print the given value, which probably prints more digits than
you like. You probably want
String.format String.format or
NumberFormat instead.
Parameters: value - a floating point value since: 1.0
Appends the given floating point value to this value. This method uses
the
method to print
the given value, which probably prints more digits than you like. You
probably want
String.format String.format or
NumberFormat instead.
Parameters: value - a floating point value since: 1.0
Returns whether this value contains no cnotent. This method will return
false for newly created values as well as values for whom
InternalValue.clear has just been called.
whether this value has no contents since: 1.0