|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picketlink.identity.federation.core.util.JAXBUtil
public class JAXBUtil
Utility to obtain JAXB2 marshaller/unmarshaller etc
Field Summary | |
---|---|
static String |
W3C_XML_SCHEMA_NS_URI
|
Constructor Summary | |
---|---|
JAXBUtil()
|
Method Summary | |
---|---|
static JAXBContext |
getJAXBContext(Class<?> clazz)
|
static JAXBContext |
getJAXBContext(String... paths)
|
static JAXBContext |
getJAXBContext(String path)
|
static Marshaller |
getMarshaller(String pkgName)
Get the JAXB Marshaller |
static Unmarshaller |
getUnmarshaller(String... pkgNames)
Get the JAXB Unmarshaller for a selected set of package names |
static Unmarshaller |
getUnmarshaller(String pkgName)
Get the JAXB Unmarshaller |
static Marshaller |
getValidatingMarshaller(String pkgName,
String schemaLocation)
Get the JAXB Marshaller |
static Unmarshaller |
getValidatingUnmarshaller(String[] pkgNames,
String[] schemaLocations)
|
static Unmarshaller |
getValidatingUnmarshaller(String pkgName,
String schemaLocation)
Get the JAXB Unmarshaller |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String W3C_XML_SCHEMA_NS_URI
Constructor Detail |
---|
public JAXBUtil()
Method Detail |
---|
public static Marshaller getValidatingMarshaller(String pkgName, String schemaLocation) throws JAXBException, SAXException
pkgName
- The package name for the jaxb contextschemaLocation
- location of the schema to validate against
JAXBException
SAXException
public static Marshaller getMarshaller(String pkgName) throws JAXBException
pkgName
- The package name for the jaxb context
JAXBException
public static Unmarshaller getUnmarshaller(String pkgName) throws JAXBException
pkgName
- The package name for the jaxb context
JAXBException
public static Unmarshaller getUnmarshaller(String... pkgNames) throws JAXBException
pkgNames
-
JAXBException
public static Unmarshaller getValidatingUnmarshaller(String pkgName, String schemaLocation) throws JAXBException, SAXException
pkgName
- The package name for the jaxb contextschemaLocation
- location of the schema to validate against
JAXBException
SAXException
public static Unmarshaller getValidatingUnmarshaller(String[] pkgNames, String[] schemaLocations) throws JAXBException, SAXException, IOException
JAXBException
SAXException
IOException
public static JAXBContext getJAXBContext(String path) throws JAXBException
JAXBException
public static JAXBContext getJAXBContext(String... paths) throws JAXBException
JAXBException
public static JAXBContext getJAXBContext(Class<?> clazz) throws JAXBException
JAXBException
|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |