Class Node
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.subjectarea.properties.objects.graph.Node
-
- All Implemented Interfaces:
Serializable,OmasObject
- Direct Known Subclasses:
Category,Glossary,GovernedNode,Project
public class Node extends Object implements Serializable, OmasObject
A Node is an entity in the subject area omas that has a typeNodeType, name, qualified name and description. A node may be in one or more projects.Nodes can be connected with
Relationships to form graphs. As they may be visualised, so a node has an associated icon.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Classification>classificationsprotected NodeTypenodeType
-
Constructor Summary
Constructors Constructor Description Node()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Map<String,String>getAdditionalProperties()Get the additional properties The additional properties are OMRS attributes that exist in the Node, due to a repository defining a Type that subclasses the open types and adds additional properties.List<Classification>getClassifications()List of associated classificationsStringgetDescription()Description of the nodeLonggetEffectiveFromTime()Return the date/time that this node should start to be used (null means it can be used from creationTime).LonggetEffectiveToTime()Return the date/time that this node should no longer be used.Set<IconSummary>getIcons()icon summaryStringgetName()The name of the nodeNodeTypegetNodeType()Node typeStringgetQualifiedName()The qualified name of the node.SystemAttributesgetSystemAttributes()inthashCode()booleanisReadOnly()The Node is readOnlyprotected voidprocessClassification(Classification classification)voidsetAdditionalProperties(Map<String,String> additionalProperties)Set the additional properties.voidsetClassifications(List<Classification> classifications)If governance action classifications (Retention, Confidence, Confidentiality or Criticality) are supplied then remove them from the classifications and add to the appropriate named field.voidsetDescription(String description)voidsetEffectiveFromTime(Long effectiveFromTime)voidsetEffectiveToTime(Long effectiveToTime)voidsetIcons(Set<IconSummary> icons)voidsetName(String name)voidsetNodeType(NodeType nodeType)voidsetQualifiedName(String qualifiedName)voidsetReadOnly(boolean readOnly)set whether the node is readOnlyvoidsetSystemAttributes(SystemAttributes systemAttributes)StringtoString()StringBuildertoString(StringBuilder sb)
-
-
-
Field Detail
-
nodeType
protected NodeType nodeType
-
classifications
protected List<Classification> classifications
-
-
Method Detail
-
getNodeType
public NodeType getNodeType()
Node type- Returns:
- the type of the node
-
setNodeType
public void setNodeType(NodeType nodeType)
-
getName
public String getName()
The name of the node- Returns:
- name
-
setName
public void setName(String name)
-
getQualifiedName
public String getQualifiedName()
The qualified name of the node.- Returns:
- qualified name
-
setQualifiedName
public void setQualifiedName(String qualifiedName)
-
getSystemAttributes
public SystemAttributes getSystemAttributes()
-
setSystemAttributes
public void setSystemAttributes(SystemAttributes systemAttributes)
-
getDescription
public String getDescription()
Description of the node- Returns:
- description
-
setDescription
public void setDescription(String description)
-
isReadOnly
public boolean isReadOnly()
The Node is readOnly- Returns:
- whether read only
-
setReadOnly
public void setReadOnly(boolean readOnly)
set whether the node is readOnly- Parameters:
readOnly- readonly flag
-
getClassifications
public List<Classification> getClassifications()
List of associated classifications- Returns:
List<Classification>
-
setClassifications
public void setClassifications(List<Classification> classifications)
If governance action classifications (Retention, Confidence, Confidentiality or Criticality) are supplied then remove them from the classifications and add to the appropriate named field. e.g. Retention will be set in the retention field.- Parameters:
classifications- list of classifications to set on the Node.
-
getIcons
public Set<IconSummary> getIcons()
icon summary- Returns:
- icon
-
setIcons
public void setIcons(Set<IconSummary> icons)
-
getEffectiveFromTime
public Long getEffectiveFromTime()
Return the date/time that this node should start to be used (null means it can be used from creationTime).- Returns:
- Date the node becomes effective.
-
setEffectiveFromTime
public void setEffectiveFromTime(Long effectiveFromTime)
-
getEffectiveToTime
public Long getEffectiveToTime()
Return the date/time that this node should no longer be used.- Returns:
- Date the node stops being effective.
-
setEffectiveToTime
public void setEffectiveToTime(Long effectiveToTime)
-
toString
public StringBuilder toString(StringBuilder sb)
-
processClassification
protected void processClassification(Classification classification)
-
setAdditionalProperties
public void setAdditionalProperties(Map<String,String> additionalProperties)
Set the additional properties. The additional properties are OMRS attributes that exist in the Node, due to a repository defining a Type that subclasses the open types and adds additional properties. These additional properties should be supplied on calls for this node - or they will be lost.- Parameters:
additionalProperties- the additional properties
-
getAdditionalProperties
public Map<String,String> getAdditionalProperties()
Get the additional properties The additional properties are OMRS attributes that exist in the Node, due to a repository defining a Type that subclasses the open types and adds additional properties. These additional properties should be supplied on calls for this node - or they will be lost.- Returns:
- the additional properties
-
-