Class DataFieldLink
java.lang.Object
org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
org.odpi.openmetadata.frameworks.discovery.properties.DataFieldLink
- All Implemented Interfaces:
Serializable
DataFieldLink describes the properties of a peer to peer relationship between data fields.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructorDataFieldLink
(DataFieldLink template) Copy clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return any additional properties.Return description of this data field link.int
Return the maximum number of instances allowed for this data field link.int
Return this minimum number of instances allowed for this data field link.getName()
Return the name of this data field link.int
Return the logical end of the relationship.Return the name of this relationship between data fields.int
hashCode()
Create a hash code for this element type.void
setAdditionalProperties
(Map<String, String> additionalProperties) Set up any additional properties.void
setDescription
(String description) Set up the description of this data field link.void
setMaxCardinality
(int maxCardinality) Set up the maximum number of instances allowed for this data field link.void
setMinCardinality
(int minCardinality) Set up the minimum number of instances allowed for this data field link.void
Set up the name of this data field link.void
setRelationshipEnd
(int relationshipEnd) Set up the logical end of the relationship.void
setRelationshipTypeName
(String relationshipTypeName) Set up the name of this relationship between data fields.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
getElementHeader, getExtendedProperties, getHeaderVersion, getTypeName, setElementHeader, setExtendedProperties, setHeaderVersion, setTypeName
-
Constructor Details
-
DataFieldLink
public DataFieldLink()Default constructor -
DataFieldLink
Copy clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getRelationshipEnd
public int getRelationshipEnd()Return the logical end of the relationship. Use 0 if this does not make sense.- Returns:
- integer
-
setRelationshipEnd
public void setRelationshipEnd(int relationshipEnd) Set up the logical end of the relationship. Use 0 if this does not make sense.- Parameters:
relationshipEnd
- integer
-
getRelationshipTypeName
Return the name of this relationship between data fields.- Returns:
- string name
-
setRelationshipTypeName
Set up the name of this relationship between data fields.- Parameters:
relationshipTypeName
- string name
-
getName
Return the name of this data field link.- Returns:
- string name
-
setName
Set up the name of this data field link.- Parameters:
name
- string name
-
getDescription
Return description of this data field link.- Returns:
- text
-
setDescription
Set up the description of this data field link.- Parameters:
description
- text
-
getMinCardinality
public int getMinCardinality()Return this minimum number of instances allowed for this data field link.- Returns:
- int
-
setMinCardinality
public void setMinCardinality(int minCardinality) Set up the minimum number of instances allowed for this data field link.- Parameters:
minCardinality
- int
-
getMaxCardinality
public int getMaxCardinality()Return the maximum number of instances allowed for this data field link.- Returns:
- int (-1 means infinite)
-
setMaxCardinality
public void setMaxCardinality(int maxCardinality) Set up the maximum number of instances allowed for this data field link.- Parameters:
maxCardinality
- int (-1 means infinite)
-
getAdditionalProperties
Return any additional properties.- Returns:
- map of property name to property value
-
setAdditionalProperties
Set up any additional properties.- Parameters:
additionalProperties
- map of property name to property value
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-