|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.meta.XMLMetaDataSerializer
Abstract base type for serlializers that transfer groups of objects to XML. Includes a way of serializing objects back to the XML files they were parsed from.
Serializers are not thread safe.
| Constructor Summary | |
XMLMetaDataSerializer()
|
|
| Method Summary | |
protected void |
addAttribute(java.lang.String name,
java.lang.String value)
Add an attribute to the current group. |
protected void |
endElement(java.lang.String name)
End the current element. |
org.apache.commons.logging.Log |
getLog()
Return the log to write to. |
protected abstract java.util.Collection |
getObjects()
Return the current set of objects set for serialization. |
protected void |
reset()
Reset serialization state for the next document. |
void |
serialize()
Serialize the current set of objects to the files from which they were parsed. |
protected abstract void |
serialize(java.util.Collection objs)
Serialize the given set of objects to the given handler. |
void |
serialize(org.xml.sax.ContentHandler handler)
Serilize the current set of objects to a series of SAX events on the given handler. |
void |
serialize(java.io.File file,
boolean append,
boolean pretty)
Serialize the current set of objects to the given file, optionally appending and pretty-printing. |
void |
serialize(javax.xml.transform.Result result)
Serialize the current set of objects to the given result. |
void |
serialize(java.io.Writer out,
boolean pretty)
Serialize the current set of objects to the given stream, optionally pretty-printing the result. |
void |
setLog(org.apache.commons.logging.Log log)
Set the log to write to. |
protected void |
startElement(java.lang.String name)
Start an element with the current attribute settings. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLMetaDataSerializer()
| Method Detail |
public org.apache.commons.logging.Log getLog()
MetaDataSerializer
getLog in interface MetaDataSerializerpublic void setLog(org.apache.commons.logging.Log log)
MetaDataSerializer
setLog in interface MetaDataSerializer
public void serialize()
throws java.io.IOException
MetaDataSerializerSourceTracker
interface.
serialize in interface MetaDataSerializerjava.io.IOException
public void serialize(java.io.File file,
boolean append,
boolean pretty)
throws java.io.IOException
MetaDataSerializer
serialize in interface MetaDataSerializerjava.io.IOException
public void serialize(java.io.Writer out,
boolean pretty)
throws java.io.IOException
MetaDataSerializer
serialize in interface MetaDataSerializerjava.io.IOException
public void serialize(javax.xml.transform.Result result)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void serialize(org.xml.sax.ContentHandler handler)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void startElement(java.lang.String name)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void endElement(java.lang.String name)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void addAttribute(java.lang.String name,
java.lang.String value)
protected void reset()
protected abstract void serialize(java.util.Collection objs)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected abstract java.util.Collection getObjects()
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||