mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
19.10.2007 496f8cd959b71bc4c049f6c17e765a890552031e
opendj-sdk/opends/src/server/org/opends/server/admin/ManagedObjectPath.java
@@ -1000,6 +1000,27 @@
  /**
   * Get the name of the managed object referred to by this path if
   * applicable.
   * <p>
   * If there path does not refer to an instantiable managed object
   * <code>null</code> is returned.
   *
   * @return Returns the name of the managed object referred to by
   *         this path, or <code>null</code> if the managed object
   *         does not have a name.
   */
  public String getName() {
    if (elements.isEmpty()) {
      return null;
    } else {
      return elements.get(elements.size() - 1).getName();
    }
  }
  /**
   * Get the relation definition of the managed object referred to by
   * this path.
   * <p>