Class Field
- java.lang.Object
-
- com.orchestranetworks.addon.dmdv.model.extension.DiagramNode
-
- com.orchestranetworks.addon.dmdv.model.extension.Field
-
- Direct Known Subclasses:
DatasetField,TableField
public abstract class Field extends DiagramNode
Represents a field node.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDataType()Returns a string that describes the data type of the current node (ex.: String, DateTime, Number, etc.).intgetMaxOccurrence()Returns the maximum number of occurrences of this node.intgetMinOccurrence()Returns the minimum number of occurrences of this node.TablegetReferenceTable()Returns the table node referenced by the current node.booleanisComputed()Returnstrueif the current field is a computed field.booleanisForeignKey()Returnstrueif the current node is a foreign key.booleanisHidden()Returnstrueif the current node is hidden.voidsetCardinality(int minOccurrence, int maxOccurrence)Sets the node's cardinality.voidsetComputed(boolean computed)Sets totrueif the current field is a computed field.voidsetDataType(java.lang.String dataType)Sets the node data type.voidsetHidden(boolean hidden)Sets totrueif this node must be displayed.voidsetReferenceTable(Table referenceTable)Sets the table node referenced by the current node.-
Methods inherited from class com.orchestranetworks.addon.dmdv.model.extension.DiagramNode
getLabel, getName, getParent, isDatasetField, isDatasetGroup, isTable, isTableField, isTableGroup, setLabel, setLabel
-
-
-
-
Method Detail
-
getReferenceTable
public Table getReferenceTable()
Returns the table node referenced by the current node.
-
setReferenceTable
public void setReferenceTable(Table referenceTable)
Sets the table node referenced by the current node.- Parameters:
referenceTable- the target table
-
isForeignKey
public boolean isForeignKey()
Returnstrueif the current node is a foreign key.
-
getMinOccurrence
public int getMinOccurrence()
Returns the minimum number of occurrences of this node.
-
getMaxOccurrence
public int getMaxOccurrence()
Returns the maximum number of occurrences of this node.
-
setCardinality
public void setCardinality(int minOccurrence, int maxOccurrence)Sets the node's cardinality.- Parameters:
minOccurrence- minimum number of occurrencemaxOccurrence- maximum number of occurrence
-
getDataType
public java.lang.String getDataType()
Returns a string that describes the data type of the current node (ex.: String, DateTime, Number, etc.).
-
setDataType
public void setDataType(java.lang.String dataType)
Sets the node data type.- Parameters:
dataType- a string that describes the data type
-
isHidden
public boolean isHidden()
Returnstrueif the current node is hidden.
-
setHidden
public void setHidden(boolean hidden)
Sets totrueif this node must be displayed.- Parameters:
hidden- a boolean value
-
isComputed
public boolean isComputed()
Returnstrueif the current field is a computed field.
-
setComputed
public void setComputed(boolean computed)
Sets totrueif the current field is a computed field.- Parameters:
computed- a boolean value
-
-