public class IgnoreDifferenceTransform extends AbstractDifferenceReferringTransform<IgnoreDifferenceTransform.IgnoreRecipe,Void>
Difference.code) and on the old or new elements' full human representations
(Element.getFullHumanReadableString()).
The transform is configured using properties in the general form of:
{
"revapi" : {
"ignore" : [
{
"regex" : false,
"code" : "PROBLEM_CODE",
"old" : "FULL_REPRESENTATION_OF_THE_OLD_ELEMENT",
"new" : "FULL_REPRESENTATION_OF_THE_NEW_ELEMENT",
},
...
]
}
}
The code is mandatory (obviously). The old and new properties are optional and the rule will
match when all the specified properties of it match. If regex attribute is "true" (defaults to "false"), all the
code, old and new are understood as regexes (java regexes, not javascript ones).| Modifier and Type | Class and Description |
|---|---|
static class |
IgnoreDifferenceTransform.IgnoreRecipe |
| Constructor and Description |
|---|
IgnoreDifferenceTransform() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String[] |
getConfigurationRootPaths() |
Reader |
getJSONSchema(String configurationRootPath) |
protected Void |
initConfiguration() |
protected IgnoreDifferenceTransform.IgnoreRecipe |
newRecipe(Void context,
org.jboss.dmr.ModelNode config) |
getDifferenceCodePatterns, initialize, transform@Nullable protected Void initConfiguration()
initConfiguration in class AbstractDifferenceReferringTransform<IgnoreDifferenceTransform.IgnoreRecipe,Void>@Nonnull protected IgnoreDifferenceTransform.IgnoreRecipe newRecipe(Void context, org.jboss.dmr.ModelNode config)
newRecipe in class AbstractDifferenceReferringTransform<IgnoreDifferenceTransform.IgnoreRecipe,Void>public void close()
Copyright © 2015. All Rights Reserved.