|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cmc.tcgui.datadef.TCEntry
cz.cmc.tcgui.datadef.AttributeEntry
Abstract parent for AttributeGroup and Attribute, implements their common functionality. AttributeEntry is identified by it's position in the data definition hierarchy. It has also an id parameter, but it serves only for generators, checkers and exporters (not for unique identification).
| Field Summary | |
protected boolean |
generated
The 'generated' flag |
protected boolean |
interpreted
The 'interpreted' flag |
protected int |
maxInstances
Maximum number of required instances of this AttributeEntry to be used. |
protected int |
minInstances
Minimum number of required instances of this AttributeEntry to be used. |
protected AttributeGroup |
parent
Reference to the parent AttributeGroup |
protected int |
position
AttributeEntry position within the attribute group |
static int |
UNLIMITED_INSTANCES
Constant to be used with attribute instance count specification. |
protected boolean |
virtual
The 'virtual' flag |
| Fields inherited from class cz.cmc.tcgui.datadef.TCEntry |
description, id, label, name |
| Constructor Summary | |
AttributeEntry()
Creates a new AttributeEntry |
|
AttributeEntry(String id,
String name,
String label)
Creates a new AttributeEntry with given id, name and label |
|
| Method Summary | |
Object |
clone()
Clones this AttributeEntry |
boolean |
getGenerated()
Checks whether this AttributeEntry is generated. |
boolean |
getInterpreted()
Checks whether this AttributeEntry is interpreted. |
int |
getMaxInstances()
|
int |
getMinInstances()
|
AttributeGroup |
getParent()
Returns parent of this AttributeEntry. |
int |
getPosition()
Gets the position within parent AttributeGroup |
boolean |
getVirtual()
Checks whether this AttributeEntry is virtual. |
void |
setGenerated(boolean generated)
Sets the generated flag. |
void |
setInterpreted(boolean interpreted)
Sets the interpreted flag. |
void |
setMaxInstances(int maxInstances)
Sets the maximal number of instances |
void |
setMinInstances(int minInstances)
Sets the minimal number of instances |
void |
setParent(AttributeGroup parent)
Sets parent of this AttributeEntry |
protected void |
setPosition(int position)
Sets the position within AttributeGroup. |
void |
setVirtual(boolean virtual)
Sets the virtual flag. |
String |
toString()
Creates and returns string representation of this TCEntry. |
| Methods inherited from class cz.cmc.tcgui.datadef.TCEntry |
getDescription, getID, getLabel, getName, setDescription, setID, setLabel, setName |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int UNLIMITED_INSTANCES
protected AttributeGroup parent
protected int position
protected boolean generated
setGenerated(boolean)protected boolean virtual
setVirtual(boolean)protected boolean interpreted
setInterpreted(boolean)protected int minInstances
protected int maxInstances
minInstances| Constructor Detail |
public AttributeEntry()
public AttributeEntry(String id,
String name,
String label)
id - id of the AttributeEntryname - name of the AttributeEntrylabel - human-readable label of the AttributeEntry| Method Detail |
public AttributeGroup getParent()
parentpublic void setParent(AttributeGroup parent)
parent - parent to be setparentpublic int getPosition()
positionprotected void setPosition(int position)
positionpublic boolean getGenerated()
public void setGenerated(boolean generated)
generated - New value for the generated flagpublic boolean getVirtual()
public void setVirtual(boolean virtual)
virtual - New value for the virtual flagpublic boolean getInterpreted()
public void setInterpreted(boolean interpreted)
interpreted - New value for the interpreted flagpublic int getMinInstances()
minInstancespublic void setMinInstances(int minInstances)
minInstances - new minimal number of instancespublic int getMaxInstances()
maxInstancespublic void setMaxInstances(int maxInstances)
maxInstances - new maximal number of instancespublic Object clone()
clone in class TCEntrypublic String toString()
TCEntry
toString in class TCEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||