net.jangaroo.exml.model
Class AbstractConfigClassToExmlElementAdapter

java.lang.Object
  extended by net.jangaroo.exml.model.AbstractConfigClassToExmlElementAdapter
All Implemented Interfaces:
ExmlElement
Direct Known Subclasses:
ConfigClassToNewExmlElementAdapter, ConfigClassToOldExmlElementAdapter

public abstract class AbstractConfigClassToExmlElementAdapter
extends Object
implements ExmlElement

An abstract adapter from config class to EXML element.


Field Summary
protected  ConfigClass configClass
           
 
Constructor Summary
AbstractConfigClassToExmlElementAdapter(ConfigClass configClass)
           
 
Method Summary
protected abstract  ExmlElement createAdapter(ConfigClass configClass)
           
 String getDescription()
           
 List<ConfigAttribute> getDirectCfgs()
          Returns only the config attributes that are not already defined in the super element.
 String getFullTypeName()
           
 String getNamespace()
           
 String getNs()
           
 ExmlElement getSuperElement()
          Return the EXML element this element inherits config attributes from, or null if this is a top-level EXML element.
abstract  String getTypeName()
           
 void setNs(String shortNamespace)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.jangaroo.exml.model.ExmlElement
getName, getPackage
 

Field Detail

configClass

protected ConfigClass configClass
Constructor Detail

AbstractConfigClassToExmlElementAdapter

public AbstractConfigClassToExmlElementAdapter(ConfigClass configClass)
Method Detail

getNamespace

public String getNamespace()
Specified by:
getNamespace in interface ExmlElement

setNs

public void setNs(String shortNamespace)
Specified by:
setNs in interface ExmlElement

getNs

public String getNs()
Specified by:
getNs in interface ExmlElement

getTypeName

public abstract String getTypeName()
Specified by:
getTypeName in interface ExmlElement

getFullTypeName

public String getFullTypeName()
Specified by:
getFullTypeName in interface ExmlElement

getDescription

public String getDescription()
Specified by:
getDescription in interface ExmlElement

getDirectCfgs

public List<ConfigAttribute> getDirectCfgs()
Description copied from interface: ExmlElement
Returns only the config attributes that are not already defined in the super element.

Specified by:
getDirectCfgs in interface ExmlElement
Returns:
the list of config attributes

getSuperElement

public ExmlElement getSuperElement()
Description copied from interface: ExmlElement
Return the EXML element this element inherits config attributes from, or null if this is a top-level EXML element.

Specified by:
getSuperElement in interface ExmlElement
Returns:
the super EXML element

createAdapter

protected abstract ExmlElement createAdapter(ConfigClass configClass)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.