Class PortProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.assets.processes.PortProperties
PortProperties is a class for representing a generic port for a process. The typeName is set to indicate it is either a
PortAlias (part of a choreographing process) or PortImplementation (part of an implemented process).
-
Constructor Summary
ConstructorDescriptionDefault constructorPortProperties
(PortProperties template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return a human memorable name for the port.Return the direction of data flow of the port.int
hashCode()
Return hash code based on properties.void
setDisplayName
(String displayName) Set up a human memorable name for the port.void
setPortType
(PortType portType) Set up the direction of data flow of the port.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getQualifiedName, getVendorProperties, setAdditionalProperties, setQualifiedName, setVendorProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, getTypeName, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setTypeName
-
Constructor Details
-
PortProperties
public PortProperties()Default constructor -
PortProperties
Copy/clone constructor.- Parameters:
template
- object to copy
-
-
Method Details
-
getDisplayName
Return a human memorable name for the port.- Returns:
- string name
-
setDisplayName
Set up a human memorable name for the port.- Parameters:
displayName
- string name
-
getPortType
Return the direction of data flow of the port.- Returns:
- portType enum
-
setPortType
Set up the direction of data flow of the port.- Parameters:
portType
- portType enum
-
toString
Standard toString method.- Overrides:
toString
in classReferenceableProperties
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classReferenceableProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classReferenceableProperties
- Returns:
- int
-