public class ObjectFactory extends DefaultJAXBContextImpl
An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java representation of XML content can consist of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model groups. Factory methods for each of these are provided in this class.
Modifier and Type | Field and Description |
---|---|
static GrammarInfo |
grammarInfo |
static Class |
version |
JAXB_CONTEXT_FACTORY
Constructor and Description |
---|
ObjectFactory()
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.sun.identity.saml2.jaxb.schema
|
Modifier and Type | Method and Description |
---|---|
AnyType |
createAnyType()
Create an instance of AnyType
|
Object |
getProperty(String name)
Get the specified property.
|
Object |
newInstance(Class javaContentInterface)
Create an instance of the specified Java content interface.
|
void |
setProperty(String name,
Object value)
Set the specified property.
|
createMarshaller, createUnmarshaller, createValidator, getGrammar, getGrammarInfo
createBinder, createBinder, createJAXBIntrospector, generateSchema, newInstance, newInstance, newInstance, newInstance, newInstance
public static final GrammarInfo grammarInfo
public static final Class version
public ObjectFactory()
public Object newInstance(Class javaContentInterface) throws JAXBException
newInstance
in class DefaultJAXBContextImpl
javaContentInterface
- the Class object of the javacontent interface to instantiateJAXBException
- if an error occurspublic Object getProperty(String name) throws PropertyException
getProperty
in class DefaultJAXBContextImpl
name
- the name of the property to retrievePropertyException
- when there is an error retrieving the given property or valuepublic void setProperty(String name, Object value) throws PropertyException
setProperty
in class DefaultJAXBContextImpl
name
- the name of the property to retrievevalue
- the value of the property to be setPropertyException
- when there is an error processing the given property or valuepublic AnyType createAnyType() throws JAXBException
JAXBException
- if an error occursCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.