com.ebmwebsourcing.commons.schema.api.abstractElmt
Class AbstractType<E extends Annotated,V>

java.lang.Object
  extended by com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractSchemaElement
      extended by com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractType<E,V>
All Implemented Interfaces:
SchemaElement, Type, java.io.Serializable
Direct Known Subclasses:
ComplexType, SimpleType

public abstract class AbstractType<E extends Annotated,V>
extends AbstractSchemaElement
implements Type

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

Field Summary
protected  java.util.List<Attribute> attributes
          the list of attributes
protected  org.jdom.output.XMLOutputter outputter
          the outputter
protected  Schema schema
          the shema
 
Fields inherited from class com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractSchemaElement
documentation, model
 
Constructor Summary
AbstractType(E model, Schema schema)
           
 
Method Summary
 void addAttribute(Attribute elmt)
           
 Attribute getAttribute(java.lang.String element)
           
 java.util.List<Attribute> getAttributes()
           
abstract  java.lang.String printXml(Element e, V 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.Type
getQName
 
Methods inherited from interface com.ebmwebsourcing.commons.schema.api.SchemaElement
createDocumentation, getDocumentation, setDocumentation
 

Field Detail

schema

protected Schema schema
the shema


outputter

protected org.jdom.output.XMLOutputter outputter
the outputter


attributes

protected java.util.List<Attribute> attributes
the list of attributes

Constructor Detail

AbstractType

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

printXml

public abstract java.lang.String printXml(Element e,
                                          V value)
                                   throws SchemaException
Throws:
SchemaException

getAttributes

public java.util.List<Attribute> getAttributes()
Specified by:
getAttributes in interface Type

getAttribute

public Attribute getAttribute(java.lang.String element)
Specified by:
getAttribute in interface Type

addAttribute

public void addAttribute(Attribute elmt)
Specified by:
addAttribute in interface Type

toString

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


Copyright © 2008 eBM WebSourcing. All Rights Reserved.