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.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()
Returnstrue
if the current field is a computed field.boolean
isForeignKey()
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(java.lang.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 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()
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
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()
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
-
-