| java.lang.Object org.ozoneDB.core.xml.Object2XML
Object2XML | public class Object2XML implements Consts(Code) | | This class transform an Object into XML.
version: $Revision: 1.1 $ author: SMB |
Method Summary | |
protected Integer | getID(Object obj) GetId gets the reference/address of the Object. | protected void | getMember(Object obj, Class objClass) | protected void | getValue(Object value, Class valueType) GetValue gets the value of the certain member. | protected void | handleOzoneProxyMember(String memberName, OzoneProxy proxy) This methode handles an OzoneProxy member. | public void | toXML(Object obj) ToXML(obj) gets an object and serialize this object into XML. | protected void | writeArrayEndTag() | protected void | writeArrayStartTag(String type, Integer id) | protected void | writeMemberEndTag() | protected void | writeMemberStartTag(String name) | protected void | writeMemberTagForOzoneProxy(String name, String proxyType, String objectID) | protected void | writeObjEndTag() | protected void | writeObjRefElement(Integer sourceId) | protected void | writeObjStartTag(String classname, Integer id, Attributes additionallyAtts) | protected void | writeSuperClEndTag() | protected void | writeSuperClStartTag(String classname) | protected void | writeValue(String value) | protected void | writeValueEndTag() | protected void | writeValueObjEndTag() | protected void | writeValueObjStartTag(String type, Integer id) | protected void | writeValueStartTag(String type, Integer id) |
Object2XML | public Object2XML(ContentHandler contHandler, boolean serializeTransientFlag)(Code) | | Parameters: docHandler - Parameters: serializeTransientFlag - |
getID | protected Integer getID(Object obj)(Code) | | GetId gets the reference/address of the Object.
Parameters: obj - (the Object) id |
getMember | protected void getMember(Object obj, Class objClass) throws SAXException(Code) | | GetMember gets the informations (name/type/value)
of all members (private and protected too) !!
Parameters: obj - (the Object) Parameters: objClass - (the Class of the Object) |
getValue | protected void getValue(Object value, Class valueType) throws SAXException(Code) | | GetValue gets the value of the certain member.
Parameters: value - (value of the member) Parameters: valueType - (the Class of the certain member) |
handleOzoneProxyMember | protected void handleOzoneProxyMember(String memberName, OzoneProxy proxy) throws SAXException(Code) | | This methode handles an OzoneProxy member.
Parameters: memberName - (name of the member) Parameters: proxy - (the OzoneProxy object) |
toXML | public void toXML(Object obj) throws SAXException(Code) | | ToXML(obj) gets an object and serialize this object into XML.
Parameters: obj - (the Object) |
|
|