Class StructType
java.lang.Object
org.apache.cxf.aegis.type.AegisType
org.apache.cxf.aegis.type.basic.BeanType
org.apache.cxf.aegis.type.encoded.StructType
StructType is a small extension of the BeanType which can properly read and write SOAP encoded structs. The
modifications are:
- Nested elements MUST be unqualified
- Nested elements MAY contain a SOAP ref attribute instead of an inline value
- Struct MAY contain a SOAP id attribute
- Struct will contain a SOAP id
- Nested structs will be written as SOAP references (with SoapRefType)
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected BeanTypeInfoGets the BeanTypeInfo using an unqualified name.protected AegisTypegetElementType(QName name, BeanTypeInfo beanTypeInfo, MessageReader reader, Context context) Returns a SoapRefType wrapping the actual type.protected voidwriteElement(QName name, Object value, AegisType type, MessageWriter writer, Context context) Writes a nested element with an unqualified name.protected voidwriteProperty(QName name, Object object, Object property, Class<?> impl, BeanTypeInfo inf) Adds special handeling for SoapRefsMethods inherited from class org.apache.cxf.aegis.type.basic.BeanType
createFromFault, createTypeInfo, getDependencies, getMinOccurs, getSuperType, getTypeInfo, hasMinOccurs, isComplex, readObject, readProperty, setTypeClass, setTypeMapping, toString, writeObject, writeSchemaMethods inherited from class org.apache.cxf.aegis.type.AegisType
addToSchemaElement, equals, getMaxOccurs, getSchemaType, getType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, isAbstract, isFlatArray, isNillable, isWriteOuter, setAbstract, setFlatArray, setNillable, setSchemaType, setWriteOuter, usesUtilityTypes, usesXmime
-
Constructor Details
-
StructType
public StructType() -
StructType
-
-
Method Details
-
alwaysAllowNillables
protected boolean alwaysAllowNillables()- Overrides:
alwaysAllowNillablesin classBeanType
-
getBeanTypeInfoWithProperty
Gets the BeanTypeInfo using an unqualified name.- Overrides:
getBeanTypeInfoWithPropertyin classBeanType- Parameters:
name- the unqualified name of the element- Returns:
- the BeanTypeInfo containing a property with the specified unqualified name
-
getElementType
protected AegisType getElementType(QName name, BeanTypeInfo beanTypeInfo, MessageReader reader, Context context) Returns a SoapRefType wrapping the actual type.- Overrides:
getElementTypein classBeanType
-
writeProperty
protected void writeProperty(QName name, Object object, Object property, Class<?> impl, BeanTypeInfo inf) throws DatabindingException Adds special handeling for SoapRefs- Overrides:
writePropertyin classBeanType- Throws:
DatabindingException
-
writeElement
protected void writeElement(QName name, Object value, AegisType type, MessageWriter writer, Context context) Writes a nested element with an unqualified name.- Overrides:
writeElementin classBeanType
-