|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.client.Property
This represents a property of a Piece. A property has a name and a value (both Strings).
Constructor Summary | |
Property()
Constructor for the Property object |
|
Property(Property p)
Constructor for the Property object |
|
Property(String name,
String value)
Constructor for the Property object |
Method Summary | |
int |
compareTo(Object o)
Description of the Method |
String |
getName()
Gets the Name attribute of the Property object |
String |
getValue()
Gets the Value attribute of the Property object |
void |
setName(String name)
Sets the Name attribute of the Property object |
void |
setValue(String value)
Sets the Value attribute of the Property object |
String |
toString()
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Property()
public Property(String name, String value)
name
- Description of Parametervalue
- Description of Parameterpublic Property(Property p)
p
- Description of ParameterMethod Detail |
public void setName(String name)
name
- The new Name valuepublic void setValue(String value)
value
- The new Value valuepublic String getName()
public String getValue()
public int compareTo(Object o)
compareTo
in interface Comparable
o
- Description of Parameterpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |