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.Cloneable
This 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 newCalendarCondition
using the specified calendar name and keyword.CalendarCondition(CalendarList.CalendarListItem name, java.lang.String keyword)
Constructs a newCalendarCondition
using the specified calendar name and keyword.protected
CalendarCondition(org.w3c.dom.Element cale)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CalendarCondition
clone()
static CalendarCondition
create(java.lang.String name, java.lang.String keyword)
This static method creates a newCalendarCondition
.boolean
equals(java.lang.Object obj)
java.lang.String
getId()
Returns the oh_idnr of the Calendar.UC4ObjectName
getKeyword()
Returns the calendar keyword.java.lang.String
getKeywordAsString()
This method returns the keyword as String.UC4ObjectName
getName()
Returns the name of the Calendar.int
hashCode()
protected void
store(org.w3c.dom.Element cale)
java.lang.String
toString()
-
-
-
Constructor Detail
-
CalendarCondition
public CalendarCondition(CalendarList.CalendarListItem name, java.lang.String keyword)
Constructs a newCalendarCondition
using 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 newCalendarCondition
using 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 newCalendarCondition
using 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public CalendarCondition clone()
- Overrides:
clone
in classjava.lang.Object
-
-