org.odpi.openmetadata.accessservices.digitalarchitecture.properties.SubjectAreaClassificationProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of digital-architecture-api Show documentation
Show all versions of digital-architecture-api Show documentation
API classes for the Digital Architecture Open Metadata Access Service (OMAS).
The newest version!
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.digitalarchitecture.properties;
import java.util.Objects;
/**
* A subject area defines a group of definitions for governing assets related to a specific topic. The subject area definition defines
* how the assets related to the topic should be managed.
*/
public class SubjectAreaClassificationProperties extends ClassificationProperties
{
private String subjectAreaName = null;
/**
* Default constructor
*/
public SubjectAreaClassificationProperties()
{
super();
}
/**
* Copy/clone constructor
*
* @param template object to copy
*/
public SubjectAreaClassificationProperties(SubjectAreaClassificationProperties template)
{
super(template);
if (template != null)
{
this.subjectAreaName = template.getSubjectAreaName();
}
}
/**
* Return the name of the subject area - this is added to the SubjectArea classification.
*
* @return string name
*/
public String getSubjectAreaName()
{
return subjectAreaName;
}
/**
* Set up the name of the subject area - this is added to the SubjectArea classification.
*
* @param subjectAreaName string name
*/
public void setSubjectAreaName(String subjectAreaName)
{
this.subjectAreaName = subjectAreaName;
}
/**
* JSON-style toString
*
* @return return string containing the property names and values
*/
@Override
public String toString()
{
return "SubjectAreaClassificationProperties{" +
"effectiveFrom=" + getEffectiveFrom() +
", effectiveTo=" + getEffectiveTo() +
", extendedProperties=" + getExtendedProperties() +
", subjectAreaName='" + subjectAreaName + '\'' +
'}';
}
/**
* Return comparison result based on the content of the properties.
*
* @param objectToCompare test object
* @return result of comparison
*/
@Override
public boolean equals(Object objectToCompare)
{
if (this == objectToCompare)
{
return true;
}
if (! (objectToCompare instanceof SubjectAreaClassificationProperties))
{
return false;
}
if (! super.equals(objectToCompare))
{
return false;
}
SubjectAreaClassificationProperties that = (SubjectAreaClassificationProperties) objectToCompare;
return Objects.equals(subjectAreaName, that.subjectAreaName);
}
/**
* Return hash code for this object
*
* @return int hash code
*/
@Override
public int hashCode()
{
return Objects.hash(super.hashCode(), getSubjectAreaName());
}
}