Class SoapArrayType
- java.lang.Object
-
- org.apache.cxf.aegis.type.AegisType
-
- org.apache.cxf.aegis.type.encoded.SoapArrayType
-
public class SoapArrayType extends AegisType
-
-
Constructor Summary
Constructors Constructor Description SoapArrayType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QNamegetComponentName()Gets the QName of the component type of this array.AegisTypegetComponentType()Get theAegisTypeof the elements in the array.Set<AegisType>getDependencies()Return a set of AegisType dependencies.protected QNamegetRootType()Gets the QName of the root component type of this array.booleanisComplex()We need to write a complex type schema for Beans, so return true.protected ObjectmakeArray(List<Object> values, List<Integer> dimensions, Class<?> componentType)protected List<Object>readCollection(MessageReader reader, Context context, ArrayTypeInfo arrayTypeInfo, int maxSize)ObjectreadObject(MessageReader reader, Context context)Read in the XML fragment and create an object.voidsetComponentName(QName componentName)Sets the QName of the component type of this array.voidwriteObject(Object values, MessageWriter writer, Context context)Writes the object to the MessageWriter.voidwriteSchema(org.apache.ws.commons.schema.XmlSchema root)Throws UnsupportedOperationExceptionprotected voidwriteValue(Object value, MessageWriter writer, Context context, AegisType type)-
Methods inherited from class org.apache.cxf.aegis.type.AegisType
addToSchemaElement, equals, getMaxOccurs, getMinOccurs, getSchemaType, getType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, hasMinOccurs, isAbstract, isFlatArray, isNillable, isWriteOuter, setAbstract, setFlatArray, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, usesUtilityTypes, usesXmime
-
-
-
-
Method Detail
-
readObject
public Object readObject(MessageReader reader, Context context) throws DatabindingException
Description copied from class:AegisTypeRead in the XML fragment and create an object.- Specified by:
readObjectin classAegisType- Returns:
- Throws:
DatabindingException
-
readCollection
protected List<Object> readCollection(MessageReader reader, Context context, ArrayTypeInfo arrayTypeInfo, int maxSize) throws DatabindingException
- Throws:
DatabindingException
-
makeArray
protected Object makeArray(List<Object> values, List<Integer> dimensions, Class<?> componentType)
-
writeObject
public void writeObject(Object values, MessageWriter writer, Context context) throws DatabindingException
Description copied from class:AegisTypeWrites the object to the MessageWriter.- Specified by:
writeObjectin classAegisType- Throws:
DatabindingException
-
writeValue
protected void writeValue(Object value, MessageWriter writer, Context context, AegisType type) throws DatabindingException
- Throws:
DatabindingException
-
writeSchema
public void writeSchema(org.apache.ws.commons.schema.XmlSchema root)
Throws UnsupportedOperationException- Overrides:
writeSchemain classAegisType- Parameters:
root- root of the XSD document.
-
isComplex
public boolean isComplex()
We need to write a complex type schema for Beans, so return true.- Overrides:
isComplexin classAegisType- Returns:
- True if a complex type schema must be written.
- See Also:
AegisType.isComplex()
-
getComponentName
public QName getComponentName()
Gets the QName of the component type of this array.- Returns:
- the QName of the component type of this array
-
setComponentName
public void setComponentName(QName componentName)
Sets the QName of the component type of this array.- Parameters:
componentName- the QName of the component type of this array
-
getDependencies
public Set<AegisType> getDependencies()
Description copied from class:AegisTypeReturn a set of AegisType dependencies. Returns null if this type has no dependencies.- Overrides:
getDependenciesin classAegisType- Returns:
- Set of
AegisTypedependencies
-
getComponentType
public AegisType getComponentType()
Get theAegisTypeof the elements in the array. This is only used for writing an array. When reading the type is solely determined by the required arrayType soap attribute.
-
getRootType
protected QName getRootType()
Gets the QName of the root component type of this array. This will be a non-array type such as a simple xsd type.- Returns:
- the QName of the root component type of this array
-
-