Class MonitorMode

java.lang.Object
com.isode.dsapi.syntax.MonitorMode

public class MonitorMode extends Object
The MonitorMode syntax is a bit string. We represent it internally as a packed, having used the implementation of DSEType as a template.
Since:
15.1
Author:
dsm
  • Constructor Details

    • MonitorMode

      public MonitorMode(MonitorMode mm)
      Copy constructor.
      Parameters:
      mm - MonitorMode
    • MonitorMode

      public MonitorMode()
      Construct an empty MonitorMode.
    • MonitorMode

      public MonitorMode(AttributeValue av) throws BadValueException
      Constructor from an AttributeValue.
      Parameters:
      av - AttributeValue
      Throws:
      BadValueException - if the BER extracted from the AttributeValue is invalid, which may happen over LDAP due to the LDAP string form not being in the Isode-recognised syntax.
  • Method Details

    • getAttributeValue

      public AttributeValue getAttributeValue()
      Convert the MonitorMode into a 'isodeMonitorMode' AttributeValue.
      Returns:
      AttributeValue
    • hasFlag

      public boolean hasFlag(MonitorMode.Flag flag)
      Test whether this value has the given flag set.
      Parameters:
      flag - Flag to test
      Returns:
      State of flag
    • setFlag

      public boolean setFlag(MonitorMode.Flag flag)
      Set the given flag within the DSE type, and return the old value.
      Parameters:
      flag - Flag to set
      Returns:
      Previous value
    • clearFlag

      public boolean clearFlag(MonitorMode.Flag flag)
      Clear the given flag within the DSE type, and return the old value.
      Parameters:
      flag - Flag to clear
      Returns:
      Previous value
    • equals

      public boolean equals(Object o)
      Equality test
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Hash code
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      String representation for debugging (reverse packed bit-value).
      Overrides:
      toString in class Object
      Returns:
      Debugging string