Class NameItemPathSegment

    • Constructor Detail

      • NameItemPathSegment

        public NameItemPathSegment​(@NotNull
                                   QName name)
      • NameItemPathSegment

        public NameItemPathSegment​(@NotNull
                                   QName name,
                                   boolean isVariable)
    • Method Detail

      • getName

        @NotNull
        public ItemName getName()
      • equals

        public boolean equals​(Object obj)
        More strict version of comparison: it requires exact matching of QNames (e.g. x:xyz and xyz are different in this respect).
        Overrides:
        equals in class ItemPathSegment
        Parameters:
        obj -
        Returns:
      • equivalent

        public boolean equivalent​(Object obj)
        Less strict version of comparison: it allows unqualified names to match fully qualified ones (e.g. x:xyz and xyz are the same).
        Specified by:
        equivalent in class ItemPathSegment
        Parameters:
        obj -
        Returns:
      • equals

        public boolean equals​(Object obj,
                              boolean allowUnqualified,
                              boolean allowDifferentPrefixes)