public interface IClassHolder
Modifier and Type | Method and Description |
---|---|
void |
addField(org.eclipse.jdt.core.dom.FieldDeclaration field)
Add field declaration to class.
|
boolean |
addImport(java.lang.String type)
Add import for class.
|
void |
addInterface(java.lang.String interf)
Add an interface to this class definition.
|
void |
addMethod(org.eclipse.jdt.core.dom.MethodDeclaration method)
Add method declaration to class.
|
void |
addType(org.eclipse.jdt.core.dom.TypeDeclaration type)
Add inner type declaration to class.
|
org.eclipse.jdt.core.dom.FieldDeclaration[] |
getFields()
Get the fields defined in this class.
|
java.lang.String |
getFullName()
Get fully-qualified name.
|
java.lang.String[] |
getInterfaces()
Get the interfaces implemented by this class.
|
org.eclipse.jdt.core.dom.MethodDeclaration[] |
getMethods()
Get the methods defined in this class.
|
java.lang.String |
getName()
Get simple name.
|
IClassHolder |
getOuterClass()
Get containing class of inner class.
|
java.lang.String |
getSuperClassName()
Get name of base class to be extended.
|
java.lang.String |
getTypeName(java.lang.String type)
Get the name to be used for a type.
|
boolean |
isSuperClassForced()
Check if superclass is forced by schema model.
|
void |
setListImplementation(java.lang.String list)
Set name of list implementation class to be used for initializing instances.
|
void |
setSuperClassName(java.lang.String base)
Set name of base class to be extended.
|
java.lang.String getName()
java.lang.String getFullName()
IClassHolder getOuterClass()
null
if not an inner classboolean isSuperClassForced()
true
if superclass forced, false
if notjava.lang.String getSuperClassName()
null
if none)void setSuperClassName(java.lang.String base)
isSuperClassForced()
returns
false
.base
- fully-qualified class name of base class (null
if none)void setListImplementation(java.lang.String list)
list
- fully-qualified class name of list implementation (non-null
)boolean addImport(java.lang.String type)
type
- fully qualified class nametrue
if added as importjava.lang.String getTypeName(java.lang.String type)
type
- fully-qualified type namejava.lang.String[] getInterfaces()
org.eclipse.jdt.core.dom.FieldDeclaration[] getFields()
org.eclipse.jdt.core.dom.MethodDeclaration[] getMethods()
void addInterface(java.lang.String interf)
interf
- interface typevoid addField(org.eclipse.jdt.core.dom.FieldDeclaration field)
field
- void addMethod(org.eclipse.jdt.core.dom.MethodDeclaration method)
method
- void addType(org.eclipse.jdt.core.dom.TypeDeclaration type)
type
-