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
-
public class StructType extends BeanType
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)
-
-
Constructor Summary
Constructors Constructor Description StructType()StructType(BeanTypeInfo info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanalwaysAllowNillables()protected BeanTypeInfogetBeanTypeInfoWithProperty(QName name)Gets 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 SoapRefs-
Methods inherited from class org.apache.cxf.aegis.type.basic.BeanType
createFromFault, createTypeInfo, getDependencies, getMinOccurs, getSuperType, getTypeInfo, hasMinOccurs, isComplex, readObject, readProperty, setTypeClass, setTypeMapping, toString, writeObject, writeSchema
-
Methods 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 Detail
-
StructType
public StructType()
-
StructType
public StructType(BeanTypeInfo info)
-
-
Method Detail
-
alwaysAllowNillables
protected boolean alwaysAllowNillables()
- Overrides:
alwaysAllowNillablesin classBeanType
-
getBeanTypeInfoWithProperty
protected BeanTypeInfo getBeanTypeInfoWithProperty(QName name)
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
-
-