net.jangaroo.extxml.model
Class ComponentClass

java.lang.Object
  extended by net.jangaroo.extxml.model.DescriptionHolder
      extended by net.jangaroo.extxml.model.ComponentClass

public final class ComponentClass
extends DescriptionHolder

The meta-model of an Ext JS component class.


Constructor Summary
ComponentClass(File srcFile)
           
ComponentClass(List<String> imports, String fullClassName, String superClassName, Json json)
           
ComponentClass(String xtype, String fullClassName)
           
 
Method Summary
 void addCfg(ConfigAttribute cfg)
           
 void addImport(String className)
           
 boolean equals(Object o)
           
 Collection<ConfigAttribute> getAllCfgs()
           
 Collection<ConfigAttribute> getCfgs()
           
 String getClassName()
           
 Collection<ConfigAttribute> getDirectCfgs()
           
 String getElementName()
          Returns the XML element name, this is either just the xtype or, if the xtype is the full qualified class name, the class name (without packages)
 String getFullClassName()
           
 List<String> getImports()
           
 Json getJson()
           
 String getPackageName()
           
 String getRelativeSrcFilePath()
           
 File getSrcFile()
           
 ComponentSuite getSuite()
           
 ComponentClass getSuperClass()
           
 String getSuperClassLocalName()
           
 String getSuperClassName()
           
 String getSuperClassNamespaceUri()
           
 ComponentType getType()
           
 String getXsType()
           
 String getXtype()
           
 int hashCode()
           
static String relativeSrcFilePath(ComponentSuite suite, File srcFile)
           
 void setCfgs(List<ConfigAttribute> cfgs)
           
 void setFullClassName(String fullClassName)
           
 void setImports(List<String> imports)
           
 void setJson(Json json)
           
 void setSuite(ComponentSuite suite)
           
 void setSuperClassLocalName(String superClassLocalName)
           
 void setSuperClassName(String superClassName)
           
 void setSuperClassNamespaceUri(String superClassNamespaceUri)
           
 void setType(ComponentType type)
           
 void setXtype(String xtype)
           
 String toString()
           
 
Methods inherited from class net.jangaroo.extxml.model.DescriptionHolder
getDescription, setDescription
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentClass

public ComponentClass(List<String> imports,
                      String fullClassName,
                      String superClassName,
                      Json json)

ComponentClass

public ComponentClass(String xtype,
                      String fullClassName)

ComponentClass

public ComponentClass(File srcFile)
Method Detail

setSuite

public void setSuite(ComponentSuite suite)

getSuite

public ComponentSuite getSuite()

getRelativeSrcFilePath

public String getRelativeSrcFilePath()

relativeSrcFilePath

public static String relativeSrcFilePath(ComponentSuite suite,
                                         File srcFile)

getSrcFile

public File getSrcFile()

setXtype

public void setXtype(String xtype)

getXtype

public String getXtype()

getElementName

public String getElementName()
Returns the XML element name, this is either just the xtype or, if the xtype is the full qualified class name, the class name (without packages)

Returns:
the xml element name

getImports

public List<String> getImports()

addImport

public void addImport(String className)

setImports

public void setImports(List<String> imports)

setFullClassName

public void setFullClassName(String fullClassName)

getFullClassName

public String getFullClassName()

getClassName

public String getClassName()

getPackageName

public String getPackageName()

getXsType

public String getXsType()

getSuperClassName

public String getSuperClassName()

getSuperClass

public ComponentClass getSuperClass()

setSuperClassName

public void setSuperClassName(String superClassName)

getCfgs

public Collection<ConfigAttribute> getCfgs()

getDirectCfgs

public Collection<ConfigAttribute> getDirectCfgs()

getAllCfgs

public Collection<ConfigAttribute> getAllCfgs()

addCfg

public void addCfg(ConfigAttribute cfg)

setCfgs

public void setCfgs(List<ConfigAttribute> cfgs)

getJson

public Json getJson()

setJson

public void setJson(Json json)

getType

public ComponentType getType()

setType

public void setType(ComponentType type)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

setSuperClassLocalName

public void setSuperClassLocalName(String superClassLocalName)

setSuperClassNamespaceUri

public void setSuperClassNamespaceUri(String superClassNamespaceUri)

getSuperClassLocalName

public String getSuperClassLocalName()

getSuperClassNamespaceUri

public String getSuperClassNamespaceUri()


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