com.ebmwebsourcing.commons.schema.api.abstractElmt
Class AbstractElement<E>

java.lang.Object
  extended by com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractSchemaElement<E>
      extended by com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractElement<E>
All Implemented Interfaces:
Element, SchemaElement, java.io.Serializable
Direct Known Subclasses:
Element

public abstract class AbstractElement<E>
extends AbstractSchemaElement<E>
implements Element

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

Field Summary
protected  Element referencedElement
          referenced element
protected  Schema schema
          the schema
protected  Type type
          the type of element
 
Fields inherited from class com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractSchemaElement
documentation, model
 
Constructor Summary
AbstractElement(E model, Schema schema)
           
 
Method Summary
 org.jdom.Element generateElement(java.lang.Object values)
           
 Schema getSchema()
           
 Type getType()
           
 java.lang.String printXml(java.lang.Object value)
          print the xml with value if value !
 java.lang.String toString()
           
 
Methods inherited from class com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractSchemaElement
createDocumentation, getDocumentation, getModel, setDocumentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ebmwebsourcing.commons.schema.api.Element
getQName
 
Methods inherited from interface com.ebmwebsourcing.commons.schema.api.SchemaElement
createDocumentation, getDocumentation, setDocumentation
 

Field Detail

schema

protected Schema schema
the schema


type

protected Type type
the type of element


referencedElement

protected Element referencedElement
referenced element

Constructor Detail

AbstractElement

public AbstractElement(E model,
                       Schema schema)
Parameters:
model -
schema -
Method Detail

getType

public Type getType()
Specified by:
getType in interface Element

printXml

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

Specified by:
printXml in interface Element
Parameters:
value - the String or the List corresponding to value of simple or complex type
Returns:
the xml
Throws:
SchemaException

getSchema

public Schema getSchema()

generateElement

public org.jdom.Element generateElement(java.lang.Object values)
                                 throws SchemaException
Throws:
SchemaException

toString

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


Copyright © 2008 eBM WebSourcing. All Rights Reserved.