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

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

public class SoapArrayType
extends Type


Field Summary
 
Fields inherited from class org.apache.cxf.aegis.type.Type
typeClass
 
Constructor Summary
SoapArrayType()
           
 
Method Summary
 javax.xml.namespace.QName getComponentName()
          Gets the QName of the component type of this array.
 Type getComponentType()
          Get the Type of the elements in the array.
 java.util.Set<Type> getDependencies()
          Return a set of Type dependencies.
protected  javax.xml.namespace.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  java.lang.Object makeArray(java.util.List values, java.util.List<java.lang.Integer> dimensions, java.lang.Class componentType)
           
protected  java.util.List<java.lang.Object> readCollection(MessageReader reader, Context context, ArrayTypeInfo arrayTypeInfo, int maxSize)
           
 java.lang.Object readObject(MessageReader reader, Context context)
          Read in the XML fragment and create an object.
 void setComponentName(javax.xml.namespace.QName componentName)
          Sets the QName of the component type of this array.
 void writeObject(java.lang.Object values, MessageWriter writer, Context context)
          Writes the object to the MessageWriter.
 void writeSchema(org.jdom.Element root)
          Throws UnsupportedOperationException
protected  void writeValue(java.lang.Object value, MessageWriter writer, Context context, Type type)
           
 
Methods inherited from class org.apache.cxf.aegis.type.Type
addToSchemaElement, equals, getMaxOccurs, getMinOccurs, getSchemaType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, hasMinOccurs, isAbstract, isNillable, isWriteOuter, setAbstract, 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 java.lang.Object readObject(MessageReader reader,
                                   Context context)
                            throws DatabindingException
Description copied from class: Type
Read in the XML fragment and create an object.

Specified by:
readObject in class Type
Returns:
Throws:
DatabindingException

readCollection

protected java.util.List<java.lang.Object> readCollection(MessageReader reader,
                                                          Context context,
                                                          ArrayTypeInfo arrayTypeInfo,
                                                          int maxSize)
                                                   throws DatabindingException
Throws:
DatabindingException

makeArray

protected java.lang.Object makeArray(java.util.List values,
                                     java.util.List<java.lang.Integer> dimensions,
                                     java.lang.Class componentType)

writeObject

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

Specified by:
writeObject in class Type
Throws:
DatabindingException

writeValue

protected void writeValue(java.lang.Object value,
                          MessageWriter writer,
                          Context context,
                          Type type)
                   throws DatabindingException
Throws:
DatabindingException

writeSchema

public void writeSchema(org.jdom.Element root)
Throws UnsupportedOperationException

Overrides:
writeSchema in class Type
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 Type
Returns:
True if a complex type schema must be written.
See Also:
Type.isComplex()

getComponentName

public javax.xml.namespace.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(javax.xml.namespace.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 java.util.Set<Type> getDependencies()
Description copied from class: Type
Return a set of Type dependencies. Returns null if this type has no dependencies.

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

getComponentType

public Type getComponentType()
Get the Type 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 javax.xml.namespace.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