Class StringPropertyAttribute

  • All Implemented Interfaces:
    OnmsAttribute

    public class StringPropertyAttribute
    extends java.lang.Object
    implements OnmsAttribute

    StringPropertyAttribute class.

    Version:
    $Id: $
    Author:
    DJ Gregor
    • Constructor Summary

      Constructors 
      Constructor Description
      StringPropertyAttribute​(java.lang.String name, java.lang.String value)
      Constructor for StringPropertyAttribute.
    • Constructor Detail

      • StringPropertyAttribute

        public StringPropertyAttribute​(java.lang.String name,
                                       java.lang.String value)

        Constructor for StringPropertyAttribute.

        Parameters:
        name - the name
        value - the value
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the name for this attribute. This is the property name from the properties file.
        Specified by:
        getName in interface OnmsAttribute
        Returns:
        a String object.
        See Also:
        OnmsAttribute.getName()
      • getValue

        public java.lang.String getValue()
        Get the value for this attribute. This is the property value from the properties file.
        Returns:
        a String object.
      • 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