Interface XMQAttr

All Superinterfaces:
XMQNode

public interface XMQAttr extends XMQNode
An xml attribute, like xmqAttributeType. Its children are the raw value split into text nodes and entity references, and the value is the concatenation of the children.
  • Method Details

    • ns

      XMQNS ns()
      Returns the namespace of the attribute, like the libxml2 xmlAttr ns.
      Returns:
      The namespace or null.
    • setNs

      void setNs(XMQNS ns)
      Set the namespace of the attribute.
      Parameters:
      ns - The namespace or null.
    • value

      String value()
      Returns the value of the attribute, the concatenation of the children. Character references contribute their character.
      Returns:
      The value, never null.
    • rawValue

      String rawValue()
      Returns the raw value as found in the file, or null for a parsed attribute.
      Returns:
      The raw value or null.
    • setValue

      void setValue(String value)
      Set the value of the attribute. If the value contains entities, then the value is kept as-is in a single text child, and rawValue() returns it, like for a raw attribute found in a file.
      Parameters:
      value - The value.
    • element

      XMQElement element()
      Returns the element this attribute belongs to.
      Returns:
      The element or null.