org.raml.parser.rule
Class ContributionTupleRule
java.lang.Object
org.raml.parser.rule.ContributionTupleRule
- All Implemented Interfaces:
- NodeRule<Node>, TupleRule<Node,Node>
public class ContributionTupleRule
- extends Object
- implements TupleRule<Node,Node>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContributionTupleRule
public ContributionTupleRule(TupleRule rule,
List<TupleRule> contributionRules)
validateKey
public List<ValidationResult> validateKey(Node key)
- Specified by:
validateKey in interface TupleRule<Node,Node>
getRuleForTuple
public TupleRule<?,?> getRuleForTuple(NodeTuple nodeTuple)
- Specified by:
getRuleForTuple in interface TupleRule<Node,Node>
setParentTupleRule
public void setParentTupleRule(TupleRule<?,?> parent)
- Specified by:
setParentTupleRule in interface TupleRule<Node,Node>
getParentTupleRule
public TupleRule<?,?> getParentTupleRule()
- Specified by:
getParentTupleRule in interface TupleRule<Node,Node>
getName
public String getName()
- Specified by:
getName in interface TupleRule<Node,Node>
getRuleByFieldName
public TupleRule<?,?> getRuleByFieldName(String fieldName)
- Specified by:
getRuleByFieldName in interface TupleRule<Node,Node>
setNestedRules
public void setNestedRules(Map<String,TupleRule<?,?>> innerBuilders)
- Specified by:
setNestedRules in interface TupleRule<Node,Node>
setHandler
public void setHandler(TupleHandler tupleHandler)
- Specified by:
setHandler in interface TupleRule<Node,Node>
getHandler
public TupleHandler getHandler()
- Specified by:
getHandler in interface TupleRule<Node,Node>
setRequired
public void setRequired(boolean required)
- Specified by:
setRequired in interface TupleRule<Node,Node>
setNodeRuleFactory
public void setNodeRuleFactory(NodeRuleFactory nodeRuleFactory)
- Specified by:
setNodeRuleFactory in interface TupleRule<Node,Node>
getKey
public Node getKey()
- Specified by:
getKey in interface TupleRule<Node,Node>
validateValue
public List<ValidationResult> validateValue(Node value)
- Description copied from interface:
NodeRule
- Validates the given value
- Specified by:
validateValue in interface NodeRule<Node>
- Parameters:
value - The value to validate
- Returns:
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<Node>
- Returns:
Copyright © 2013. All rights reserved.