org.codehaus.xfire.aegis.type.basic
Class ArrayType

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

public class ArrayType
extends Type

An ArrayType.

Author:
Dan Diephouse

Constructor Summary
ArrayType()
           
 
Method Summary
protected  java.util.Collection createCollection()
           
 javax.xml.namespace.QName getComponentName()
           
 Type getComponentType()
          Get the Type of the elements in the array.
 java.util.Set getDependencies()
          Return a set of Type dependencies.
 long getMaxOccurs()
           
 long getMinOccurs()
           
 boolean isComplex()
          We need to write a complex type schema for Beans, so return true.
 boolean isFlat()
           
protected  java.lang.Object makeArray(java.lang.Class arrayType, java.util.Collection values)
           
protected  java.util.Collection readCollection(MessageReader reader, org.codehaus.xfire.MessageContext context)
           
 java.lang.Object readObject(MessageReader reader, org.codehaus.xfire.MessageContext context)
          Read in the XML fragment and create an object.
 void setComponentName(javax.xml.namespace.QName componentName)
           
 void setFlat(boolean flat)
           
 void setMaxOccurs(long maxOccurs)
           
 void setMinOccurs(long minOccurs)
           
 void writeObject(java.lang.Object values, MessageWriter writer, org.codehaus.xfire.MessageContext context)
          Writes the object to the MessageWriter.
 void writeSchema(org.jdom.Element root)
           
protected  void writeValue(java.lang.Object value, MessageWriter writer, org.codehaus.xfire.MessageContext context, Type type, java.lang.String name, java.lang.String ns)
           
 
Methods inherited from class org.codehaus.xfire.aegis.type.Type
equals, getSchemaType, getTypeClass, getTypeMapping, hashCode, isAbstract, isNillable, isWriteOuter, setAbstract, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayType

public ArrayType()
Method Detail

readObject

public java.lang.Object readObject(MessageReader reader,
                                   org.codehaus.xfire.MessageContext context)
                            throws org.codehaus.xfire.fault.XFireFault
Description copied from class: Type
Read in the XML fragment and create an object.

Specified by:
readObject in class Type
Returns:
Throws:
org.codehaus.xfire.fault.XFireFault

createCollection

protected java.util.Collection createCollection()

readCollection

protected java.util.Collection readCollection(MessageReader reader,
                                              org.codehaus.xfire.MessageContext context)
                                       throws org.codehaus.xfire.fault.XFireFault
Throws:
org.codehaus.xfire.fault.XFireFault

makeArray

protected java.lang.Object makeArray(java.lang.Class arrayType,
                                     java.util.Collection values)

writeObject

public void writeObject(java.lang.Object values,
                        MessageWriter writer,
                        org.codehaus.xfire.MessageContext context)
                 throws org.codehaus.xfire.fault.XFireFault
Description copied from class: Type
Writes the object to the MessageWriter.

Specified by:
writeObject in class Type
Throws:
org.codehaus.xfire.fault.XFireFault

writeValue

protected void writeValue(java.lang.Object value,
                          MessageWriter writer,
                          org.codehaus.xfire.MessageContext context,
                          Type type,
                          java.lang.String name,
                          java.lang.String ns)
                   throws org.codehaus.xfire.fault.XFireFault
Throws:
org.codehaus.xfire.fault.XFireFault

writeSchema

public void writeSchema(org.jdom.Element root)
Specified by:
writeSchema in interface org.codehaus.xfire.wsdl.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 org.codehaus.xfire.wsdl.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 org.codehaus.xfire.wsdl.SchemaType
Overrides:
getDependencies in class Type
Returns:
Set of Type dependencies
See Also:
Type.getDependencies()

getComponentType

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

Returns:

getMaxOccurs

public long getMaxOccurs()

setMaxOccurs

public void setMaxOccurs(long maxOccurs)

getMinOccurs

public long getMinOccurs()

setMinOccurs

public void setMinOccurs(long minOccurs)

isFlat

public boolean isFlat()

setFlat

public void setFlat(boolean flat)


Copyright © 2004-2010. All Rights Reserved.