Java Calendar Component v3.1
www.java-calendar.com

com.imagine.component.calendar.data
Class CalendarProperty

java.lang.Object
  extended bycom.imagine.component.calendar.data.CalendarProperty

public class CalendarProperty
extends java.lang.Object

Defines a calendar property.


Constructor Summary
CalendarProperty(java.lang.String name, java.lang.Class propertyType)
          Create a calendar property.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Overrides the equals function in Object class.
 java.lang.String getName()
          Get the name of this calendar property.
 java.lang.Class getType()
          Returns the type of the property.
 int hashCode()
          Overrides the hashCode function from Object class.
 java.lang.String toString()
          Returns the name of this calendar property.
 boolean validateCalendarPropertyValue(java.lang.Object value)
          Returns true if the given property value can be associated with this calendar property.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalendarProperty

public CalendarProperty(java.lang.String name,
                        java.lang.Class propertyType)
Create a calendar property.

Parameters:
name - The name of the calendar property.
propertyType - The type of the calendar property.
Method Detail

getName

public java.lang.String getName()
Get the name of this calendar property.

Returns:
The name of this calendar property.

toString

public java.lang.String toString()
Returns the name of this calendar property.

Returns:
The name of this calendar property.

equals

public boolean equals(java.lang.Object obj)
Overrides the equals function in Object class.

Returns:
true if the objects are equal.

hashCode

public int hashCode()
Overrides the hashCode function from Object class.

Returns:
The hashcode.

validateCalendarPropertyValue

public boolean validateCalendarPropertyValue(java.lang.Object value)
Returns true if the given property value can be associated with this calendar property.

Parameters:
value - The value to be tested.
Returns:
true if the given property value can be associated with this calendar property.

getType

public java.lang.Class getType()
Returns the type of the property.

Returns:
The type of the property.

Java Calendar Component v3.1
www.java-calendar.com