Package com.uc4.api.objects
Class CalendarCondition
- java.lang.Object
-
- com.uc4.api.objects.CalendarCondition
-
- All Implemented Interfaces:
java.lang.Cloneable
public class CalendarCondition extends java.lang.Object implements java.lang.CloneableThis class represents a calendar condition.
-
-
Constructor Summary
Constructors Modifier Constructor Description CalendarCondition(UC4ObjectName name, UC4ObjectName keyword)Deprecated.potentially dangerous as a keyword does not adhere to uc4objectName standards and skip_name_check is implicitly expectedCalendarCondition(UC4ObjectName name, java.lang.String keyword)Constructs a newCalendarConditionusing the specified calendar name and keyword.CalendarCondition(CalendarList.CalendarListItem name, java.lang.String keyword)Constructs a newCalendarConditionusing the specified calendar name and keyword.protectedCalendarCondition(org.w3c.dom.Element cale)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CalendarConditionclone()static CalendarConditioncreate(java.lang.String name, java.lang.String keyword)This static method creates a newCalendarCondition.booleanequals(java.lang.Object obj)java.lang.StringgetId()Returns the oh_idnr of the Calendar.UC4ObjectNamegetKeyword()Returns the calendar keyword.java.lang.StringgetKeywordAsString()This method returns the keyword as String.UC4ObjectNamegetName()Returns the name of the Calendar.inthashCode()protected voidstore(org.w3c.dom.Element cale)java.lang.StringtoString()
-
-
-
Constructor Detail
-
CalendarCondition
public CalendarCondition(CalendarList.CalendarListItem name, java.lang.String keyword)
Constructs a newCalendarConditionusing the specified calendar name and keyword. This constructor should be used if the calendar is in client 0.- Parameters:
name- Name of the calendarkeyword- Keyword in the calendar
-
CalendarCondition
@Deprecated public CalendarCondition(UC4ObjectName name, UC4ObjectName keyword)
Deprecated.potentially dangerous as a keyword does not adhere to uc4objectName standards and skip_name_check is implicitly expectedConstructs a newCalendarConditionusing the specified calendar name and keyword.- Parameters:
name- Name of the calendarkeyword- Keyword in the calendar
-
CalendarCondition
protected CalendarCondition(org.w3c.dom.Element cale)
-
CalendarCondition
public CalendarCondition(UC4ObjectName name, java.lang.String keyword)
Constructs a newCalendarConditionusing the specified calendar name and keyword.- Parameters:
name- Name of the calendarkeyword- Keyword in the calendar
-
-
Method Detail
-
getKeyword
public UC4ObjectName getKeyword()
Returns the calendar keyword.- Returns:
- Calendar keyword
-
getKeywordAsString
public java.lang.String getKeywordAsString()
This method returns the keyword as String.- Returns:
- Calendar keyword
-
getName
public UC4ObjectName getName()
Returns the name of the Calendar.- Returns:
- Calendar name
-
getId
public java.lang.String getId()
Returns the oh_idnr of the Calendar.- Returns:
- oh_idnr as string
-
store
protected void store(org.w3c.dom.Element cale)
-
create
public static CalendarCondition create(java.lang.String name, java.lang.String keyword)
This static method creates a newCalendarCondition.- Parameters:
name- Name of the Calendarkeyword- Keyword in the Calendar- Returns:
- CalendarCondition
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
clone
public CalendarCondition clone()
- Overrides:
clonein classjava.lang.Object
-
-