Class 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 Detail

      • CalendarCondition

        public CalendarCondition​(CalendarList.CalendarListItem name,
                                 java.lang.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​(org.w3c.dom.Element cale)
      • CalendarCondition

        public CalendarCondition​(UC4ObjectName name,
                                 java.lang.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 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 new CalendarCondition.
        Parameters:
        name - Name of the Calendar
        keyword - Keyword in the Calendar
        Returns:
        CalendarCondition
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

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

        public CalendarCondition clone()
        Overrides:
        clone in class java.lang.Object