public class ArrayType extends AegisType
| Constructor and Description |
|---|
ArrayType() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Object> |
createCollection() |
QName |
getComponentName() |
AegisType |
getComponentType()
Get the
AegisType of the elements in the array. |
Set<AegisType> |
getDependencies()
Return a set of AegisType 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 Object |
makeArray(Class<?> arrayType,
Collection<Object> values) |
protected Collection<Object> |
readCollection(MessageReader reader,
QName flatElementName,
Context context)
Read the elements of an array or array-like item.
|
Object |
readObject(MessageReader reader,
Context context)
Read in the XML fragment and create an object.
|
Object |
readObject(MessageReader reader,
QName flatElementName,
Context context,
boolean asArray) |
void |
setComponentName(QName componentName) |
void |
setFlat(boolean flat) |
void |
setMaxOccurs(long maxOccurs) |
void |
setMinOccurs(long minOccurs) |
void |
writeObject(Object values,
MessageWriter writer,
Context context)
Writes the object to the MessageWriter.
|
void |
writeObject(Object values,
MessageWriter writer,
Context context,
QName flatElementName)
Write an array type, using the desired element name in the flattened case.
|
void |
writeSchema(org.apache.ws.commons.schema.XmlSchema 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(Object value,
MessageWriter writer,
Context context,
AegisType type,
String name,
String ns) |
addToSchemaElement, equals, getSchemaType, getType, getTypeClass, getTypeMapping, hashCode, isAbstract, isFlatArray, isNillable, isWriteOuter, setAbstract, setFlatArray, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, usesUtilityTypes, usesXmimepublic Object readObject(MessageReader reader, QName flatElementName, Context context, boolean asArray) throws DatabindingException
DatabindingExceptionpublic Object readObject(MessageReader reader, Context context) throws DatabindingException
AegisTypereadObject in class AegisTypeDatabindingExceptionprotected Collection<Object> createCollection()
protected Collection<Object> readCollection(MessageReader reader, QName flatElementName, Context context) throws DatabindingException
reader - reader to read from.flatElementName - if flat, the elements we are looking for. When we see
something else. we stop.context - context.DatabindingExceptionprotected Object makeArray(Class<?> arrayType, Collection<Object> values)
public void writeObject(Object values, MessageWriter writer, Context context) throws DatabindingException
AegisTypewriteObject in class AegisTypeDatabindingExceptionpublic void writeObject(Object values, MessageWriter writer, Context context, QName flatElementName) throws DatabindingException
values - values to write.writer - writer to sent it to.context - the aegis context.flatElementName - name to use for the element if flat.DatabindingExceptionprotected void writeValue(Object value, MessageWriter writer, Context context, AegisType type, String name, String ns) throws DatabindingException
DatabindingExceptionpublic void writeSchema(org.apache.ws.commons.schema.XmlSchema root)
AegisTypewriteSchema in class AegisTyperoot - root of the XSD document.public boolean isComplex()
isComplex in class AegisTypeAegisType.isComplex()public QName getComponentName()
public void setComponentName(QName componentName)
public Set<AegisType> getDependencies()
AegisTypegetDependencies in class AegisTypeAegisType dependenciesAegisType.getDependencies()public AegisType getComponentType()
AegisType of the elements in the array.public long getMaxOccurs()
getMaxOccurs in class AegisTypepublic void setMaxOccurs(long maxOccurs)
public long getMinOccurs()
getMinOccurs in class AegisTypepublic void setMinOccurs(long minOccurs)
public boolean isFlat()
public void setFlat(boolean flat)
public boolean hasMaxOccurs()
hasMaxOccurs in class AegisTypepublic boolean hasMinOccurs()
hasMinOccurs in class AegisTypeApache CXF