|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.core.xml.Object2XML
This class transform an Object into XML.
Field Summary | |
private org.xml.sax.ContentHandler |
ch
The SAX handler for the XML content. |
private ObjAttsFactory |
oaf
Factory for the attributes of the first obj-Tag. |
private java.util.Hashtable |
objCache
ObjCache saves the references of the processed objects. |
private boolean |
serializeTransientFlag
This flag decides if transient member will be serialized or not. |
Fields inherited from interface org.ozoneDB.core.xml.Consts |
ATTR_ID, ATTR_NAME, ATTR_PROXY_TYPE, ATTR_REF, ATTR_TYPE, ATTR_XLINK_HREF_LOCAL, ATTR_XLINK_HREF_RAW, ATTR_XLINK_NAMESPACE, ATTR_XLINK_TYPE_LOCAL, ATTR_XLINK_TYPE_RAW, ATTR_XLINK_TYPE_VALUE, REMOTE_ID, TAG_MEMBER, TAG_OBJ, TAG_SUPERCLASS, TAG_VALUE, TAG_VALUEARRAY, TAG_VALUEOBJ |
Constructor Summary | |
Object2XML(org.xml.sax.ContentHandler contHandler)
|
|
Object2XML(org.xml.sax.ContentHandler contHandler,
boolean serializeTransientFlag)
|
Method Summary | |
protected java.lang.Integer |
getID(java.lang.Object obj)
GetId gets the reference/address of the Object. |
protected void |
getMember(java.lang.Object obj,
java.lang.Class objClass)
GetMember gets the informations (name/type/value) of all members (private and protected too) !! |
protected void |
getValue(java.lang.Object value,
java.lang.Class valueType)
GetValue gets the value of the certain member. |
protected void |
handleOzoneProxyMember(java.lang.String memberName,
org.ozoneDB.OzoneProxy proxy)
This methode handles an OzoneProxy member. |
private void |
superClass(java.lang.Object obj,
java.lang.Class objClass)
SuperClass gets the informations about the Superclass of the Object. |
void |
toXML(java.lang.Object obj)
ToXML(obj) gets an object and serialize this object into XML. |
protected void |
writeArrayEndTag()
|
protected void |
writeArrayStartTag(java.lang.String type,
java.lang.Integer id)
|
protected void |
writeMemberEndTag()
|
protected void |
writeMemberStartTag(java.lang.String name)
|
protected void |
writeMemberTagForOzoneProxy(java.lang.String name,
java.lang.String proxyType,
java.lang.String objectID)
|
protected void |
writeObjEndTag()
|
protected void |
writeObjRefElement(java.lang.Integer sourceId)
|
protected void |
writeObjStartTag(java.lang.String classname,
java.lang.Integer id,
org.xml.sax.Attributes additionallyAtts)
|
protected void |
writeSuperClEndTag()
|
protected void |
writeSuperClStartTag(java.lang.String classname)
|
protected void |
writeValue(java.lang.String value)
|
protected void |
writeValueEndTag()
|
protected void |
writeValueObjEndTag()
|
protected void |
writeValueObjStartTag(java.lang.String type,
java.lang.Integer id)
|
protected void |
writeValueStartTag(java.lang.String type,
java.lang.Integer id)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Hashtable objCache
private boolean serializeTransientFlag
private org.xml.sax.ContentHandler ch
private ObjAttsFactory oaf
Constructor Detail |
public Object2XML(org.xml.sax.ContentHandler contHandler)
contHandler
- public Object2XML(org.xml.sax.ContentHandler contHandler, boolean serializeTransientFlag)
contHandler
- serializeTransientFlag
- Method Detail |
public void toXML(java.lang.Object obj) throws org.xml.sax.SAXException
obj
- (the Object)
org.xml.sax.SAXException
protected void getMember(java.lang.Object obj, java.lang.Class objClass) throws org.xml.sax.SAXException
obj
- (the Object)objClass
- (the Class of the Object)
org.xml.sax.SAXException
private void superClass(java.lang.Object obj, java.lang.Class objClass) throws org.xml.sax.SAXException
obj
- (the Object)objClass
- (the Class of the Object)
org.xml.sax.SAXException
protected void getValue(java.lang.Object value, java.lang.Class valueType) throws org.xml.sax.SAXException
value
- (value of the member)valueType
- (the Class of the certain member)
org.xml.sax.SAXException
protected void handleOzoneProxyMember(java.lang.String memberName, org.ozoneDB.OzoneProxy proxy) throws org.xml.sax.SAXException
memberName
- (name of the member)proxy
- (the OzoneProxy object)
org.xml.sax.SAXException
protected java.lang.Integer getID(java.lang.Object obj)
obj
- (the Object)
protected void writeObjStartTag(java.lang.String classname, java.lang.Integer id, org.xml.sax.Attributes additionallyAtts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeObjEndTag() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeSuperClStartTag(java.lang.String classname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeSuperClEndTag() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeMemberStartTag(java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeMemberEndTag() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeMemberTagForOzoneProxy(java.lang.String name, java.lang.String proxyType, java.lang.String objectID) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeValue(java.lang.String value) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeValueStartTag(java.lang.String type, java.lang.Integer id) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeValueEndTag() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeValueObjStartTag(java.lang.String type, java.lang.Integer id) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeValueObjEndTag() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeArrayStartTag(java.lang.String type, java.lang.Integer id) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeArrayEndTag() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void writeObjRefElement(java.lang.Integer sourceId) throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |