public class AegisContext extends Object
Modifier and Type | Field and Description |
---|---|
static String |
UTILITY_TYPES_SCHEMA_NS
Namespace used for the miscellaneous Aegis type schema.
|
Constructor and Description |
---|
AegisContext()
Construct a context.
|
Modifier and Type | Method and Description |
---|---|
org.apache.ws.commons.schema.XmlSchema |
addTypesSchemaDocument(org.apache.ws.commons.schema.XmlSchemaCollection collection) |
static void |
addUtilityTypesToSchema(org.apache.ws.commons.schema.XmlSchema root) |
org.apache.ws.commons.schema.XmlSchema |
addXmimeSchemaDocument(org.apache.ws.commons.schema.XmlSchemaCollection collection) |
protected AbstractTypeCreator |
createDefaultTypeCreator() |
AegisReader<Element> |
createDomElementReader() |
AegisWriter<Element> |
createDomElementWriter() |
protected AbstractTypeCreator |
createRootTypeCreator() |
TypeCreator |
createTypeCreator() |
AegisReader<XMLStreamReader> |
createXMLStreamReader() |
AegisWriter<XMLStreamWriter> |
createXMLStreamWriter() |
Map<Class<?>,String> |
getBeanImplementationMap()
This property provides support for interfaces.
|
String |
getMappingNamespaceURI()
What URI identifies the type mapping for this context? When the XMLTypeCreator reads .aegis.xml file,
it will only read mappings for this URI (or no URI).
|
Set<Type> |
getRootClasses() |
Set<String> |
getRootClassNames()
Retrieve the set of root class names.
|
AegisType |
getRootType(Class<?> clazz)
If a class was provided as part of the 'root' list, retrieve it's AegisType by Class.
|
AegisType |
getRootType(QName schemaTypeName)
If a class was provided as part of the root list, retrieve it's AegisType by schema type QName.
|
Set<AegisType> |
getRootTypes()
Retrieve the Aegis type objects for the root classes.
|
TypeCreationOptions |
getTypeCreationOptions()
Return the type mapping configuration associated with this context.
|
TypeMapping |
getTypeMapping()
Return the type mapping object used by this context.
|
void |
initialize()
Initialize the context.
|
boolean |
isEnableJDOMMappings() |
boolean |
isMtomEnabled()
Is MTOM enabled in this context?
|
boolean |
isMtomUseXmime()
Should this service use schema for MTOM types xmime:base64Binary instead of xsd:base64Binary?
|
boolean |
isReadXsiTypes() |
boolean |
isWriteXsiTypes() |
static boolean |
schemaImportsUtilityTypes(org.apache.ws.commons.schema.XmlSchema schema) |
void |
setBeanImplementationMap(Map<Class<?>,String> beanImplementationMap) |
void |
setEnableJDOMMappings(boolean enableJDOMMappings)
Whether to enable JDOM as a mapping for xsd:anyType if JDOM is in the classpath.
|
void |
setMappingNamespaceURI(String mappingNamespaceURI) |
void |
setMtomEnabled(boolean mtomEnabled) |
void |
setMtomUseXmime(boolean mtomUseXmime) |
void |
setReadXsiTypes(boolean flag)
Controls the use of xsi:type attributes when reading objects.
|
void |
setRootClasses(Set<Type> rootClasses)
The list of initial classes.
|
void |
setRootClassNames(Set<String> classNames)
Set the root class names.
|
void |
setTypeCreationOptions(TypeCreationOptions newConfiguration)
Set the configuration object.
|
void |
setTypeMapping(TypeMapping typeMapping)
Set the type mapping object used by this context.
|
void |
setWriteXsiTypes(boolean flag)
Controls whether Aegis writes xsi:type attributes on all elements.
|
public static final String UTILITY_TYPES_SCHEMA_NS
public TypeCreator createTypeCreator()
protected AbstractTypeCreator createRootTypeCreator()
protected AbstractTypeCreator createDefaultTypeCreator()
public void initialize()
public AegisReader<Element> createDomElementReader()
public AegisReader<XMLStreamReader> createXMLStreamReader()
public AegisWriter<Element> createDomElementWriter()
public AegisWriter<XMLStreamWriter> createXMLStreamWriter()
public AegisType getRootType(Class<?> clazz)
clazz
- public AegisType getRootType(QName schemaTypeName)
schemaTypeName
- public static boolean schemaImportsUtilityTypes(org.apache.ws.commons.schema.XmlSchema schema)
public org.apache.ws.commons.schema.XmlSchema addTypesSchemaDocument(org.apache.ws.commons.schema.XmlSchemaCollection collection)
public org.apache.ws.commons.schema.XmlSchema addXmimeSchemaDocument(org.apache.ws.commons.schema.XmlSchemaCollection collection)
public static void addUtilityTypesToSchema(org.apache.ws.commons.schema.XmlSchema root)
public Set<String> getRootClassNames()
public void setRootClassNames(Set<String> classNames)
setRootClasses(Set)
.classNames
- public TypeCreationOptions getTypeCreationOptions()
public void setTypeCreationOptions(TypeCreationOptions newConfiguration)
newConfiguration
- The configuration to set.public boolean isWriteXsiTypes()
public boolean isReadXsiTypes()
public void setWriteXsiTypes(boolean flag)
flag
- public void setReadXsiTypes(boolean flag)
flag
- public TypeMapping getTypeMapping()
public void setTypeMapping(TypeMapping typeMapping)
typeMapping
- public Set<AegisType> getRootTypes()
public Map<Class<?>,String> getBeanImplementationMap()
BeanType
public void setBeanImplementationMap(Map<Class<?>,String> beanImplementationMap)
public void setRootClasses(Set<Type> rootClasses)
rootClasses
- public boolean isMtomEnabled()
public void setMtomEnabled(boolean mtomEnabled)
public boolean isMtomUseXmime()
public void setMtomUseXmime(boolean mtomUseXmime)
public String getMappingNamespaceURI()
public void setMappingNamespaceURI(String mappingNamespaceURI)
public boolean isEnableJDOMMappings()
public void setEnableJDOMMappings(boolean enableJDOMMappings)
enableJDOMMappings
- Apache CXF