Class InformalTag
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.InformalTag
-
- All Implemented Interfaces:
Serializable
public class InformalTag extends ElementHeader
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionprotected booleanisPrivateTagprotected booleanisPublicprotected Stringnameprotected Stringuser-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
classifications, extendedProperties, guid, type, url
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description InformalTag()Default constructorInformalTag(InformalTag template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.StringgetDescription()Return the tag description null means no description is available.booleangetIsPrivateTag()Return boolean flag to say whether the tag is private or not.booleangetIsPublic()Return if the link to the tag is private to the creating user.StringgetName()Return the name of the tag.StringgetUser()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.voidsetName(String name)Set up the name of the tag.voidsetUser(String user)Set up the user id of the person who created the tag.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
getClassifications, getExtendedProperties, getGUID, getType, getURL, setClassifications, setExtendedProperties, setGUID, setType, setURL
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
Constructor Detail
-
InformalTag
public InformalTag()
Default constructor
-
InformalTag
public InformalTag(InformalTag template)
Copy/clone constructor.- Parameters:
template- element to copy
-
-
Method Detail
-
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
public String 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
public void setUser(String user)
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
public String 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
public void setName(String name)
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
public String getDescription()
Return the tag description null means no description is available.- Returns:
- String tag description
-
setDescription
public void setDescription(String tagDescription)
Set up the tag description null means no description is available.- Parameters:
tagDescription- tag description
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classElementHeader- 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:
equalsin classElementHeader- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classElementHeader- Returns:
- int
-
-