Class InformalTag
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.InformalTag
InformalTag 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.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected boolean
protected boolean
protected String
protected String
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
extendedProperties
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructorInformalTag
(InformalTag 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.boolean
Return if the link to the tag is private to the creating user.getName()
Return the name of the tag.getUser()
Return the user id of the person who created the tag.int
hashCode()
Hash of propertiesvoid
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
setIsPublic
(boolean aPublic) Set up whether the link to the tag is private to the creating user or not.void
Set up the name of the tag.void
Set up the user id of the person who created the tag.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
getExtendedProperties, setExtendedProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
getClassifications, getGUID, setClassifications, setGUID
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Field Details
-
isPublic
protected boolean isPublic -
isPrivateTag
protected boolean isPrivateTag -
name
-
description
-
user
-
-
Constructor Details
-
InformalTag
public InformalTag()Default constructor -
InformalTag
Copy/clone constructor.- Parameters:
template
- element to copy
-
-
Method Details
-
getIsPublic
public boolean getIsPublic()Return if the link to the tag is private to the creating user.- Returns:
- boolean
-
setIsPublic
public void setIsPublic(boolean aPublic) Set up whether the link to the tag is private to the creating user or not.- Parameters:
aPublic
- boolean
-
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
-
getUser
Return the user id of the person who created the tag. Null means the user id is not known.- Returns:
- String tagging user
-
setUser
Set up the user id of the person who created the tag. Null means the user id is not known.- Parameters:
user
- String identifier of the creator of the 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.- Overrides:
toString
in classElementBase
- 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 classElementBase
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCode
in classElementBase
- Returns:
- int
-