|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xsl.process.NumberTemplate.ParsedFormat
A class representing a parsed number format string.
Constructor Summary | |
NumberTemplate.ParsedFormat(String format,
String lang,
String letterValue)
Constructs a new parsed format by parsing the specified number format string. |
Method Summary | |
void |
dump(PrintWriter out,
int indent)
Dumps this object to the specified output stream. |
void |
formatEnd(ResultHandler result)
Sends this parsed format's end token to the specified result handler. |
void |
formatNumber(int number,
int index,
String digitGroupSep,
int digitsPerGroup,
ResultHandler result)
Formats the specified number and sends the result to the specified result handler. |
void |
formatStart(ResultHandler result)
Sends this parsed format's start token to the specified result handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NumberTemplate.ParsedFormat(String format, String lang, String letterValue) throws XSLException
format
- the format string to be parsedlang
- the language to use for alphabetic sequences;
null
means determine the language
from the system environmentletterValue
- disambiguates between numbering schemes that use
letters; must be "alphabetic"
,
"traditional"
, or null
XSLException
- if a fatal error occurs during parsingMethod Detail |
public void formatStart(ResultHandler result) throws IllegalNodeException, ResultException
result
- the handler to which results are sent
IllegalNodeException
- if the current node cannot contain character data
ResultException
- if an implementation-dependent error occurspublic void formatNumber(int number, int index, String digitGroupSep, int digitsPerGroup, ResultHandler result) throws IllegalNodeException, ResultException
number
- the number to be formattedindex
- the number's index, starting with 0 (for
level="multi"
)digitGroupSep
- the digit group separator to use, or
null
if there are no digit
group separatorsdigitsPerGroup
- the number of digits per group, or
null
if there are no digit
group separatorsresult
- the handler to which results are sent
IllegalNodeException
- if the current node cannot contain character
data
ResultException
- if an implementation-dependent error occurspublic void formatEnd(ResultHandler result) throws IllegalNodeException, ResultException
result
- the handler to which results are sent
IllegalNodeException
- if the current node cannot contain character data
ResultException
- if an implementation-dependent error occurspublic void dump(PrintWriter out, int indent)
out
- the output stream to write toindent
- number of tabs to indent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |