Class TagProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.feedback.TagProperties
TagProperties stores information about a tag connected to an asset.
InformalTags provide informal classifications to assets
and can be added at any time.
InformalTags have the userId of the person who added the tag, the name of the tag and its description.
The content of the tag is a personal judgement (which is why the user's id is in the tag) and there is no formal review of the tags. However, they can be used as a basis for crowd-sourcing Glossary terms.
Private InformalTags are only returned to the user that created them.
InformalTags have the userId of the person who added the tag, the name of the tag and its description.
The content of the tag is a personal judgement (which is why the user's id is in the tag) and there is no formal review of the tags. However, they can be used as a basis for crowd-sourcing Glossary terms.
Private InformalTags are only returned to the user that created them.
-
Constructor Summary
ConstructorDescriptionDefault constructorTagProperties
(TagProperties template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the tag description null means no description is available.boolean
Return boolean flag to say whether the tag is private or not.getName()
Return the name of the tag.int
hashCode()
Return hash code for this objectvoid
setDescription
(String tagDescription) Set up the tag description null means no description is available.void
setIsPrivateTag
(boolean privateTag) Set up boolean flag to say whether the tag is private or not.void
Set up the name of the tag.toString()
Standard toString method.
-
Constructor Details
-
TagProperties
public TagProperties()Default constructor -
TagProperties
Copy/clone constructor.- Parameters:
template
- element to copy
-
-
Method Details
-
getIsPrivateTag
public boolean getIsPrivateTag()Return boolean flag to say whether the tag is private or not. A private tag is only seen by the person who set it up. Public tags are visible to everyone.- Returns:
- boolean is private flag
-
setIsPrivateTag
public void setIsPrivateTag(boolean privateTag) Set up boolean flag to say whether the tag is private or not. A private tag is only seen by the person who set it up. Public tags are visible to everyone.- Parameters:
privateTag
- indicator of a private tag
-
getName
Return the name of the tag. It is not valid to have a tag with no name. However, there is a point where the tag object is created and the tag name not yet set, so null is a possible response.- Returns:
- String tag name
-
setName
Set up the name of the tag. It is not valid to have a tag with no name. However, there is a point where the tag object is created and the tag name not yet set, so null is a possible response.- Parameters:
name
- String tag name
-
getDescription
Return the tag description null means no description is available.- Returns:
- String tag description
-
setDescription
Set up the tag description null means no description is available.- Parameters:
tagDescription
- tag description
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code for this object
-