public class BaseUriRule extends SimpleRule
BaseUriRule class.
| Modifier and Type | Field and Description |
|---|---|
static String |
URI_NOT_VALID_MESSAGE
Constant
URI_NOT_VALID_MESSAGE="The baseUri element is not a valid URI" |
static String |
URI_PATTERN
Constant
URI_PATTERN="[.*]?\\{(\\w+)?\\}[.*]*" |
static String |
VERSION_NOT_PRESENT_MESSAGE
Constant
VERSION_NOT_PRESENT_MESSAGE="version parameter must exist in the API"{trunked} |
rules| Constructor and Description |
|---|
BaseUriRule()
Constructor for BaseUriRule.
|
| Modifier and Type | Method and Description |
|---|---|
List<ValidationResult> |
doValidateValue(org.yaml.snakeyaml.nodes.ScalarNode node)
doValidateValue.
|
String |
getBaseUri()
Getter for the field
baseUri. |
Set<String> |
getParameters()
Getter for the field
parameters. |
SimpleRule |
getVersionRule()
getVersionRule.
|
getFieldClass, getKeyNode, getValueNode, getValueNodeType, setFieldClass, setKeyNode, setValueNode, validateKey, wasAlreadyDefinedaddRulesFor, getHandler, getKey, getName, getNodeRuleFactory, getParentTupleRule, getRootTupleRule, getRuleByFieldName, getRuleForTuple, isRequired, isValidValueNodeType, onRuleEnd, setHandler, setName, setNestedRules, setNodeRuleFactory, setParentTupleRule, setRequired, setValueType, validateValuepublic static final String URI_NOT_VALID_MESSAGE
URI_NOT_VALID_MESSAGE="The baseUri element is not a valid URI"public static final String VERSION_NOT_PRESENT_MESSAGE
VERSION_NOT_PRESENT_MESSAGE="version parameter must exist in the API"{trunked}public static final String URI_PATTERN
URI_PATTERN="[.*]?\\{(\\w+)?\\}[.*]*"public Set<String> getParameters()
Getter for the field parameters.
Set object.public List<ValidationResult> doValidateValue(org.yaml.snakeyaml.nodes.ScalarNode node)
doValidateValue.
doValidateValue in class SimpleRulenode - a ScalarNode object.List object.public SimpleRule getVersionRule()
getVersionRule.
SimpleRule object.Copyright © 2015 Mulesoft. All rights reserved.