Package com.isode.dsapi.syntax
Class MonitorMode
java.lang.Object
com.isode.dsapi.syntax.MonitorMode
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConstruct an empty MonitorMode.Constructor from an AttributeValue.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
clearFlag
(MonitorMode.Flag flag) Clear the given flag within the DSE type, and return the old value.boolean
Equality testConvert the MonitorMode into a 'isodeMonitorMode' AttributeValue.boolean
hasFlag
(MonitorMode.Flag flag) Test whether this value has the given flag set.int
hashCode()
Hash codeboolean
setFlag
(MonitorMode.Flag flag) Set the given flag within the DSE type, and return the old value.toString()
String representation for debugging (reverse packed bit-value).
-
Constructor Details
-
MonitorMode
Copy constructor.- Parameters:
mm
- MonitorMode
-
MonitorMode
public MonitorMode()Construct an empty MonitorMode. -
MonitorMode
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
Convert the MonitorMode into a 'isodeMonitorMode' AttributeValue.- Returns:
- AttributeValue
-
hasFlag
Test whether this value has the given flag set.- Parameters:
flag
- Flag to test- Returns:
- State of flag
-
setFlag
Set the given flag within the DSE type, and return the old value.- Parameters:
flag
- Flag to set- Returns:
- Previous value
-
clearFlag
Clear the given flag within the DSE type, and return the old value.- Parameters:
flag
- Flag to clear- Returns:
- Previous value
-
equals
Equality test -
hashCode
public int hashCode()Hash code -
toString
String representation for debugging (reverse packed bit-value).
-