Package tigase.xml

Class ElementFilters

java.lang.Object
tigase.xml.ElementFilters

public class ElementFilters extends Object
Class contains helper functions to easily create Predicate<Element>
  • Constructor Details

    • ElementFilters

      public ElementFilters()
  • Method Details

    • xmlns

      @NotNull public static @NotNull Predicate<Element> xmlns(@NotNull @NotNull String xmlns)
      Method returns predicate testing Element XMLNS
    • name

      @NotNull public static @NotNull Predicate<Element> name(@NotNull @NotNull String name)
      Method returns predicate testing Element name
    • attribute

      @NotNull public static @NotNull Predicate<Element> attribute(@NotNull @NotNull String name, @NotNull @NotNull String value)
      Method returns predicate testing Element attribute name and value
    • nameAndAttribute

      @NotNull public static @NotNull Predicate<Element> nameAndAttribute(@NotNull @NotNull String name, @NotNull @NotNull String attributeName, @NotNull @NotNull String attributeValue)
      Method returns predicate testing Element name, attribute name and value
    • nameAndXMLNS

      @NotNull public static @NotNull Predicate<Element> nameAndXMLNS(@NotNull @NotNull String name, @NotNull @NotNull String xmlns)
      Method returns predicate testing Element name and xmlns