Class SubContext

java.lang.Object
org.bedework.calfacade.SubContext
All Implemented Interfaces:
Comparable<SubContext>

public class SubContext extends Object implements Comparable<SubContext>
Provide information about a sub-context of the public calendar.
Author:
Mike Douglass douglm@bedework.edu
  • Constructor Details

    • SubContext

      public SubContext(BwProperty prop)
      Parameters:
      prop -
    • SubContext

      public SubContext(String contextName, String calSuite, boolean defaultContext)
      Parameters:
      contextName -
      calSuite -
      defaultContext -
    • SubContext

      public SubContext(String encoded)
      Parameters:
      encoded - - comma delimited internal form.
  • Method Details

    • getProp

      public BwProperty getProp()
      Returns:
      BwProperty representing this context.
    • getContextName

      public String getContextName()
      Get the context name.
      Returns:
      String context name
    • getCalSuite

      public String getCalSuite()
      Get the calSuite name.
      Returns:
      String calSuite name
    • getDefaultContext

      public boolean getDefaultContext()
      Returns:
      true for default context
    • compareTo

      public int compareTo(SubContext that)
      Specified by:
      compareTo in interface Comparable<SubContext>
    • hashCode

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

      protected org.bedework.util.misc.ToString toStringSegment(org.bedework.util.misc.ToString ts)
    • toString

      public String toString()
      Overrides:
      toString in class Object