com.ptc.windchill.ws
Class Property

java.lang.Object
  extended bycom.ptc.windchill.ws.Property
All Implemented Interfaces:
Serializable

public class Property
extends Object
implements Serializable

Java bean that defines a property of a generic business object.

See Also:
GenericBusinessObject, Serialized Form

Field Summary
private  String name
           
private  String value
           
 
Constructor Summary
Property()
          Constructs a new empty Property object.
Property(String name, String value)
          Constructs a new Property object with name and value.
 
Method Summary
 boolean equals(Object o)
          Tests this Property object against another object for equality.
 String getName()
          Retrieves this Property object's name.
 String getValue()
          Retrieves this Property object's value.
 void setName(String name)
          Sets this Property object's name.
 void setValue(String value)
          Sets this Property object's value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private String name

value

private String value
Constructor Detail

Property

public Property()
Constructs a new empty Property object.


Property

public Property(String name,
                String value)
Constructs a new Property object with name and value.

Parameters:
name - The property name.
Method Detail

setName

public void setName(String name)
Sets this Property object's name.

Parameters:
name - The new property name.

getName

public String getName()
Retrieves this Property object's name.

Returns:
The property name.

setValue

public void setValue(String value)
Sets this Property object's value.

Parameters:
value - The new property value.

getValue

public String getValue()
Retrieves this Property object's value.

Returns:
The property value.

toString

public String toString()
Returns:
A basic String representation of this Property object.

equals

public boolean equals(Object o)
Tests this Property object against another object for equality.

Returns:
true if o is equivalent.