# Uses of Interface
org.apache.axiom.om.OMAttribute

Packages that use OMAttribute
Package
Description
org.apache.axiom.om
Contains core interfaces of the Axiom API.
org.apache.axiom.om.util
org.apache.axiom.om.xpath

- ## Uses of OMAttribute in org.apache.axiom.om

  Methods in org.apache.axiom.om that return OMAttribute
  Modifier and Type
  Method
  Description
  `OMAttribute`
  OMElement.`addAttribute(String localName, String value, OMNamespace ns)`
  Adds an attribute to this element.
  `OMAttribute`
  OMElement.`addAttribute(OMAttribute attr)`
  Adds an attribute to this element.
  `OMAttribute`
  OMFactory.`createOMAttribute(String localName, OMNamespace ns, String value)`
  Create an attribute with the given name and value.
  `OMAttribute`
  OMElement.`getAttribute(QName qname)`
  Returns a named attribute if present.
  Methods in org.apache.axiom.om that return types with arguments of type OMAttribute
  Modifier and Type
  Method
  Description
  `Iterator<OMAttribute>`
  OMElement.`getAllAttributes()`
  Returns a list of OMAttributes.
  Methods in org.apache.axiom.om with parameters of type OMAttribute
  Modifier and Type
  Method
  Description
  `OMAttribute`
  OMElement.`addAttribute(OMAttribute attr)`
  Adds an attribute to this element.
  `void`
  OMElement.`removeAttribute(OMAttribute attr)`
  Removes the given attribute from this element.

- ## Uses of OMAttribute in org.apache.axiom.om.util

  Methods in org.apache.axiom.om.util that return types with arguments of type OMAttribute
  Modifier and Type
  Method
  Description
  `Collection<OMAttribute>`
  DigestGenerator.`getAttributesWithoutNS(OMElement element)`
  Gets the collection of attributes which are none namespace declarations for an OMElement
  Methods in org.apache.axiom.om.util with parameters of type OMAttribute
  Modifier and Type
  Method
  Description
  `boolean`
  DigestGenerator.`compareOMAttribute(OMAttribute attribute, OMAttribute comparingAttribute, String digestAlgorithm)`
  Compares two OMAttributes for the XML equality
  `byte[]`
  DigestGenerator.`getDigest(OMAttribute attribute, String digestAlgorithm)`
  This method is an overloaded method for the digest generation for OMAttribute
  `String`
  DigestGenerator.`getExpandedName(OMAttribute attribute)`
  This method is an overloaded method for getting the expanded name namespaceURI followed by the local name for OMAttribute

- ## Uses of OMAttribute in org.apache.axiom.om.xpath

  Constructors in org.apache.axiom.om.xpath with parameters of type OMAttribute
  Modifier
  Constructor
  Description
  ``
  `AXIOMXPath(OMAttribute attribute)`
  Construct an XPath expression from a given attribute.