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.).intReturns the maximum number of occurrences of this node.intReturns the minimum number of occurrences of this node.Returns the table node referenced by the current node.booleanReturnstrueif the current field is a computed field.booleanReturnstrueif 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(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 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()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
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()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
-