Class PropertyImpl

  • All Implemented Interfaces:
    Property

    public class PropertyImpl
    extends java.lang.Object
    implements Property
    Property implementation.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyImpl​(java.lang.String name)
      Instantiates the label as the name.
      PropertyImpl​(java.lang.String name, java.lang.String label)
      Instantiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLabel()
      Obtains the display label for the property.
      java.lang.String getName()
      Obtains the name of the property.
      java.lang.String getValue()
      Obtains the value of the property.
      void setValue​(java.lang.String value)
      Changes the value of the property.
      • Methods inherited from class java.lang.Object

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

      • PropertyImpl

        public PropertyImpl​(java.lang.String name,
                            java.lang.String label)
        Instantiate.
        Parameters:
        name - Name of the property.
        label - Display label for the property. Should this be blank, it is defaulted to name.
      • PropertyImpl

        public PropertyImpl​(java.lang.String name)
        Instantiates the label as the name.
        Parameters:
        name - Name of the property which is also used as the display label.
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: Property
        Obtains the display label for the property.
        Specified by:
        getLabel in interface Property
        Returns:
        Display label for the property.
      • getName

        public java.lang.String getName()
        Description copied from interface: Property
        Obtains the name of the property.
        Specified by:
        getName in interface Property
        Returns:
        Name of the property.
      • getValue

        public java.lang.String getValue()
        Description copied from interface: Property
        Obtains the value of the property.
        Specified by:
        getValue in interface Property
        Returns:
        Value of the property.
      • setValue

        public void setValue​(java.lang.String value)
        Description copied from interface: Property
        Changes the value of the property.
        Specified by:
        setValue in interface Property
        Parameters:
        value - Value of the property.