Class XmlNode.Name

java.lang.Object
com.android.manifmerger.XmlNode.Name
All Implemented Interfaces:
XmlNode.NodeName
Enclosing class:
XmlNode

public static final class XmlNode.Name extends Object implements XmlNode.NodeName
Implementation of XmlNode.NodeName for an node's declaration not using a namespace.
  • Method Details

    • isInNamespace

      public boolean isInNamespace(@NonNull String namespaceURI)
      Description copied from interface: XmlNode.NodeName
      Returns true if this attribute name has a namespace declaration and that namespapce is the same as provided, false otherwise.
      Specified by:
      isInNamespace in interface XmlNode.NodeName
    • addToNode

      public void addToNode(@NonNull Element to, String withValue)
      Description copied from interface: XmlNode.NodeName
      Adds a new attribute of this name to a xml element with a value.
      Specified by:
      addToNode in interface XmlNode.NodeName
      Parameters:
      to - the xml element to add the attribute to.
      withValue - the new attribute's value.
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLocalName

      public String getLocalName()
      Description copied from interface: XmlNode.NodeName
      The local name.
      Specified by:
      getLocalName in interface XmlNode.NodeName