org.base.apps.util.config
Class Property

java.lang.Object
  extended by org.base.apps.util.config.Property
All Implemented Interfaces:
Mutable<String>, Nameable, Named
Direct Known Subclasses:
BaseAttr

public class Property
extends Object
implements Nameable, Mutable<String>

Represents a key-value pair.

Author:
Kevan Simpson

Constructor Summary
Property()
          Void constructor, with blank name and value.
Property(String name)
           
Property(String name, String value)
           
 
Method Summary
 String getName()
          Fetches the name of this instance.
 String getValue()
          Returns the object's Mutable value.
 void setName(String name)
          Sets the name of this instance.
 void setValue(String val)
          Sets the object's Mutable value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property()
Void constructor, with blank name and value.


Property

public Property(String name)

Property

public Property(String name,
                String value)
Method Detail

getName

public String getName()
Description copied from interface: Named
Fetches the name of this instance.

Specified by:
getName in interface Named
Returns:
the name of this instance.
See Also:
Named.getName()

getValue

public String getValue()
Description copied from interface: Mutable
Returns the object's Mutable value.

Specified by:
getValue in interface Mutable<String>
Returns:
the object's Mutable value.
See Also:
Mutable.getValue()

setValue

public void setValue(String val)
Description copied from interface: Mutable
Sets the object's Mutable value.

Specified by:
setValue in interface Mutable<String>
Parameters:
val - The value to set.
See Also:
Mutable.setValue(java.lang.Object)

setName

public void setName(String name)
Description copied from interface: Nameable
Sets the name of this instance.

Specified by:
setName in interface Nameable
Parameters:
name - The new name.
See Also:
Nameable.setName(java.lang.String)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)