Class OneValueAttribute


  • public class OneValueAttribute
    extends java.lang.Object
    A holder for a name and a value.
    • Constructor Summary

      Constructors 
      Constructor Description
      OneValueAttribute​(LCPString name, LCPString value)
      Constructs a new OneValueAttribute instance with the specified attribute name and value.
      OneValueAttribute​(java.lang.String name, java.lang.String value)
      Constructs a new OneValueAttribute instance with the specified attribute name and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      LCPString getName()
      Returns the name of this attribute.
      LCPString getValue()
      Returns the value of this attribute.
      • Methods inherited from class java.lang.Object

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

      • OneValueAttribute

        public OneValueAttribute​(LCPString name,
                                 LCPString value)
        Constructs a new OneValueAttribute instance with the specified attribute name and value.
        Parameters:
        name - The name of the attribute.
        value - The value of the attribute.
      • OneValueAttribute

        public OneValueAttribute​(java.lang.String name,
                                 java.lang.String value)
        Constructs a new OneValueAttribute instance with the specified attribute name and value.
        Parameters:
        name - The name of the attribute.
        value - The value of the attribute.
    • Method Detail

      • getName

        public LCPString getName()
        Returns the name of this attribute.
        Returns:
        The name of this attribute.
      • getValue

        public LCPString getValue()
        Returns the value of this attribute.
        Returns:
        The value of this attribute.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)