public class FileCorrector extends Object implements ParameterCorrector
relative-to
attribute.
Checks the path
attribute for an absolute
path. If the path is absolute, the current relative-to
attribute is not copied over. If the path is not absolute the current relative-to
attribute is copied over.
Date: 29.11.2011Modifier and Type | Field and Description |
---|---|
static FileCorrector |
INSTANCE |
Constructor and Description |
---|
FileCorrector() |
Modifier and Type | Method and Description |
---|---|
org.jboss.dmr.ModelNode |
correct(org.jboss.dmr.ModelNode newValue,
org.jboss.dmr.ModelNode currentValue)
Adjusts the value to be set on the attribute.
|
public static final FileCorrector INSTANCE
public org.jboss.dmr.ModelNode correct(org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode currentValue)
ParameterCorrector
correct
in interface ParameterCorrector
newValue
- the new value to be setcurrentValue
- the current value of the attributeCopyright © 2023 JBoss by Red Hat. All rights reserved.