|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.aegis.type.AegisType
org.apache.cxf.aegis.type.basic.ArrayType
public class ArrayType
An ArrayType.
| Field Summary |
|---|
| Fields inherited from class org.apache.cxf.aegis.type.AegisType |
|---|
typeClass |
| Constructor Summary | |
|---|---|
ArrayType()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.cxf.aegis.type.AegisType |
|---|
addToSchemaElement, equals, getSchemaType, getType, getTypeClass, getTypeMapping, hashCode, isAbstract, isFlatArray, isNillable, isWriteOuter, setAbstract, setFlatArray, 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 |
|---|
public ArrayType()
| Method Detail |
|---|
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 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.
DatabindingException
protected Object makeArray(Class<?> arrayType,
Collection<Object> values)
public void writeObject(Object values,
MessageWriter writer,
Context context)
throws DatabindingException
AegisType
writeObject in class AegisTypeDatabindingException
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
DatabindingExceptionpublic void writeSchema(org.apache.ws.commons.schema.XmlSchema root)
AegisType
writeSchema 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()
AegisType
getDependencies 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 AegisType
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||