Interface XmlNode.NodeName

All Known Implementing Classes:
XmlNode.Name, XmlNode.NamespaceAwareName
Enclosing class:
XmlNode

public static interface XmlNode.NodeName
Abstraction to an xml name to isolate whether the name has a namespace or not.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addToNode(Element to, String withValue)
    Adds a new attribute of this name to a xml element with a value.
    The local name.
    boolean
    isInNamespace(String namespaceURI)
    Returns true if this attribute name has a namespace declaration and that namespapce is the same as provided, false otherwise.
  • Method Details

    • isInNamespace

      boolean isInNamespace(@NonNull String namespaceURI)
      Returns true if this attribute name has a namespace declaration and that namespapce is the same as provided, false otherwise.
    • addToNode

      void addToNode(@NonNull Element to, String withValue)
      Adds a new attribute of this name to a xml element with a value.
      Parameters:
      to - the xml element to add the attribute to.
      withValue - the new attribute's value.
    • getLocalName

      String getLocalName()
      The local name.