Class Attribute


  • public class Attribute
    extends java.lang.Object
    Representation of an Attribute in an object
    Author:
    Andrew Varley
    • Constructor Summary

      Constructors 
      Constructor Description
      Attribute()
      Constructor
      Attribute​(java.lang.String name, java.lang.String value)
      Construnctor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      java.lang.String getName()
      Get the name of this field
      java.lang.String getValue()
      Get the value of this field
      int hashCode()
      void setName​(java.lang.String name)
      Set the name of this field
      void setValue​(java.lang.String value)
      Set the value of this field
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Attribute

        public Attribute()
        Constructor
      • Attribute

        public Attribute​(java.lang.String name,
                         java.lang.String value)
        Construnctor
        Parameters:
        name - the name
        value - the value
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
        Set the name of this field
        Parameters:
        name - the name
      • getName

        public java.lang.String getName()
        Get the name of this field
        Returns:
        the name
      • setValue

        public void setValue​(java.lang.String value)
        Set the value of this field
        Parameters:
        value - the value
      • getValue

        public java.lang.String getValue()
        Get the value of this field
        Returns:
        the value
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object