org.codehaus.xfire.aegis.type
Class ArrayType
java.lang.Object
|
+--org.codehaus.xfire.aegis.type.Type
|
+--org.codehaus.xfire.aegis.type.ArrayType
- All Implemented Interfaces:
- org.codehaus.xfire.wsdl.WSDLType
- public class ArrayType
- extends Type
- Author:
- Dan Diephouse
Methods inherited from class org.codehaus.xfire.aegis.type.Type |
getDocumentation, getMaxOccurs, getMinOccurs, getName, getOgnl, getQName, getSchemaType, setDocumentation, setMaxOccurs, setMinOccurs, setName, setOgnl, setQName, setSchemaType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayType
public ArrayType()
write
public void write(org.dom4j.Element element,
java.util.Map context)
throws org.codehaus.xfire.fault.XFireFault
- Uses an OGNL expression to find an array. It then puts each
array object in as the key (see
getKey()
for retrieval
when write()'ing in the child type.
- Specified by:
write
in class Type
org.codehaus.xfire.fault.XFireFault
- See Also:
Type.write(org.dom4j.Element, java.util.Map)
read
public void read(org.dom4j.Element element,
java.util.Map context)
throws org.codehaus.xfire.fault.XFireFault
- Semantics are still under development, but here is how it works
currently:
An ArrayList is built for the elements of the array.
The number of elements in the array are put in as "key.length". The current
index of the array is put in as "key.index". Each child is put in the
array via the OGNL expression (getOgnl()
). Finally,
the array is put in the context as "key". (Where key in all of this
refers to the key you specify.)
- Specified by:
read
in class Type
org.codehaus.xfire.fault.XFireFault
- See Also:
Type.read(org.dom4j.Element, java.util.Map)
isComplex
public boolean isComplex()
- Specified by:
isComplex
in interface org.codehaus.xfire.wsdl.WSDLType
- Overrides:
isComplex
in class Type
getDependencies
public java.util.Set getDependencies()
- Specified by:
getDependencies
in interface org.codehaus.xfire.wsdl.WSDLType
- Overrides:
getDependencies
in class Type
getChildType
public Type getChildType()
setChildType
public void setChildType(Type childType)
getKey
public java.lang.String getKey()
setKey
public void setKey(java.lang.String key)
writeSchema
public void writeSchema(org.dom4j.Element root)
- Specified by:
writeSchema
in interface org.codehaus.xfire.wsdl.WSDLType
- Specified by:
writeSchema
in class Type
- See Also:
Type.writeSchema(org.dom4j.Element)
configure
public void configure(org.dom4j.Element configuration,
AegisService service,
TypeRegistry reg)
- Specified by:
configure
in class Type
- See Also:
org.codehaus.xfire.aegis.type.Type#configure(org.dom4j.Element)
Copyright © 2004 Codehaus. All Rights Reserved.