Skip navigation links


oracle.iam.certification.vo.util.jaxb
Class JAXBProcessor

java.lang.Object
  extended by oracle.iam.certification.vo.util.jaxb.JAXBProcessor


public class JAXBProcessor
extends java.lang.Object

Default to oracle.iam.certification.domain package. Note there is a jaxb.index file in the "oracle.iam.certification.domain" package that must be updated with the classes to marshall/unmarshall.


Field Summary
static java.lang.String DEFAULT_CHARSET
           

 

Constructor Summary
JAXBProcessor()
           

 

Method Summary
static byte[] getBytes(java.lang.Object o)
          Return byte array of marshalled object o.
static java.lang.Object getObject(java.lang.String xml)
          Return object unmarshalled by xml String.
static java.lang.String getString(java.lang.Object o)
          Return string of marshalled object o.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

DEFAULT_CHARSET

public static final java.lang.String DEFAULT_CHARSET
See Also:
Constant Field Values

Constructor Detail

JAXBProcessor

public JAXBProcessor()

Method Detail

getBytes

public static byte[] getBytes(java.lang.Object o)
                       throws javax.xml.bind.JAXBException
Return byte array of marshalled object o.
Parameters:
o - Object to marshall
Returns:
byte array of XML representation of object
Throws:
javax.xml.bind.JAXBException - If there was an error

getString

public static java.lang.String getString(java.lang.Object o)
                                  throws javax.xml.bind.JAXBException
Return string of marshalled object o.
Parameters:
o - Object to marshall
Returns:
String XML representation of object
Throws:
javax.xml.bind.JAXBException - If there was an error

getObject

public static java.lang.Object getObject(java.lang.String xml)
                                  throws javax.xml.bind.JAXBException,
                                         java.io.UnsupportedEncodingException
Return object unmarshalled by xml String.
Parameters:
xml - xml String.
Returns:
object represented by xml string.
Throws:
javax.xml.bind.JAXBException - if there was an error
java.io.UnsupportedEncodingException

Skip navigation links


Copyright © 2015, Oracle and/or its affiliates. All rights reserved.