Class RelationshipProperties

java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
Direct Known Subclasses:
AdjacentLocationProperties, AgreementActorProperties, AgreementItemProperties, AssetConnectionProperties, AssetLocationProperties, AssignmentScopeProperties, AssociatedGroupProperties, BusinessCapabilityTeamProperties, CapabilityDeploymentProperties, CertificationProperties, CollectionMembershipProperties, CommunityMembershipProperties, ContextEventImpactProperties, ContractLinkProperties, ControlFlowProperties, DatabaseForeignKeyProperties, DataClassAssignmentProperties, DataFlowProperties, DataMappingProperties, DataSetContentProperties, DependentContextEventProperties, DeploymentProperties, DigitalProductDependencyProperties, DigitalProductManagementProperties, DigitalSubscriberProperties, DigitalSupportProperties, DuplicateProperties, EmbeddedConnectionProperties, ExternalReferenceLinkProperties, FeedbackProperties, ForeignKeyProperties, GlossaryTermCategorization, GlossaryTermRelationship, GovernanceDefinitionMetricProperties, GovernanceResultsProperties, ImplementationResourceProperties, ImplementedByProperties, InformationSupplyChainLinkProperties, ITInfrastructureProfileProperties, ITProfileRoleAppointmentProperties, LicenseProperties, LineageMappingProperties, MemberDataFieldProperties, NestedLocationProperties, PeerDefinitionProperties, PeerProperties, PersonRoleAppointmentProperties, ProcessCallProperties, ProcessHierarchyProperties, ProfileIdentityProperties, ProfileLocationProperties, ProjectTeamProperties, ReferenceValueAssignmentProperties, RelatedContextEventProperties, ResourceListProperties, SchemaAttributeRelationshipProperties, SemanticAssignmentProperties, ServerAssetUseProperties, SolutionBlueprintCompositionProperties, SolutionComponentActorProperties, SolutionDesignProperties, SolutionLinkingWireProperties, StakeholderProperties, StakeholderProperties, SupportingDefinitionProperties, TeamLeadershipProperties, TeamMembershipProperties, TeamRoleAppointmentProperties, TeamStructureProperties, ValidValueAssignmentProperties, ValidValueMembershipProperties, ValidValuesImplProperties, ValidValuesMappingProperties

public class RelationshipProperties extends Object
RelationshipProperties provides the base class for relationships items. This provides extended properties with the ability to set effectivity dates.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    Copy/clone constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Return the date/time that this element is effective from (null means effective from the epoch).
    Return the date/time that element is effective to (null means that it is effective indefinitely into the future).
    Return the properties that have been defined for a subtype of this object that are not supported explicitly by this bean.
    Return the name of the open metadata type for this metadata element.
    int
    Return hash code based on properties.
    void
    setEffectiveFrom(Date effectiveFrom)
    Set up the date/time that this element is effective from (null means effective from the epoch).
    void
    setEffectiveTo(Date effectiveTo)
    Set the date/time that element is effective to (null means that it is effective indefinitely into the future).
    void
    setExtendedProperties(Map<String,Object> extendedProperties)
    Set up the properties that have been defined for a subtype of this object that are not supported explicitly by this bean.
    void
    setTypeName(String typeName)
    Set up the name of the open metadata type for this element.
    Standard toString method.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RelationshipProperties

      public RelationshipProperties()
      Default constructor
    • RelationshipProperties

      public RelationshipProperties(RelationshipProperties template)
      Copy/clone constructor. Retrieves values from the supplied template
      Parameters:
      template - element to copy
  • Method Details

    • getEffectiveFrom

      public Date getEffectiveFrom()
      Return the date/time that this element is effective from (null means effective from the epoch).
      Returns:
      date object
    • setEffectiveFrom

      public void setEffectiveFrom(Date effectiveFrom)
      Set up the date/time that this element is effective from (null means effective from the epoch).
      Parameters:
      effectiveFrom - date object
    • getEffectiveTo

      public Date getEffectiveTo()
      Return the date/time that element is effective to (null means that it is effective indefinitely into the future).
      Returns:
      date object
    • setEffectiveTo

      public void setEffectiveTo(Date effectiveTo)
      Set the date/time that element is effective to (null means that it is effective indefinitely into the future).
      Parameters:
      effectiveTo - date object
    • getTypeName

      public String getTypeName()
      Return the name of the open metadata type for this metadata element.
      Returns:
      string name
    • setTypeName

      public void setTypeName(String typeName)
      Set up the name of the open metadata type for this element.
      Parameters:
      typeName - string name
    • getExtendedProperties

      public Map<String,Object> getExtendedProperties()
      Return the properties that have been defined for a subtype of this object that are not supported explicitly by this bean.
      Returns:
      property map
    • setExtendedProperties

      public void setExtendedProperties(Map<String,Object> extendedProperties)
      Set up the properties that have been defined for a subtype of this object that are not supported explicitly by this bean.
      Parameters:
      extendedProperties - property map
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      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:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int