Class PortProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetmanager.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.assetmanager.properties.PortProperties
-
- All Implemented Interfaces:
Serializable
public class PortProperties extends ReferenceableProperties
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).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PortProperties()Default constructorPortProperties(PortProperties template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.StringgetDisplayName()Return a human memorable name for the port.PortTypegetPortType()Return the direction of data flow of the port.inthashCode()Return hash code based on properties.voidsetDisplayName(String displayName)Set up a human memorable name for the port.voidsetPortType(PortType portType)Set up the direction of data flow of the port.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.accessservices.assetmanager.properties.ReferenceableProperties
getAdditionalProperties, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
PortProperties
public PortProperties()
Default constructor
-
PortProperties
public PortProperties(PortProperties template)
Copy/clone constructor.- Parameters:
template- object to copy
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Return a human memorable name for the port.- Returns:
- string name
-
setDisplayName
public void setDisplayName(String displayName)
Set up a human memorable name for the port.- Parameters:
displayName- string name
-
getPortType
public PortType getPortType()
Return the direction of data flow of the port.- Returns:
- portType enum
-
setPortType
public void setPortType(PortType portType)
Set up the direction of data flow of the port.- Parameters:
portType- portType enum
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classReferenceableProperties- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classReferenceableProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return hash code based on properties.- Overrides:
hashCodein classReferenceableProperties- Returns:
- int
-
-