org.codehaus.xfire.type.basic
Class ArrayType

java.lang.Object
  extended by org.codehaus.xfire.type.Type
      extended by org.codehaus.xfire.type.basic.ArrayType
All Implemented Interfaces:
SchemaType
Direct Known Subclasses:
ListType

public class ArrayType
extends Type

An ArrayType.

Author:
Dan Diephouse

Constructor Summary
ArrayType()
           
 
Method Summary
 javax.xml.namespace.QName getComponentName()
           
protected  Type getComponentType()
          Get the Type of the elements in the array.
 java.util.Set getDependencies()
          Return a set of Type dependencies.
 boolean isComplex()
          We need to write a complex type schema for Beans, so return true.
 java.lang.Object readObject(MessageReader reader, MessageContext context)
           
 void setComponentName(javax.xml.namespace.QName componentName)
           
 void writeObject(java.lang.Object object, MessageWriter writer, MessageContext context)
           
 void writeSchema(org.codehaus.yom.Element root)
          Write the type schema (if complex) to the element.
 
Methods inherited from class org.codehaus.xfire.type.Type
equals, getSchemaType, getTypeClass, getTypeMapping, hashCode, isAbstract, setAbstract, setSchemaType, setTypeClass, setTypeMapping
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayType

public ArrayType()
Method Detail

readObject

public java.lang.Object readObject(MessageReader reader,
                                   MessageContext context)
                            throws XFireFault
Specified by:
readObject in class Type
Throws:
XFireFault

writeObject

public void writeObject(java.lang.Object object,
                        MessageWriter writer,
                        MessageContext context)
                 throws XFireFault
Specified by:
writeObject in class Type
Throws:
XFireFault

writeSchema

public void writeSchema(org.codehaus.yom.Element root)
Description copied from interface: SchemaType
Write the type schema (if complex) to the element.

Specified by:
writeSchema in interface SchemaType
Overrides:
writeSchema in class Type

isComplex

public boolean isComplex()
We need to write a complex type schema for Beans, so return true.

Specified by:
isComplex in interface SchemaType
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()

setComponentName

public void setComponentName(javax.xml.namespace.QName componentName)

getDependencies

public java.util.Set getDependencies()
Description copied from class: Type
Return a set of Type dependencies. Returns null if this type has no dependencies.

Specified by:
getDependencies in interface SchemaType
Overrides:
getDependencies in class Type
Returns:
See Also:
Type.getDependencies()

getComponentType

protected Type getComponentType()
Get the Type of the elements in the array.

Returns: