public class Node extends Object implements Serializable, OmasObject
NodeType, name, qualified name and description.
A node may be in one or more projects.
Nodes can be connected with Relationship s to form graphs. As they may be visualised, so a node has an associated
icon.
| Modifier and Type | Field and Description |
|---|---|
protected List<Classification> |
classifications |
protected NodeType |
nodeType |
| Constructor and Description |
|---|
Node() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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 classifications
|
String |
getDescription()
Description of the node
|
Date |
getEffectiveFromTime()
Return the date/time that this node should start to be used (null means it can be used from creationTime).
|
Date |
getEffectiveToTime()
Return the date/time that this node should no longer be used.
|
Set<IconSummary> |
getIcons()
icon summary
|
String |
getName()
The name of the node
|
NodeType |
getNodeType()
Node type
|
String |
getQualifiedName()
The qualified name of the node.
|
SystemAttributes |
getSystemAttributes() |
int |
hashCode() |
boolean |
isReadOnly()
The Node is readOnly
|
protected void |
processClassification(Classification classification) |
void |
setAdditionalProperties(Map<String,String> additionalProperties)
Set the additional properties.
|
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.
|
void |
setDescription(String description) |
void |
setEffectiveFromTime(Date effectiveFromTime) |
void |
setEffectiveToTime(Date effectiveToTime) |
void |
setIcons(Set<IconSummary> icons) |
void |
setName(String name) |
void |
setNodeType(NodeType nodeType) |
void |
setQualifiedName(String qualifiedName) |
void |
setReadOnly(boolean readOnly)
set whether the node is readOnly
|
void |
setSystemAttributes(SystemAttributes systemAttributes) |
String |
toString() |
StringBuilder |
toString(StringBuilder sb) |
protected NodeType nodeType
protected List<Classification> classifications
public NodeType getNodeType()
public void setNodeType(NodeType nodeType)
public String getName()
public void setName(String name)
public String getQualifiedName()
public void setQualifiedName(String qualifiedName)
public SystemAttributes getSystemAttributes()
public void setSystemAttributes(SystemAttributes systemAttributes)
public String getDescription()
public void setDescription(String description)
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly - readonly flagpublic List<Classification> getClassifications()
List<Classification> public void setClassifications(List<Classification> classifications)
classifications - list of classifications to set on the Node.public Set<IconSummary> getIcons()
public void setIcons(Set<IconSummary> icons)
public Date getEffectiveFromTime()
public void setEffectiveFromTime(Date effectiveFromTime)
public Date getEffectiveToTime()
public void setEffectiveToTime(Date effectiveToTime)
public StringBuilder toString(StringBuilder sb)
protected void processClassification(Classification classification)
public void setAdditionalProperties(Map<String,String> additionalProperties)
additionalProperties - the additional propertiespublic Map<String,String> getAdditionalProperties()
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.