org.apache.cxf.aegis.type.basic
Class ArrayType

java.lang.Object
  extended by org.apache.cxf.aegis.type.Type
      extended by org.apache.cxf.aegis.type.basic.ArrayType
Direct Known Subclasses:
CollectionType

public class ArrayType
extends Type

An ArrayType.

Author:
Dan Diephouse

Field Summary
 
Fields inherited from class org.apache.cxf.aegis.type.Type
typeClass
 
Constructor Summary
ArrayType()
           
 
Method Summary
protected  java.util.Collection<java.lang.Object> createCollection()
           
 javax.xml.namespace.QName getComponentName()
           
 Type getComponentType()
          Get the Type of the elements in the array.
 java.util.Set<Type> getDependencies()
          Return a set of Type dependencies.
 long getMaxOccurs()
           
 long getMinOccurs()
           
 boolean hasMaxOccurs()
           
 boolean hasMinOccurs()
           
 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, Context context)
           
 java.lang.Object readObject(MessageReader reader, Context 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, Context context)
          Writes the object to the MessageWriter.
 void writeSchema(org.jdom.Element root)
          If this type should correspond to a global, named, schema type, here is where the type object adds it to the schema.
protected  void writeValue(java.lang.Object value, MessageWriter writer, Context context, Type type, java.lang.String name, java.lang.String ns)
           
 
Methods inherited from class org.apache.cxf.aegis.type.Type
addToSchemaElement, equals, getSchemaType, getTypeClass, getTypeMapping, hashCode, 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

ArrayType

public ArrayType()
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

createCollection

protected java.util.Collection<java.lang.Object> createCollection()

readCollection

protected java.util.Collection readCollection(MessageReader reader,
                                              Context context)
                                       throws DatabindingException
Throws:
DatabindingException

makeArray

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

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,
                          java.lang.String name,
                          java.lang.String ns)
                   throws DatabindingException
Throws:
DatabindingException

writeSchema

public void writeSchema(org.jdom.Element root)
Description copied from class: Type
If this type should correspond to a global, named, schema type, here is where the type object adds it to the schema.

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()

setComponentName

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

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
See Also:
Type.getDependencies()

getComponentType

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

Returns:

getMaxOccurs

public long getMaxOccurs()
Overrides:
getMaxOccurs in class Type

setMaxOccurs

public void setMaxOccurs(long maxOccurs)

getMinOccurs

public long getMinOccurs()
Overrides:
getMinOccurs in class Type

setMinOccurs

public void setMinOccurs(long minOccurs)

isFlat

public boolean isFlat()

setFlat

public void setFlat(boolean flat)

hasMaxOccurs

public boolean hasMaxOccurs()
Overrides:
hasMaxOccurs in class Type

hasMinOccurs

public boolean hasMinOccurs()
Overrides:
hasMinOccurs in class Type


Apache CXF