Package com.isode.dsapi.syntax
Class IsodeSyntax.SyntaxInfo
java.lang.Object
com.isode.dsapi.syntax.IsodeSyntax.SyntaxInfo
- Enclosing class:
- IsodeSyntax<ASNSYNTAX extends BERCodable>
A SyntaxInfo keeps track of various information that the
IsodeSyntax
class uses to process string representations
of the values.
Subclasses will typically initialise static value using, e.g.
private static final SyntaxInfo syntaxInfo; static { SyntaxInfo si = null; try { AttributeType at = new AttributeType("commonname"); si = new SyntaxInfo(at); } catch (BadAttributeTypeException e) { logger.warning( "Functionality will be limited for commonname (" + e.getMessage() + ")"); } syntaxInfo = si; }and then implement the
IsodeSyntax.getSyntaxInfo()
method which will return a reference to that value:
protected SyntaxInfo getSyntaxInfo() throws BadSyntaxException { if (syntaxInfo == null) { throw new BadSyntaxException( "Limited support for commonname"); } return syntaxInfo; }
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SyntaxInfo
Create a new SyntaxInfo object.- Parameters:
attributeType
- the attribute type, from which the constructor derives information about the syntax.
-
-
Method Details