xdoclet
Class Property

java.lang.Object
  |
  +--xdoclet.Property

public class Property
extends Object

Holds name=value pair. It is analog to XDoclet 1.2's configParameter, but it has the same "look and feel" as a classical Ant property. Can of course be used outside Ant.

Version:
$Revision: 1.7 $
Author:
Aslak Hellesøy

Constructor Summary
Property()
          Constructs a new property.
Property(String name, String value)
          Constructs a new property.
 
Method Summary
 boolean equals(Object o)
           
 String getName()
          Gets the name of the property.
 String getValue()
          Gets the value of the property.
 int hashCode()
           
 void setName(String name)
          Sets the name of the property.
 void setValue(String value)
          Sets the value of the property.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property()
Constructs a new property. Empty constructor is needed by Ant to create dynamic properties.


Property

public Property(String name,
                String value)
Constructs a new property.

Parameters:
name - the name of the property
value - the value of the property
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getName

public String getName()
Gets the name of the property.

Returns:
the name of the property

setName

public void setName(String name)
Sets the name of the property.

Parameters:
name - the name of the property

getValue

public String getValue()
Gets the value of the property.

Returns:
the value of the property

setValue

public void setValue(String value)
Sets the value of the property.

Parameters:
value - the value of the property

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2000-2003 XDoclet Team. All Rights Reserved.