net.aerith.misao.xml
Class XmlRecord
java.lang.Object
|
+--net.aerith.misao.xml.IONode
|
+--net.aerith.misao.xml.relaxer.XmlRecord
|
+--net.aerith.misao.xml.XmlRecord
- public class XmlRecord
- extends XmlRecord
- implements XmlDBRecord
The XmlRecord
is an application side implementation
of the class that the relaxer generated automatically.
- See Also:
- Serialized Form
Constructor Summary |
XmlRecord()
Construct an XmlRecord . |
XmlRecord(Star star)
Construct an XmlRecord of the specified star. |
Method Summary |
XmlDBRecord |
create()
Creates an empty XmlDBRecord object. |
Star |
createStar()
Converts this XML element to the star object. |
java.lang.String |
getID()
Gets the ID. |
void |
write(java.io.Writer out)
Writes this XML document to the specified writer. |
Methods inherited from class net.aerith.misao.xml.relaxer.XmlRecord |
addItem,
getClassValue,
getCoor,
getItem,
getName,
getParentRNode,
getPosition,
getRContext,
getRContextResolved,
getRNodes,
init,
isMatch,
isMatch,
isMatchHungry,
makeElement,
setClassValue,
setCoor,
setItem,
setName,
setParentRNode,
setPosition,
setRContext,
setup,
setup,
setup |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
XmlRecord
public XmlRecord()
- Construct an
XmlRecord
.
XmlRecord
public XmlRecord(Star star)
- Construct an
XmlRecord
of the specified star.
- Parameters:
star
- the star.
createStar
public Star createStar()
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
- Converts this XML element to the star object.
- Returns:
- the star object.
- Throws:
- java.lang.ClassNotFoundException - if the star class recorded in
the XML document is not found.
- java.lang.IllegalAccessException - if the class or initializer
is not accessible.
- java.lang.InstantiationException - if an application tries to
instantiate an abstract class or an interface, or if the
instantiation fails for some other reason.
create
public XmlDBRecord create()
- Creates an empty
XmlDBRecord
object. This method
must be overrided by the subclass.
- Specified by:
- create in interface XmlDBRecord
- Returns:
- the new empty object.
getID
public java.lang.String getID()
- Gets the ID.
- Specified by:
- getID in interface XmlDBRecord
- Returns:
- the ID.
write
public void write(java.io.Writer out)
throws java.io.IOException
- Writes this XML document to the specified writer.
- Overrides:
- write in class IONode
- Parameters:
out
- the writer.- Throws:
- java.io.IOException - if I/O error occurs.