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, usesXmime
public Object readObject(MessageReader reader, QName flatElementName, Context context, boolean asArray) throws DatabindingException
DatabindingException
public Object readObject(MessageReader reader, Context context) throws DatabindingException
AegisType
readObject
in class AegisType
DatabindingException
protected 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.DatabindingException
protected Object makeArray(Class<?> arrayType, Collection<Object> values)
public void writeObject(Object values, MessageWriter writer, Context context) throws DatabindingException
AegisType
writeObject
in class AegisType
DatabindingException
public 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.DatabindingException
protected void writeValue(Object value, MessageWriter writer, Context context, AegisType type, String name, String ns) throws DatabindingException
DatabindingException
public void writeSchema(org.apache.ws.commons.schema.XmlSchema root)
AegisType
writeSchema
in class AegisType
root
- root of the XSD document.public boolean isComplex()
isComplex
in class AegisType
AegisType.isComplex()
public QName getComponentName()
public void setComponentName(QName componentName)
public Set<AegisType> getDependencies()
AegisType
getDependencies
in class AegisType
AegisType
dependenciesAegisType.getDependencies()
public AegisType getComponentType()
AegisType
of the elements in the array.public long getMaxOccurs()
getMaxOccurs
in class AegisType
public void setMaxOccurs(long maxOccurs)
public long getMinOccurs()
getMinOccurs
in class AegisType
public void setMinOccurs(long minOccurs)
public boolean isFlat()
public void setFlat(boolean flat)
public boolean hasMaxOccurs()
hasMaxOccurs
in class AegisType
public boolean hasMinOccurs()
hasMinOccurs
in class AegisType
Apache CXF