Class Attribute

java.lang.Object
org.apache.xmpbox.type.Attribute

public class Attribute extends Object
Simple representation of an attribute
  • Field Details

  • Constructor Details

    • Attribute

      public Attribute(String nsURI, String localName, String value)
      Constructor of a new Attribute
      Parameters:
      nsURI - namespaceURI of this attribute (could be null)
      localName - localName of this attribute
      value - value given to this attribute
  • Method Details

    • getName

      public String getName()
      Get the localName of this attribute
      Returns:
      local name of this attribute
    • setName

      public void setName(String lname)
      Set the localName of this attribute
      Parameters:
      lname - the local name to set
    • getNamespace

      public String getNamespace()
      Get the namespace URI of this attribute
      Returns:
      the namespace URI associated to this attribute (could be null)
    • setNsURI

      public void setNsURI(String nsURI)
      Set the namespace URI of this attribute
      Parameters:
      nsURI - the namespace URI to set
    • getValue

      public String getValue()
      Get value of this attribute
      Returns:
      value of this attribute
    • setValue

      public void setValue(String value)
      Set value of this attribute
      Parameters:
      value - the value to set for this attribute
    • toString

      public String toString()
      Overrides:
      toString in class Object