/** * Creates an instance of SubtreeSpecificationSyntaxChecker * * @param oid The OID to use for this SyntaxChecker * @param schemaManager the SchemaManager instance */ private SubtreeSpecificationSyntaxChecker( String oid, SchemaManager schemaManager ) { super( oid ); subtreeSpecificationChecker = new SubtreeSpecificationChecker( schemaManager ); }
/** * Parses a subtree specification without exhausting the parser. * * @param spec the specification to be parsed * @throws ParseException if there are any recognition errors (bad syntax) */ public synchronized void parse( String spec ) throws ParseException { if ( spec == null || Strings.isEmpty( spec.trim() ) ) { return; } // reset and initialize the parser / lexer pair reset( spec ); try { this.parser.wrapperEntryPoint(); } catch ( TokenStreamException | RecognitionException e ) { String msg = I18n.err( I18n.ERR_13028_SUBTREE_SPEC_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, 0 ); } } }
subtreeSpecificationChecker.parse( strValue );
/** * Parses a subtree specification without exhausting the parser. * * @param spec the specification to be parsed * @throws ParseException if there are any recognition errors (bad syntax) */ public synchronized void parse( String spec ) throws ParseException { if ( spec == null || Strings.isEmpty( spec.trim() ) ) { return; } // reset and initialize the parser / lexer pair reset( spec ); try { this.parser.wrapperEntryPoint(); } catch ( TokenStreamException | RecognitionException e ) { String msg = I18n.err( I18n.ERR_13028_SUBTREE_SPEC_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, 0 ); } } }
subtreeSpecificationChecker.parse( strValue );
/** * Creates an instance of SubtreeSpecificationSyntaxChecker * * @param oid The OID to use for this SyntaxChecker * @param schemaManager the SchemaManager instance */ private SubtreeSpecificationSyntaxChecker( String oid, SchemaManager schemaManager ) { super( oid ); subtreeSpecificationChecker = new SubtreeSpecificationChecker( schemaManager ); }
/** * Parses a subtree specification without exhausting the parser. * * @param spec the specification to be parsed * @throws ParseException if there are any recognition errors (bad syntax) */ public synchronized void parse( String spec ) throws ParseException { if ( spec == null || Strings.isEmpty( spec.trim() ) ) { return; } // reset and initialize the parser / lexer pair reset( spec ); try { this.parser.wrapperEntryPoint(); } catch ( TokenStreamException | RecognitionException e ) { String msg = I18n.err( I18n.ERR_13028_SUBTREE_SPEC_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, 0 ); } } }
subtreeSpecificationChecker.parse( strValue );
/** * Creates an instance of SubtreeSpecificationSyntaxChecker * * @param oid The OID to use for this SyntaxChecker * @param schemaManager the SchemaManager instance */ private SubtreeSpecificationSyntaxChecker( String oid, SchemaManager schemaManager ) { super( oid ); subtreeSpecificationChecker = new SubtreeSpecificationChecker( schemaManager ); }