public abstract static class FailedOperationTransformationConfig.AttributesPathAddressConfig<T extends FailedOperationTransformationConfig.AttributesPathAddressConfig<T>> extends Object implements FailedOperationTransformationConfig.PathAddressConfig
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
attributes |
protected Map<String,FailedOperationTransformationConfig.AttributesPathAddressConfig<?>> |
complexAttributes |
protected Set<String> |
noWriteFailureAttributes |
protected Set<String> |
readOnlyAttributes |
Modifier | Constructor and Description |
---|---|
protected |
AttributesPathAddressConfig(String... attributes) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCorrectMore(org.jboss.dmr.ModelNode operation)
Whether something can be corrected in the operation to make it pass.
|
protected abstract boolean |
checkValue(String attrName,
org.jboss.dmr.ModelNode attribute,
boolean isWriteAttribute) |
FailedOperationTransformationConfig.AttributesPathAddressConfig<T> |
configureComplexAttribute(String attribute,
T childConfig) |
protected static String[] |
convert(AttributeDefinition... defs) |
org.jboss.dmr.ModelNode |
correctOperation(org.jboss.dmr.ModelNode operation)
Correct the operation, only called if
FailedOperationTransformationConfig.PathAddressConfig.canCorrectMore(ModelNode) returned true
It is preferable to correct one attribute at a time. |
protected boolean |
correctUndefinedValue() |
protected abstract org.jboss.dmr.ModelNode |
correctValue(org.jboss.dmr.ModelNode toResolve,
boolean isWriteAttribute) |
org.jboss.dmr.ModelNode |
correctWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
Correct the operation.
|
List<org.jboss.dmr.ModelNode> |
createWriteAttributeOperations(org.jboss.dmr.ModelNode operation)
Creates write attribute operations for the add operations
|
boolean |
expectDiscarded(org.jboss.dmr.ModelNode operation)
Whether the operation is expected to be discarded
|
boolean |
expectFailed(org.jboss.dmr.ModelNode operation)
Whether it is expected that the following operation should fail
|
boolean |
expectFailedWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
Whether it is expected that the following write attribute operation should fail
|
protected abstract boolean |
isAttributeWritable(String attributeName) |
FailedOperationTransformationConfig.AttributesPathAddressConfig<T> |
setNotExpectedWriteFailure(AttributeDefinition... attributes) |
FailedOperationTransformationConfig.AttributesPathAddressConfig<T> |
setNotExpectedWriteFailure(String... attributes) |
FailedOperationTransformationConfig.AttributesPathAddressConfig<T> |
setReadOnly(AttributeDefinition... attributes) |
FailedOperationTransformationConfig.AttributesPathAddressConfig<T> |
setReadOnly(String... attributes) |
protected final Map<String,FailedOperationTransformationConfig.AttributesPathAddressConfig<?>> complexAttributes
protected AttributesPathAddressConfig(String... attributes)
public FailedOperationTransformationConfig.AttributesPathAddressConfig<T> configureComplexAttribute(String attribute, T childConfig)
protected static String[] convert(AttributeDefinition... defs)
public List<org.jboss.dmr.ModelNode> createWriteAttributeOperations(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfig
createWriteAttributeOperations
in interface FailedOperationTransformationConfig.PathAddressConfig
protected abstract boolean isAttributeWritable(String attributeName)
public FailedOperationTransformationConfig.AttributesPathAddressConfig<T> setNotExpectedWriteFailure(String... attributes)
public FailedOperationTransformationConfig.AttributesPathAddressConfig<T> setNotExpectedWriteFailure(AttributeDefinition... attributes)
public FailedOperationTransformationConfig.AttributesPathAddressConfig<T> setReadOnly(String... attributes)
public FailedOperationTransformationConfig.AttributesPathAddressConfig<T> setReadOnly(AttributeDefinition... attributes)
public boolean expectFailed(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfig
expectFailed
in interface FailedOperationTransformationConfig.PathAddressConfig
operation
- the operation to checktrue
if expected to failpublic boolean canCorrectMore(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfig
canCorrectMore
in interface FailedOperationTransformationConfig.PathAddressConfig
operation
- the operation to checktrue
if expected to fail, false
otherwisepublic boolean expectFailedWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfig
expectFailedWriteAttributeOperation
in interface FailedOperationTransformationConfig.PathAddressConfig
operation
- the 'add' operation to correcttrue
if expected to failpublic org.jboss.dmr.ModelNode correctOperation(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfig
FailedOperationTransformationConfig.PathAddressConfig.canCorrectMore(ModelNode)
returned true
It is preferable to correct one attribute at a time.correctOperation
in interface FailedOperationTransformationConfig.PathAddressConfig
operation
- the operation to correctprotected boolean correctUndefinedValue()
public org.jboss.dmr.ModelNode correctWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfig
FailedOperationTransformationConfig.PathAddressConfig.correctWriteAttributeOperation(ModelNode)
returned true
, so make sure to do everything to correct the value
attribute.correctWriteAttributeOperation
in interface FailedOperationTransformationConfig.PathAddressConfig
operation
- the 'write-attribute' operation to correctpublic boolean expectDiscarded(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfig
expectDiscarded
in interface FailedOperationTransformationConfig.PathAddressConfig
operation
- the operation to checktrue
if expected to failprotected abstract boolean checkValue(String attrName, org.jboss.dmr.ModelNode attribute, boolean isWriteAttribute)
protected abstract org.jboss.dmr.ModelNode correctValue(org.jboss.dmr.ModelNode toResolve, boolean isWriteAttribute)
Copyright © 2023 JBoss by Red Hat. All rights reserved.