eXo Kernel :: Container 2.5.0-GA

org.exoplatform.xml.object
Class XMLObject

java.lang.Object
  extended by org.exoplatform.xml.object.XMLObject

public class XMLObject
extends Object

Since:
Apr 10, 2005
Version:
$Id: XMLObject.java 11659 2007-01-05 15:35:06Z geaz $
Author:
Tuan Nguyen (tuan08@users.sourceforge.net)

Field Summary
static String CURRENT_VERSION
           
 
Constructor Summary
XMLObject()
           
XMLObject(Object obj)
           
 
Method Summary
 void addField(Object o)
           
 void addField(String name, Class<?> fieldType, Object obj)
           
 void addField(XMLField field)
           
protected static org.jibx.runtime.IBindingFactory getBindingFactoryInPriviledgedMode(Class<?> clazz)
           
 XMLField getField(String name)
           
 Iterator<XMLField> getFieldIterator()
           
 Collection<XMLField> getFields()
           
 Object getFieldValue(String fieldName)
           
static Object getObject(InputStream is)
           
 String getType()
           
static XMLObject getXMLObject(InputStream is)
           
 void removeField(String name)
           
 void renameField(String oldName, String newName)
           
 void setFields(Collection<XMLField> fields)
           
 void setFields(Map<String,XMLField> fields)
           
 void setType(String s)
           
 byte[] toByteArray()
           
 byte[] toByteArray(String encoding)
           
 Object toObject()
           
 String toString()
           
 String toXML()
           
 String toXML(String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CURRENT_VERSION

public static String CURRENT_VERSION
Constructor Detail

XMLObject

public XMLObject()

XMLObject

public XMLObject(Object obj)
          throws Exception
Throws:
Exception
Method Detail

getType

public String getType()

setType

public void setType(String s)

getField

public XMLField getField(String name)

addField

public void addField(Object o)

addField

public void addField(XMLField field)

getFieldIterator

public Iterator<XMLField> getFieldIterator()

getFields

public Collection<XMLField> getFields()

setFields

public void setFields(Collection<XMLField> fields)

setFields

public void setFields(Map<String,XMLField> fields)

getFieldValue

public Object getFieldValue(String fieldName)
                     throws Exception
Throws:
Exception

renameField

public void renameField(String oldName,
                        String newName)

removeField

public void removeField(String name)

addField

public void addField(String name,
                     Class<?> fieldType,
                     Object obj)
              throws Exception
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object

toObject

public Object toObject()
                throws Exception
Throws:
Exception

toXML

public String toXML()
             throws Exception
Throws:
Exception

toXML

public String toXML(String encoding)
             throws Exception
Throws:
Exception

toByteArray

public byte[] toByteArray()
                   throws Exception
Throws:
Exception

toByteArray

public byte[] toByteArray(String encoding)
                   throws Exception
Throws:
Exception

getXMLObject

public static XMLObject getXMLObject(InputStream is)
                              throws Exception
Throws:
Exception

getObject

public static Object getObject(InputStream is)
                        throws Exception
Throws:
Exception

getBindingFactoryInPriviledgedMode

protected static org.jibx.runtime.IBindingFactory getBindingFactoryInPriviledgedMode(Class<?> clazz)
                                                                              throws org.jibx.runtime.JiBXException
Throws:
org.jibx.runtime.JiBXException

eXo Kernel :: Container 2.5.0-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.