org.ow2.easywsdl.schema.api.abstractElmt
Class AbstractElementImpl<E,T extends AbsItfType>

java.lang.Object
  extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl<E>
      extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractElementImpl<E,T>
All Implemented Interfaces:
java.io.Serializable, AbsItfElement<T>, SchemaElement
Direct Known Subclasses:
ElementImpl

public abstract class AbstractElementImpl<E,T extends AbsItfType>
extends AbstractSchemaElementImpl<E>
implements AbsItfElement<T>

Author:
Nicolas Salatge - eBM WebSourcing
See Also:
Serialized Form

Field Summary
protected  AbsItfElement referencedElement
          referenced element
protected  T type
          the type of element
 
Fields inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
documentation, model, parent
 
Constructor Summary
AbstractElementImpl(E model, AbstractSchemaElementImpl parent)
           
 
Method Summary
 org.jdom.Element generateElement(java.lang.Object values)
           
 AbstractSchemaElementImpl getParent()
           
 T getType()
           
 java.lang.String printXml(java.lang.Object value)
          print the xml with value if value !
 void setType(T type)
           
 java.lang.String toString()
           
 
Methods inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
createDocumentation, getDocumentation, getModel, getOtherAttributes, getSchema, getTopParent, setDocumentation, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.easywsdl.schema.api.absItf.AbsItfElement
getMaxOccurs, getMinOccurs, getQName, getRef, setMaxOccurs, setMinOccurs, setQName, setRef
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, getDocumentation, getOtherAttributes, setDocumentation
 

Field Detail

type

protected T extends AbsItfType type
the type of element


referencedElement

protected AbsItfElement referencedElement
referenced element

Constructor Detail

AbstractElementImpl

public AbstractElementImpl(E model,
                           AbstractSchemaElementImpl parent)
Parameters:
model -
parent -
Method Detail

getType

public T getType()
Specified by:
getType in interface AbsItfElement<T extends AbsItfType>

setType

public void setType(T type)
Specified by:
setType in interface AbsItfElement<T extends AbsItfType>

printXml

public java.lang.String printXml(java.lang.Object value)
                          throws SchemaException
Description copied from interface: AbsItfElement
print the xml with value if value != null

Specified by:
printXml in interface AbsItfElement<T extends AbsItfType>
Parameters:
value - the String or the List corresponding to value of simple or complex type
Returns:
the xml
Throws:
SchemaException

getParent

public AbstractSchemaElementImpl getParent()
Overrides:
getParent in class AbstractSchemaElementImpl<E>

generateElement

public org.jdom.Element generateElement(java.lang.Object values)
                                 throws SchemaException
Specified by:
generateElement in interface AbsItfElement<T extends AbsItfType>
Throws:
SchemaException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008 eBM WebSourcing. All Rights Reserved.