Class Attribute


  • public class Attribute
    extends java.lang.Object
    One attribute of a tag.
    • Constructor Summary

      Constructors 
      Constructor Description
      Attribute​(java.lang.String name, java.lang.String value)
      Creates a new instance of Attribute
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns attribute's name.
      java.lang.String getValue()
      Returns attribute's value.
      void setValue​(java.lang.String value)
      Sets attribute's value.
      java.lang.String toString()
      Returns a string representation of the attribute.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Attribute

        public Attribute​(java.lang.String name,
                         java.lang.String value)
        Creates a new instance of Attribute
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns attribute's name.
      • getValue

        public java.lang.String getValue()
        Returns attribute's value.
      • setValue

        public void setValue​(java.lang.String value)
        Sets attribute's value.

        Actually an ugly hack to allow quick & dirty translation of attributes. Normal solution requires too much time :-(

      • toString

        public java.lang.String toString()
        Returns a string representation of the attribute. name="value".
        Overrides:
        toString in class java.lang.Object