Class SoapArrayType
java.lang.Object
org.apache.cxf.aegis.type.AegisType
org.apache.cxf.aegis.type.encoded.SoapArrayType
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the QName of the component type of this array.Get theAegisTypeof the elements in the array.Return a set of AegisType dependencies.protected QNameGets the QName of the root component type of this array.booleanWe need to write a complex type schema for Beans, so return true.protected ObjectreadCollection(MessageReader reader, Context context, ArrayTypeInfo arrayTypeInfo, int maxSize) readObject(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
-
Constructor Details
-
SoapArrayType
public SoapArrayType()
-
-
Method Details
-
readObject
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
-
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. -
getComponentName
Gets the QName of the component type of this array.- Returns:
- the QName of the component type of this array
-
setComponentName
Sets the QName of the component type of this array.- Parameters:
componentName- the QName of the component type of this array
-
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
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
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
-