Package org.raml.parser.resolver

Examples of org.raml.parser.resolver.DefaultTupleHandler


        else
        {
            errors.add(ValidationResult.createErrorResult("Invalid element", keyNode));
        }

        return new DefaultTupleRule(keyNode.toString(), new DefaultTupleHandler(), getNodeRuleFactory());
    }
View Full Code Here


        return true;
    }

    private TupleBuilder<?, ?> buildDocumentBuilder()
    {
        DefaultTupleBuilder<Node, MappingNode> documentBuilder = new DefaultTupleBuilder<Node, MappingNode>(new DefaultTupleHandler());
        documentBuilder.addBuildersFor(documentClass);
        return documentBuilder;
    }
View Full Code Here

    @Override
    public NodeBuilder getBuilderForTuple(NodeTuple tuple)
    {
        if (getBuilders() == null || getBuilders().isEmpty())
        {
            return new DefaultTupleBuilder(new DefaultTupleHandler());
        }
        for (TupleBuilder tupleBuilder : getBuilders().values())
        {
            if (tupleBuilder.getHandler().handles(tuple))
            {
View Full Code Here

        this.extensions = extensions;
    }

    public DefaultTupleRule<Node, MappingNode> createDocumentRule(Class<?> documentClass)
    {
        DefaultTupleRule<Node, MappingNode> documentRule = new DefaultTupleRule<Node, MappingNode>(null, new DefaultTupleHandler());
        documentRule.setNodeRuleFactory(this);
        documentRule.addRulesFor(documentClass);
        return documentRule;
    }
View Full Code Here

public class UnknownTupleRule<K extends Node, V extends Node> extends DefaultTupleRule<K, V>
{

    public UnknownTupleRule(String fieldName)
    {
        super(fieldName, new DefaultTupleHandler());
    }
View Full Code Here

TOP

Related Classes of org.raml.parser.resolver.DefaultTupleHandler

Copyright © 2018 www.massapicom. 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.