net.officefloor.compile.impl.properties
Class PropertyImpl

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

public class PropertyImpl
extends Object
implements Property

Property implementation.

Author:
Daniel Sagenschneider

Constructor Summary
PropertyImpl(String name)
          Instantiates the label as the name.
PropertyImpl(String name, String label)
          Instantiate.
 
Method Summary
 String getLabel()
          Obtains the display label for the property.
 String getName()
          Obtains the name of the property.
 String getValue()
          Obtains the value of the property.
 void setValue(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(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 Detail

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.


Copyright © 2005-2013. All Rights Reserved.