class RestParameterMappingRule
extends java.lang.Object
mapping.xml
file, holds a pair of source and target values, defining
the mapping rule, as set in the
conditional:conditionalRuleSet/conditional:if/mapping:rule
XML node.Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
source
mapping.xml conditional:conditionalRuleSet/conditional:if/mapping:rule[source].
|
(package private) java.lang.String |
target
mapping.xml conditional:conditionalRuleSet/conditional:if/mapping:rule[target].
|
Constructor and Description |
---|
RestParameterMappingRule(java.lang.String source,
java.lang.String target)
Initialize this instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(RestLegacyParameter param)
Check if the parameter matches this rule - for this to match, the source (or target),
depending on parameter's mode, must have the
idl.param[legacy-name] ,
where legacy-name is the argument's legacy name. |
final java.lang.String source
final java.lang.String target
public RestParameterMappingRule(java.lang.String source, java.lang.String target)
source
- The mapping source.target
- The mapping target.public boolean matches(RestLegacyParameter param)
idl.param[legacy-name]
,
where legacy-name
is the argument's legacy name.param
- The parameter to check.true
if the rule is for the specified parameter.