Class JAXBUtil
- java.lang.Object
- 
- org.keycloak.saml.processing.core.util.JAXBUtil
 
- 
 public class JAXBUtil extends Object Utility to obtain JAXB2 marshaller/unmarshaller etc- Since:
- May 26, 2009
- Author:
- Anil.Saldhana@redhat.com
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringW3C_XML_SCHEMA_NS_URI
 - 
Constructor SummaryConstructors Constructor Description JAXBUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.xml.bind.JAXBContextgetJAXBContext(Class<?> clazz)static javax.xml.bind.JAXBContextgetJAXBContext(String path)static javax.xml.bind.JAXBContextgetJAXBContext(String... paths)static javax.xml.bind.MarshallergetMarshaller(String pkgName)Get the JAXB Marshallerstatic javax.xml.bind.UnmarshallergetUnmarshaller(String pkgName)Get the JAXB Unmarshallerstatic javax.xml.bind.UnmarshallergetUnmarshaller(String... pkgNames)Get the JAXB Unmarshaller for a selected set of package namesstatic javax.xml.bind.MarshallergetValidatingMarshaller(String pkgName, String schemaLocation)Get the JAXB Marshallerstatic javax.xml.bind.UnmarshallergetValidatingUnmarshaller(String[] pkgNames, String[] schemaLocations)static javax.xml.bind.UnmarshallergetValidatingUnmarshaller(String pkgName, String schemaLocation)Get the JAXB Unmarshaller
 
- 
- 
- 
Field Detail- 
W3C_XML_SCHEMA_NS_URIpublic static final String W3C_XML_SCHEMA_NS_URI - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getValidatingMarshallerpublic static javax.xml.bind.Marshaller getValidatingMarshaller(String pkgName, String schemaLocation) throws javax.xml.bind.JAXBException, SAXException Get the JAXB Marshaller- Parameters:
- pkgName- The package name for the jaxb context
- schemaLocation- location of the schema to validate against
- Returns:
- Marshaller
- Throws:
- javax.xml.bind.JAXBException
- SAXException
 
 - 
getMarshallerpublic static javax.xml.bind.Marshaller getMarshaller(String pkgName) throws javax.xml.bind.JAXBException Get the JAXB Marshaller- Parameters:
- pkgName- The package name for the jaxb context
- Returns:
- Marshaller
- Throws:
- javax.xml.bind.JAXBException
 
 - 
getUnmarshallerpublic static javax.xml.bind.Unmarshaller getUnmarshaller(String pkgName) throws javax.xml.bind.JAXBException Get the JAXB Unmarshaller- Parameters:
- pkgName- The package name for the jaxb context
- Returns:
- unmarshaller
- Throws:
- javax.xml.bind.JAXBException
 
 - 
getUnmarshallerpublic static javax.xml.bind.Unmarshaller getUnmarshaller(String... pkgNames) throws javax.xml.bind.JAXBException Get the JAXB Unmarshaller for a selected set of package names- Parameters:
- pkgNames-
- Returns:
- Throws:
- javax.xml.bind.JAXBException
 
 - 
getValidatingUnmarshallerpublic static javax.xml.bind.Unmarshaller getValidatingUnmarshaller(String pkgName, String schemaLocation) throws javax.xml.bind.JAXBException, SAXException Get the JAXB Unmarshaller- Parameters:
- pkgName- The package name for the jaxb context
- schemaLocation- location of the schema to validate against
- Returns:
- unmarshaller
- Throws:
- javax.xml.bind.JAXBException
- SAXException
 
 - 
getValidatingUnmarshallerpublic static javax.xml.bind.Unmarshaller getValidatingUnmarshaller(String[] pkgNames, String[] schemaLocations) throws javax.xml.bind.JAXBException, SAXException, IOException - Throws:
- javax.xml.bind.JAXBException
- SAXException
- IOException
 
 - 
getJAXBContextpublic static javax.xml.bind.JAXBContext getJAXBContext(String path) throws javax.xml.bind.JAXBException - Throws:
- javax.xml.bind.JAXBException
 
 - 
getJAXBContextpublic static javax.xml.bind.JAXBContext getJAXBContext(String... paths) throws javax.xml.bind.JAXBException - Throws:
- javax.xml.bind.JAXBException
 
 - 
getJAXBContextpublic static javax.xml.bind.JAXBContext getJAXBContext(Class<?> clazz) throws javax.xml.bind.JAXBException - Throws:
- javax.xml.bind.JAXBException
 
 
- 
 
-