org.apache.myfaces.buildtools.maven2.plugin.xrts
Interface RTSWriter

All Known Implementing Classes:
ListRTSWriter

public interface RTSWriter

The RTSWriter interface defines methods for writing the header, body, and footer of various output implementations.

The methods startBundle and endBundle write the header and footer portions to the output. The methods for writing the body are writeString, writeStringArray, and writeMap. These methods are supplied with data parsed by the XML-based RTS file XRTSParser or the RTSProperties parser.

Version:
$Name: $ ($Revision: 1.7 $) $Date: 2001/04/09 23:22:22 $
See Also:
ListRTSWriter

Method Summary
 void endBundle(java.util.Map parms, java.util.Map meta)
          Writes the file or other output footer(s).
 void startBundle(java.util.Map parms, java.util.Map meta)
          Writes the
 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.
 

Method Detail

startBundle

void startBundle(java.util.Map parms,
                 java.util.Map meta)
                 throws java.lang.Throwable
Writes the
Parameters:
parms - a Map of command line parameters.
meta - a Map of parsed non-resource data (e.g., package).
Throws:
java.lang.Throwable

writeString

void writeString(java.util.Map parms,
                 java.util.Map meta,
                 java.lang.String key,
                 java.lang.String value)
                 throws java.lang.Throwable
Writes a 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.

Parameters:
parms - a Map of command line parameters
meta - a Map of parsed non-resource data (e.g., package).
key - a String key.
value - a String value.
Throws:
java.lang.Throwable

endBundle

void endBundle(java.util.Map parms,
               java.util.Map meta)
               throws java.lang.Throwable
Writes the file or other output footer(s).

Parameters:
parms - a Map of command line parameters.
meta - a Map of parsed non-resource data (e.g., package).
Throws:
java.lang.Throwable


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.