Class Field
java.lang.Object
com.orchestranetworks.addon.dmdv.model.extension.DiagramNode
com.orchestranetworks.addon.dmdv.model.extension.Field
- Direct Known Subclasses:
DatasetField
,TableField
Represents a field node.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns a string that describes the data type of the current node (ex.: String, DateTime, Number, etc.).int
Returns the maximum number of occurrences of this node.int
Returns the minimum number of occurrences of this node.Returns the table node referenced by the current node.boolean
Returnstrue
if the current field is a computed field.boolean
Returnstrue
if the current node is a foreign key.boolean
isHidden()
Returnstrue
if the current node is hidden.void
setCardinality
(int minOccurrence, int maxOccurrence) Sets the node's cardinality.void
setComputed
(boolean computed) Sets totrue
if the current field is a computed field.void
setDataType
(String dataType) Sets the node data type.void
setHidden
(boolean hidden) Sets totrue
if this node must be displayed.void
setReferenceTable
(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 Details
-
getReferenceTable
Returns the table node referenced by the current node. -
setReferenceTable
Sets the table node referenced by the current node.- Parameters:
referenceTable
- the target table
-
isForeignKey
public boolean isForeignKey()Returnstrue
if 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
Returns a string that describes the data type of the current node (ex.: String, DateTime, Number, etc.). -
setDataType
Sets the node data type.- Parameters:
dataType
- a string that describes the data type
-
isHidden
public boolean isHidden()Returnstrue
if the current node is hidden. -
setHidden
public void setHidden(boolean hidden) Sets totrue
if this node must be displayed.- Parameters:
hidden
- a boolean value
-
isComputed
public boolean isComputed()Returnstrue
if the current field is a computed field. -
setComputed
public void setComputed(boolean computed) Sets totrue
if the current field is a computed field.- Parameters:
computed
- a boolean value
-