|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.JAXBUtil
public class JAXBUtil
Utility class for marshalling and unmarshalling
| Constructor Summary | |
|---|---|
JAXBUtil()
|
|
| Method Summary | ||
|---|---|---|
static void |
addPackages(List<String> packageNames)
Adding more custom extension classes to the SDK's JAXBContext. |
|
static void |
initialize(ClassLoader classLoader)
Explicitly passing the classloader for locating the generated jaxb classes from schema(rest-api-schemas-{version}.jar). |
|
static void |
initialize(List<String> packageNames,
ClassLoader classLoader)
Explicitly passing the package names and classloader for locating the generated jaxb classes from schema(rest-api-schemas-{version}.jar). |
|
static String |
marshal(JAXBElement<?> element)
Converts the JAXB Object into an XML |
|
static
|
unmarshallResource(InputStream is)
Converts the response XML stream to the Object |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JAXBUtil()
| Method Detail |
|---|
public static void initialize(ClassLoader classLoader)
classLoader - This class loader will be used to locate the implementation classes - generated
jaxb classes from schema(rest-api-schemas-{version}.jar).
public static void initialize(List<String> packageNames,
ClassLoader classLoader)
packageNames - Specify the list of all the package names which needs to be added to the SDK's
JAXBContextclassLoader - This class loader will be used to locate the implementation classes - generated
jaxb classes from schema(rest-api-schemas-{version}.jar).public static void addPackages(List<String> packageNames)
packageNames - Specify the list of all the package names which needs to be added to the SDK's
JAXBContextpublic static <Type> Type unmarshallResource(InputStream is)
is - - response input stream
public static String marshal(JAXBElement<?> element)
element -
String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||