|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmonks.batch.io.Record
org.jmonks.batch.io.WriterRecord
org.jmonks.batch.io.xml.XMLFileWriter.XMLWriterRecord
XMLWriterRecord implements WriterRecord by maintaing the field names and values as a map and provides the methods with proper access privileges to read into and write from the record. It provides the additional method to conveniently write the data into the record.
Method Summary | |
WriterRecord |
createComplexElement()
Creates an orphan record that can be added to the record or repeated element later. |
WriterRecord |
createComplexElement(java.lang.String fieldName)
Create complex element and add it to the record and returns the writer record instance to which all the elements can be adde. |
java.util.List |
createRepeatElement(java.lang.String fieldName)
Creates the list and add it to the record with the given field name and returns the list to which values can be added. |
void |
writeField(java.lang.String fieldName,
java.lang.Object fieldValue)
Writes the given field name and value into the record. |
void |
writeSimpleElement(java.lang.String fieldName,
java.lang.String fieldValue)
Write simple element into the record. |
Methods inherited from class org.jmonks.batch.io.Record |
getRecordType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void writeField(java.lang.String fieldName, java.lang.Object fieldValue)
writeField
in class WriterRecord
fieldName
- Name of the field.fieldValue
- Value of the field.public void writeSimpleElement(java.lang.String fieldName, java.lang.String fieldValue)
public WriterRecord createComplexElement(java.lang.String fieldName)
public WriterRecord createComplexElement()
public java.util.List createRepeatElement(java.lang.String fieldName)
fieldName
- Name of the field repated more than once.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |