Apache CXF API

org.apache.cxf.aegis.type.encoded
Class SoapArrayType

java.lang.Object
  extended by org.apache.cxf.aegis.type.AegisType
      extended by org.apache.cxf.aegis.type.encoded.SoapArrayType

public class SoapArrayType
extends AegisType


Field Summary
 
Fields inherited from class org.apache.cxf.aegis.type.AegisType
typeClass
 
Constructor Summary
SoapArrayType()
           
 
Method Summary
 QName getComponentName()
          Gets the QName of the component type of this array.
 AegisType getComponentType()
          Get the AegisType of the elements in the array.
 Set<AegisType> getDependencies()
          Return a set of AegisType dependencies.
protected  QName getRootType()
          Gets the QName of the root component type of this array.
 boolean isComplex()
          We need to write a complex type schema for Beans, so return true.
protected  Object makeArray(List values, List<Integer> dimensions, Class componentType)
           
protected  List<Object> readCollection(MessageReader reader, Context context, ArrayTypeInfo arrayTypeInfo, int maxSize)
           
 Object readObject(MessageReader reader, Context context)
          Read in the XML fragment and create an object.
 void setComponentName(QName componentName)
          Sets the QName of the component type of this array.
 void writeObject(Object values, MessageWriter writer, Context context)
          Writes the object to the MessageWriter.
 void writeSchema(org.apache.ws.commons.schema.XmlSchema root)
          Throws UnsupportedOperationException
protected  void writeValue(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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoapArrayType

public SoapArrayType()
Method Detail

readObject

public Object readObject(MessageReader reader,
                         Context context)
                  throws DatabindingException
Description copied from class: AegisType
Read in the XML fragment and create an object.

Specified by:
readObject in class AegisType
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 values,
                           List<Integer> dimensions,
                           Class componentType)

writeObject

public void writeObject(Object values,
                        MessageWriter writer,
                        Context context)
                 throws DatabindingException
Description copied from class: AegisType
Writes the object to the MessageWriter.

Specified by:
writeObject in class AegisType
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:
writeSchema in class AegisType
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:
isComplex in class AegisType
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: AegisType
Return a set of AegisType dependencies. Returns null if this type has no dependencies.

Overrides:
getDependencies in class AegisType
Returns:
Set of AegisType dependencies

getComponentType

public AegisType getComponentType()
Get the AegisType of 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

Apache CXF API

Apache CXF