org.raml.parser.rule
Class ImplicitMapEntryRule
java.lang.Object
org.raml.parser.rule.DefaultTupleRule<ScalarNode,MappingNode>
org.raml.parser.rule.ImplicitMapEntryRule
- All Implemented Interfaces:
- NodeRule<MappingNode>, TupleRule<ScalarNode,MappingNode>
public class ImplicitMapEntryRule
- extends DefaultTupleRule<ScalarNode,MappingNode>
| Methods inherited from class org.raml.parser.rule.DefaultTupleRule |
addRulesFor, getHandler, getKey, getMissingRuleMessage, getName, getNodeRuleFactory, getParentTupleRule, getRuleByFieldName, isRequired, setHandler, setNestedRules, setNodeRuleFactory, setParentTupleRule, setRequired, validateKey, validateValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImplicitMapEntryRule
public ImplicitMapEntryRule(String fieldName,
Class valueType)
getRuleForTuple
public TupleRule<?,?> getRuleForTuple(NodeTuple nodeTuple)
- Specified by:
getRuleForTuple in interface TupleRule<ScalarNode,MappingNode>- Overrides:
getRuleForTuple in class DefaultTupleRule<ScalarNode,MappingNode>
onRuleEnd
public List<ValidationResult> onRuleEnd()
- Description copied from interface:
NodeRule
- Called when the ruled was ended to verify all mandatory fields are present
- Specified by:
onRuleEnd in interface NodeRule<MappingNode>- Overrides:
onRuleEnd in class DefaultTupleRule<ScalarNode,MappingNode>
- Returns:
Copyright © 2013. All rights reserved.