Skip to content

Commit

Permalink
Implement getAttribute and setAttribute in UaDataTypeNode
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinherron committed Aug 10, 2019
1 parent 81d85fa commit 5409a9b
Showing 1 changed file with 26 additions and 0 deletions.
Expand Up @@ -57,6 +57,32 @@ public synchronized void setIsAbstract(Boolean isAbstract) {
fireAttributeChanged(AttributeId.IsAbstract, isAbstract);
}

@Override
public synchronized Object getAttribute(AttributeId attributeId) {
switch (attributeId) {
case IsAbstract:
return isAbstract;

default:
return super.getAttribute(attributeId);
}
}

@Override
public synchronized void setAttribute(AttributeId attributeId, Object value) {
switch (attributeId) {
case IsAbstract:
isAbstract = (Boolean) value;
break;

default:
super.setAttribute(attributeId, value);
return; // prevent firing an attribute change
}

fireAttributeChanged(attributeId, value);
}

@Nullable
public String getNodeVersion() {
return getProperty(NodeVersion).orElse(null);
Expand Down

0 comments on commit 5409a9b

Please sign in to comment.