com.lightdev.lib.holiday.client
Class Property

java.lang.Object
  extended by com.lightdev.lib.holiday.client.Property
All Implemented Interfaces:
Serializable

public class Property
extends Object
implements Serializable

Property for events such as 'legal holiday' or 'day with special habits'

Version:
2, May 7, 2006
Author:
Ulrich Hilger, Light Development, http://www.lightdev.com, info@lightdev.com, published under the terms and conditions of the BSD License, for details see file license.txt in the distribution package of this software
See Also:
Serialized Form

Constructor Summary
Property()
          constructor
Property(int id, String pName)
          create a property with a given id and name
 
Method Summary
 boolean equals(Object obj)
           
 int getId()
          get the id of this property
 String getName()
          get the name of this property
 void setId(int id)
          set the unique id of this property
 void setName(String name)
          set the name of this property
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property()
constructor


Property

public Property(int id,
                String pName)
create a property with a given id and name

Parameters:
id - int the property id
pName - String the property name
Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

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

setId

public void setId(int id)
set the unique id of this property

Parameters:
id - int the property id

getId

public int getId()
get the id of this property

Returns:
int the property id

setName

public void setName(String name)
set the name of this property

Parameters:
name - String the property name to set

getName

public String getName()
get the name of this property

Returns:
String the property name