|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.buildtools.maven2.plugin.xrts.ListRTSWriter
public class ListRTSWriter
The ListRTSWriter
class is an implementation of the
RTSWriter
interface used to create a Sun
ListResourceBundle
file.
Constructor Summary | |
---|---|
ListRTSWriter()
Empty constructor for the ListResourceBundle implementation |
Method Summary | |
---|---|
void |
endBundle(java.util.Map parms,
java.util.Map meta)
RTSWriter method implementation to close the file stream
required for the ListResourceBundle . |
protected java.io.PrintWriter |
getOut()
|
void |
startBundle(java.util.Map parms,
java.util.Map meta)
RTSWriter method implementation to write the header of the
ListResourceBundle file. |
protected void |
writeImports(java.util.Map parms,
java.util.Map meta)
|
void |
writeString(java.util.Map parms,
java.util.Map meta,
java.lang.String key,
java.lang.String value)
Writes a String to the implementation output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListRTSWriter()
ListResourceBundle
implementation
Method Detail |
---|
public void startBundle(java.util.Map parms, java.util.Map meta) throws java.lang.Throwable
RTSWriter
method implementation to write the header of the
ListResourceBundle
file.
startBundle
in interface RTSWriter
parms
- a Map
of command line parameters.meta
- a Map
of parsed non-resource data
(e.g., authors).
java.lang.Throwable
protected void writeImports(java.util.Map parms, java.util.Map meta) throws java.lang.Throwable
java.lang.Throwable
public void writeString(java.util.Map parms, java.util.Map meta, java.lang.String key, java.lang.String value) throws java.lang.Throwable
RTSWriter
String
to the implementation output.
This is the typical case use. A single String
key associated
with a single String
value forming a key/value pair (kvp).
Note that the other two body methods, writeStringArray
and
writeMap
both support a single String
key associated with multiple values.
A key/value pair may have associated attributes in the RTS file.
In this method, these are received from the XML parser as a
Map
.
writeString
in interface RTSWriter
parms
- a Map
of command line parametersmeta
- a Map
of parsed non-resource data
(e.g., package).key
- a String
key.value
- a String
value.
java.lang.Throwable
public void endBundle(java.util.Map parms, java.util.Map meta) throws java.lang.Throwable
RTSWriter
method implementation to close the file stream
required for the ListResourceBundle
. Before closing, this
method also writes the footer portions of the file. The footer portions
consist of little more than closing braces.
endBundle
in interface RTSWriter
meta
- a Map
of parsed non-resource data
(e.g., authors).parms
- a Map
of command line parameters.
java.lang.Throwable
protected java.io.PrintWriter getOut()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |