Class IsodeSyntax.SyntaxInfo

java.lang.Object
com.isode.dsapi.syntax.IsodeSyntax.SyntaxInfo
Enclosing class:
IsodeSyntax<ASNSYNTAX extends BERCodable>

protected static class IsodeSyntax.SyntaxInfo extends Object
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 Details

    • SyntaxInfo

      public SyntaxInfo(AttributeType attributeType)
      Create a new SyntaxInfo object.
      Parameters:
      attributeType - the attribute type, from which the constructor derives information about the syntax.
  • Method Details

    • toString

      public String toString()
      Returns a String representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a String, for debugging purposes