Class InformalTag
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.InformalTag
- All Implemented Interfaces:
Serializable
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected booleanprotected Stringprotected StringFields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
extendedProperties, urlFields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorInformalTag(InformalTag template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the tag description null means no description is available.booleanReturn boolean flag to say whether the tag is private or not.booleanReturn 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.inthashCode()Hash of propertiesvoidsetDescription(String tagDescription) Set up the tag description null means no description is available.voidsetIsPrivateTag(boolean privateTag) Set up boolean flag to say whether the tag is private or not.voidsetIsPublic(boolean aPublic) Set up whether the link to the tag is private to the creating user or not.voidSet up the name of the tag.voidSet 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, getURL, setExtendedProperties, setURLMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
getClassifications, getGUID, setClassifications, setGUIDMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
getOrigin, getStatus, getType, getVersions, setOrigin, setStatus, setType, setVersionsMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
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:
toStringin 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:
equalsin classElementBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCodein classElementBase- Returns:
- int
-