Class SchemaNodeIdentifier

    • Method Detail

      • getNodeIdentifiers

        public abstract @NonNull List<QName> getNodeIdentifiers()
        Return the non-empty sequence of node identifiers which constitute this schema node identifier.
        Returns:
        Non-empty sequence of node identifiers
      • firstNodeIdentifier

        public @NonNull QName firstNodeIdentifier()
        Return the first node identifier. This method is equivalent to getNodeIdentifiers().get(0), but is potentially more efficient.
        Returns:
        The first node identifier
      • lastNodeIdentifier

        public @NonNull QName lastNodeIdentifier()
        Return the last node identifier. This method is equivalent to getNodeIdentifiers().get(size - 1), but is potentially more efficient.
        Returns:
        The last node identifier
      • asSchemaPath

        @Deprecated(since="7.0.9",
                    forRemoval=true)
        public final @NonNull SchemaPath asSchemaPath()
        Deprecated, for removal: This API element is subject to removal in a future version.
        This method is scheduled for removal along with SchemaPath. This method performs memoization, which should not be needed most of the time. If you need memoization, you probably can do better, as you probably want to attach more state. If you just need a SchemaPath, use SchemaPath.of(SchemaNodeIdentifier) instead.
        Create the SchemaPath equivalent of this identifier.
        Returns:
        SchemaPath equivalent.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object