Package com.isode.dsapi.syntax
Class Selector
java.lang.Object
com.isode.dsapi.syntax.Selector
- All Implemented Interfaces:
Comparable<Selector>
This class stores information about a presentation address selector in the
following formats: HEX and IA5.
This is an immutable class.
Examples:
"abc"
"ABC+123"
'00FF'H
'ab0a'H
Future enhancements:
- Support US GOSIP format.
- Since:
- 15.0
- Author:
- mv
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
An enumeration defining the different address formats that can be used to create a selector. -
Constructor Summary
ConstructorsConstructorDescriptionSelector
(Selector.SelectorType type, String value) Constructor to create an object with the given data.Constructor to create an object with the given data. -
Method Summary
-
Constructor Details
-
Selector
Constructor to create an object with the given data.- Parameters:
type
- Type of the selector.value
- Value of the selector.- Throws:
BadValueException
- if any of the input is invalid.
-
Selector
Constructor to create an object with the given data.- Parameters:
str
- String representation of the selector.- Throws:
BadValueException
- if the input is invalid.
-
-
Method Details
-
toString
-
getValue
Returns the value of the selector.- Returns:
- Value of the selector.
-
getType
Returns the type of the selector.- Returns:
- Type of the selector.
-
getDisplayString
Returns string form to display.- Returns:
- String form to display.
-
getCanonicalForm
The value is converted to lower case for Selector type HEX.- Returns:
- canonical form of object.
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Selector>
-