org.raml.parser.rule
Class BaseUriRule

java.lang.Object
  extended by org.raml.parser.rule.DefaultTupleRule<ScalarNode,ScalarNode>
      extended by org.raml.parser.rule.SimpleRule
          extended by org.raml.parser.rule.BaseUriRule
All Implemented Interfaces:
NodeRule<ScalarNode>, TupleRule<ScalarNode,ScalarNode>

public class BaseUriRule
extends SimpleRule


Field Summary
static String URI_NOT_VALID_MESSAGE
           
static String VERSION_NOT_PRESENT_MESSAGE
           
 
Fields inherited from class org.raml.parser.rule.DefaultTupleRule
rules
 
Constructor Summary
BaseUriRule()
           
 
Method Summary
 String getBaseUri()
           
 Set<String> getParameters()
           
 SimpleRule getVersionRule()
           
 List<ValidationResult> validateValue(ScalarNode node)
          Validates the given value
 
Methods inherited from class org.raml.parser.rule.SimpleRule
getDuplicateRuleMessage, getFieldClass, getKeyNode, getRuleEmptyMessage, getRuleTypeMisMatch, getValueNode, setFieldClass, setKeyNode, setValueNode, validateKey, wasAlreadyDefined
 
Methods inherited from class org.raml.parser.rule.DefaultTupleRule
addRulesFor, getHandler, getKey, getMissingRuleMessage, getName, getNodeRuleFactory, getParentTupleRule, getRuleByFieldName, getRuleForTuple, isRequired, onRuleEnd, setHandler, setNestedRules, setNodeRuleFactory, setParentTupleRule, setRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI_NOT_VALID_MESSAGE

public static final String URI_NOT_VALID_MESSAGE
See Also:
Constant Field Values

VERSION_NOT_PRESENT_MESSAGE

public static final String VERSION_NOT_PRESENT_MESSAGE
See Also:
Constant Field Values
Constructor Detail

BaseUriRule

public BaseUriRule()
Method Detail

getBaseUri

public String getBaseUri()

getParameters

public Set<String> getParameters()

validateValue

public List<ValidationResult> validateValue(ScalarNode node)
Description copied from interface: NodeRule
Validates the given value

Specified by:
validateValue in interface NodeRule<ScalarNode>
Overrides:
validateValue in class SimpleRule
Parameters:
node - The value to validate
Returns:

getVersionRule

public SimpleRule getVersionRule()


Copyright © 2013. All rights reserved.