org.codehaus.xfire.aegis.type
Class BeanType

java.lang.Object
  |
  +--org.codehaus.xfire.aegis.type.Type
        |
        +--org.codehaus.xfire.aegis.type.BeanType
All Implemented Interfaces:
org.codehaus.xfire.wsdl.WSDLType

public class BeanType
extends Type

The BeanType takes child types and read/writes each of them.

The BeanType can take its own OGNL expression and a key. This is for when you want to take action when reading in an Element. For instance, if you specify the OGNL expression as "new com.company.Bean()" and the key as "bean" it will put a new Bean object in the context with the key "bean".

Author:
Dan Diephouse

Constructor Summary
BeanType()
           
 
Method Summary
 void addChild(Type type)
           
 void configure(org.dom4j.Element configuration, AegisService service, TypeRegistry reg)
           
 java.util.List getChildren()
           
 java.util.Set getDependencies()
           
 java.lang.String getKey()
           
 boolean isComplex()
           
 void read(org.dom4j.Element element, java.util.Map context)
           
 void setChildren(java.util.List children)
           
 void setKey(java.lang.String key)
           
 void write(org.dom4j.Element element, java.util.Map context)
           
 void writeSchema(org.dom4j.Element root)
           
 
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
 

Constructor Detail

BeanType

public BeanType()
Method Detail

write

public void write(org.dom4j.Element element,
                  java.util.Map context)
           throws org.codehaus.xfire.fault.XFireFault
Specified by:
write in class Type
org.codehaus.xfire.fault.XFireFault

read

public void read(org.dom4j.Element element,
                 java.util.Map context)
          throws org.codehaus.xfire.fault.XFireFault
Specified by:
read in class Type
org.codehaus.xfire.fault.XFireFault

getChildren

public java.util.List getChildren()

setChildren

public void setChildren(java.util.List children)

addChild

public void addChild(Type type)

getKey

public java.lang.String getKey()

setKey

public void setKey(java.lang.String key)

isComplex

public boolean isComplex()
Specified by:
isComplex in interface org.codehaus.xfire.wsdl.WSDLType
Overrides:
isComplex in class Type

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)

getDependencies

public java.util.Set getDependencies()
Specified by:
getDependencies in interface org.codehaus.xfire.wsdl.WSDLType
Overrides:
getDependencies in class Type


Copyright © 2004 Codehaus. All Rights Reserved.