public abstract class Field extends DiagramNode
| Modifier and Type | Method and Description |
|---|---|
String |
getDataType()
Returns a string that describes the data type of the current node (ex.: String, DateTime, Number, etc.).
|
int |
getMaxOccurrence()
Returns the maximum number of occurrences of this node.
|
int |
getMinOccurrence()
Returns the minimum number of occurrences of this node.
|
Table |
getReferenceTable()
Returns the table node referenced by the current node.
|
boolean |
isComputed()
Returns
true if the current field is a computed field. |
boolean |
isForeignKey()
Returns
true if the current node is a foreign key. |
boolean |
isHidden()
Returns
true if the current node is hidden. |
void |
setCardinality(int minOccurrence,
int maxOccurrence)
Sets the node's cardinality.
|
void |
setComputed(boolean computed)
Sets to
true if the current field is a computed field. |
void |
setDataType(String dataType)
Sets the node data type.
|
void |
setHidden(boolean hidden)
Sets to
true if this node must be displayed. |
void |
setReferenceTable(Table referenceTable)
Sets the table node referenced by the current node.
|
getLabel, getName, getParent, isDatasetField, isDatasetGroup, isTable, isTableField, isTableGroup, setLabel, setLabelpublic Table getReferenceTable()
public void setReferenceTable(Table referenceTable)
referenceTable - the target tablepublic boolean isForeignKey()
true if the current node is a foreign key.public int getMinOccurrence()
public int getMaxOccurrence()
public void setCardinality(int minOccurrence,
int maxOccurrence)
minOccurrence - minimum number of occurrencemaxOccurrence - maximum number of occurrencepublic String getDataType()
public void setDataType(String dataType)
dataType - a string that describes the data typepublic boolean isHidden()
true if the current node is hidden.public void setHidden(boolean hidden)
true if this node must be displayed.hidden - a boolean valuepublic boolean isComputed()
true if the current field is a computed field.public void setComputed(boolean computed)
true if the current field is a computed field.computed - a boolean value