com.ebmwebsourcing.commons.schema.api.abstractElmt
Class AbstractElement<E>
java.lang.Object
com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractSchemaElement<E>
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
| 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 |
schema
protected Schema schema
- the schema
type
protected Type type
- the type of element
referencedElement
protected Element referencedElement
- referenced element
AbstractElement
public AbstractElement(E model,
Schema schema)
- Parameters:
model - schema -
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.