Class PropertyImpl

java.lang.Object
net.officefloor.compile.impl.properties.PropertyImpl
All Implemented Interfaces:
Property

public class PropertyImpl extends Object implements Property
Property implementation.
Author:
Daniel Sagenschneider
  • Constructor Details

    • PropertyImpl

      public PropertyImpl(String name, 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(String name)
      Instantiates the label as the name.
      Parameters:
      name - Name of the property which is also used as the display label.
  • Method Details

    • getLabel

      public 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 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 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(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.