diff --git a/src/main/java/org/openmuc/openiec61850/ObjectReference.java b/src/main/java/org/openmuc/openiec61850/ObjectReference.java index fa8fb2d..ff03835 100644 --- a/src/main/java/org/openmuc/openiec61850/ObjectReference.java +++ b/src/main/java/org/openmuc/openiec61850/ObjectReference.java @@ -49,6 +49,14 @@ public final class ObjectReference implements Iterable { } return nodeNames.get(nodeNames.size() - 1); } + + public String getLdName() { + if (nodeNames == null) { + parseForNameList(); + } + + return nodeNames.get(0); + } @Override public String toString() {