|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simBio.serialize.xml.XMLSerializer
public class XMLSerializer
XML serializer. It constructs models from XML, and writes them to XML.
モデルをXMLから構築し、書き出す。
| Constructor Summary | |
|---|---|
XMLSerializer(org.xml.sax.InputSource source)
An XMLSerializer constructor which takes an XML input source as a parameter. |
|
XMLSerializer(org.xml.sax.InputSource source,
java.lang.ClassLoader loader)
An XMLSerializer constructor which takes an XML input source and a class loader as parameters. |
|
XMLSerializer(java.io.Reader input)
An XMLSerializer constructor which takes an XML file Reader as a parameter. |
|
XMLSerializer(java.lang.String uri)
Set location of the xml file and set default tags. |
|
| Method Summary | |
|---|---|
java.net.URL[] |
getCodebases()
This returns the search path of URLs for loading classes |
Component |
getComponent(java.lang.String className)
Return Class instance designated by the complete class name. |
Component |
read()
Deserialize from xml file. |
void |
setEncoding(java.lang.String encoding)
Set source encoding. |
void |
update(Component component,
java.io.OutputStream stream,
org.xml.sax.InputSource original)
Updates an XML file. |
void |
update(Component component,
java.lang.String uri,
java.io.Reader reference)
Updates an XML file. |
void |
write(Component component)
Serialize to the xml file. |
void |
write(Component component,
java.lang.String uri)
Serializes a component to the xml file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLSerializer(org.xml.sax.InputSource source,
java.lang.ClassLoader loader)
source - an xml of a modelloader - where to find a classpublic XMLSerializer(org.xml.sax.InputSource source)
source - model xmlpublic XMLSerializer(java.lang.String uri)
uri - the location of the xml filepublic XMLSerializer(java.io.Reader input)
input - Reader of the xml file| Method Detail |
|---|
public void write(Component component)
throws java.io.IOException
component - component node of the model tree
java.io.IOException
public void write(Component component,
java.lang.String uri)
throws java.io.IOException
write in interface Serializercomponent - component node of the model treeuri - location of the xml file
java.io.IOException
public Component read()
throws java.lang.InstantiationException
read in interface Serializerjava.lang.InstantiationExceptionSerializer.read()public void setEncoding(java.lang.String encoding)
encoding - character encoding of the XML source
public Component getComponent(java.lang.String className)
throws java.lang.InstantiationException
className - complete class name
java.lang.InstantiationException
public void update(Component component,
java.lang.String uri,
java.io.Reader reference)
throws java.io.IOException
component - component node of the model treeuri - system identifier for an input sourcereference - Reader for an XML input source
java.io.IOExceptionSerializer
public void update(Component component,
java.io.OutputStream stream,
org.xml.sax.InputSource original)
update in interface Serializercomponent - component node of the model treestream - output stream which will be written tooriginal - original XML input sourcepublic java.net.URL[] getCodebases()
getCodebases in interface Serializer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||