Class CalendarCondition

java.lang.Object
com.uc4.api.objects.CalendarCondition
All Implemented Interfaces:
Cloneable

public class CalendarCondition extends Object implements Cloneable
This class represents a calendar condition.
  • Constructor Details

    • CalendarCondition

      public CalendarCondition(CalendarList.CalendarListItem name, String keyword)
      Constructs a new CalendarCondition using the specified calendar name and keyword. This constructor should be used if the calendar is in client 0.
      Parameters:
      name - Name of the calendar
      keyword - 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 expected
      Constructs a new CalendarCondition using the specified calendar name and keyword.
      Parameters:
      name - Name of the calendar
      keyword - Keyword in the calendar
    • CalendarCondition

      protected CalendarCondition(Element cale)
    • CalendarCondition

      public CalendarCondition(UC4ObjectName name, String keyword)
      Constructs a new CalendarCondition using the specified calendar name and keyword.
      Parameters:
      name - Name of the calendar
      keyword - Keyword in the calendar
  • Method Details

    • getKeyword

      public UC4ObjectName getKeyword()
      Returns the calendar keyword.
      Returns:
      Calendar keyword
    • getKeywordAsString

      public 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 String getId()
      Returns the oh_idnr of the Calendar.
      Returns:
      oh_idnr as string
    • store

      protected void store(Element cale)
    • create

      public static CalendarCondition create(String name, String keyword)
      This static method creates a new CalendarCondition.
      Parameters:
      name - Name of the Calendar
      keyword - Keyword in the Calendar
      Returns:
      CalendarCondition
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public CalendarCondition clone()
      Overrides:
      clone in class Object