|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.metadata.Declaration
de.mguennewig.pobjects.metadata.FormDecl
public class FormDecl
Declaration of a form.
SelectExpr| Field Summary | |
|---|---|
static int |
GENERATED_HTML_NAME
|
static int |
GENERATED_SWING_NAME
|
static int |
HTML_CLASS_NAME
|
static int |
INTERFACE_ALL
|
static int |
INTERFACE_HTML
|
static int |
INTERFACE_SWING
|
static int |
PARAMETER_PREFIX
|
static int |
SWING_CLASS_NAME
|
| Fields inherited from class de.mguennewig.pobjects.metadata.Declaration |
|---|
ARGUMENT_CONSTRUCTOR, CLASS_NAME, DESCRIPTOR, GENERATED_CLASS_NAME, POINTER_TYPE, SQL_ARG_COLON, SQL_ARG_DOLLAR, SQL_ARG_NONE, SQL_ARG_QUESTION_MARK |
| Constructor Summary | |
|---|---|
FormDecl(java.lang.String name,
FormDecl baseForm,
FormEntry[] entries)
Creates a new form declaration for all supported interfaces. |
|
FormDecl(java.lang.String name,
int formInterface,
FormDecl baseForm,
FormEntry[] entries)
Creates a new form declaration. |
|
| Method Summary | |
|---|---|
FormDecl |
getBaseForm()
|
FormEntry[] |
getEntries()
|
FormEntry |
getEntry(int index)
Return form entry for index. |
FormEntry |
getEntry(java.lang.String name)
Return form entry with the given name. |
int |
getFormInterface()
|
int |
getNumEntries()
Returns number of entries of this form, inclusive all entries inherited from any base forms. |
java.lang.String |
name(int variant)
Returns different names depending on variant for the code
generator. |
| Methods inherited from class de.mguennewig.pobjects.metadata.Declaration |
|---|
getDescription, getModule, getName, setDescription, setModule, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int INTERFACE_HTML
public static final int INTERFACE_SWING
public static final int INTERFACE_ALL
public static final int GENERATED_HTML_NAME
public static final int GENERATED_SWING_NAME
public static final int HTML_CLASS_NAME
public static final int SWING_CLASS_NAME
public static final int PARAMETER_PREFIX
| Constructor Detail |
|---|
public FormDecl(java.lang.String name,
FormDecl baseForm,
FormEntry[] entries)
All supported interfaces means all of baseForm if
given.
public FormDecl(java.lang.String name,
int formInterface,
FormDecl baseForm,
FormEntry[] entries)
java.lang.IllegalArgumentException - if formInterface specifies
more interfaces then the given baseForm.| Method Detail |
|---|
public final int getFormInterface()
public final FormDecl getBaseForm()
public final int getNumEntries()
public final FormEntry getEntry(int index)
index. If the form has no base form,
this is equivalent to getEntries()[index].
public final FormEntry getEntry(java.lang.String name)
getEntry(int)public final FormEntry[] getEntries()
public java.lang.String name(int variant)
variant for the code
generator.
name in class Declarationvariant | return value |
|---|---|
Declaration.DESCRIPTOR |
form< |
Declaration.POINTER_TYPE |
< |
Declaration.CLASS_NAME |
< |
Declaration.GENERATED_CLASS_NAME |
PClass< |
HTML_CLASS_NAME |
depends on getFormInterface() |
GENERATED_HTML_NAME |
depends on getFormInterface() |
SWING_CLASS_NAME |
depends on getFormInterface() |
GENERATED_SWING_NAME |
depends on getFormInterface() |
PARAMETER_PREFIX |
< |
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||