Examples of SyntaxProcessor


Examples of com.github.fge.jsonschema.core.keyword.syntax.SyntaxProcessor

    private final Processor<SchemaContext, ValidatorList> builder;

    public ValidationChain(final RefResolver refResolver,
        final Library library, final ValidationConfiguration cfg)
    {
        final SyntaxProcessor syntaxProcessor = new SyntaxProcessor(
            cfg.getSyntaxMessages(), library.getSyntaxCheckers());
        final ProcessorChain<ValueHolder<SchemaTree>, ValueHolder<SchemaTree>>
            chain1
            = ProcessorChain.startWith(refResolver).chainWith(syntaxProcessor);
View Full Code Here

Examples of com.github.fge.jsonschema.core.keyword.syntax.SyntaxProcessor

            map = new ProcessorMap<JsonRef, ValueHolder<SchemaTree>, ValueHolder<SchemaTree>>(FUNCTION);

        Dictionary<SyntaxChecker> dict;
        dict = cfg.getDefaultLibrary().getSyntaxCheckers();

        final SyntaxProcessor byDefault = new SyntaxProcessor(
            cfg.getSyntaxMessages(), dict);

        map.setDefaultProcessor(byDefault);

        final Map<JsonRef,Library> libraries = cfg.getLibraries();

        JsonRef ref;
        SyntaxProcessor syntaxProcessor;

        for (final Map.Entry<JsonRef, Library> entry: libraries.entrySet()) {
            ref = entry.getKey();
            dict = entry.getValue().getSyntaxCheckers();
            syntaxProcessor = new SyntaxProcessor(syntaxMessages, dict);
            map.addEntry(ref, syntaxProcessor);
        }

        processor = map.getProcessor();
    }
View Full Code Here

Examples of simplenlg.syntax.english.SyntaxProcessor

  public void initialise() {
    this.morphology = new MorphologyProcessor();
    this.morphology.initialise();
    this.orthography = new OrthographyProcessor();
    this.orthography.initialise();
    this.syntax = new SyntaxProcessor();
    this.syntax.initialise();
    this.formatter = new TextFormatter();
    //AG: added call to initialise for formatter
    this.formatter.initialise();
  }
View Full Code Here

Examples of simplenlg.syntax.english.SyntaxProcessor

  public NewAggregator() {

  }

  public void initialise() {
    this._syntax = new SyntaxProcessor();
    this._factory = new NLGFactory();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.