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 boolean |
checkValue(org.jboss.dmr.ModelNode operation,
String attrName,
org.jboss.dmr.ModelNode attribute,
boolean isGeneratedWriteAttribute) |
protected abstract boolean |
checkValue(String attrName,
org.jboss.dmr.ModelNode attribute,
boolean isGeneratedWriteAttribute) |
FailedOperationTransformationConfig.AttributesPathAddressConfig<T> |
configureComplexAttribute(String attribute,
T childConfig) |
protected static String[] |
convert(org.jboss.as.controller.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 isGeneratedWriteAttribute) |
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(org.jboss.as.controller.AttributeDefinition... attributes) |
FailedOperationTransformationConfig.AttributesPathAddressConfig<T> |
setNotExpectedWriteFailure(String... attributes) |
FailedOperationTransformationConfig.AttributesPathAddressConfig<T> |
setReadOnly(org.jboss.as.controller.AttributeDefinition... attributes) |
FailedOperationTransformationConfig.AttributesPathAddressConfig<T> |
setReadOnly(String... attributes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitoperationDoneprotected final Map<String,FailedOperationTransformationConfig.AttributesPathAddressConfig<?>> complexAttributes
protected AttributesPathAddressConfig(String... attributes)
public FailedOperationTransformationConfig.AttributesPathAddressConfig<T> configureComplexAttribute(String attribute, T childConfig)
protected static String[] convert(org.jboss.as.controller.AttributeDefinition... defs)
public List<org.jboss.dmr.ModelNode> createWriteAttributeOperations(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfigcreateWriteAttributeOperations in interface FailedOperationTransformationConfig.PathAddressConfigprotected abstract boolean isAttributeWritable(String attributeName)
public FailedOperationTransformationConfig.AttributesPathAddressConfig<T> setNotExpectedWriteFailure(String... attributes)
public FailedOperationTransformationConfig.AttributesPathAddressConfig<T> setNotExpectedWriteFailure(org.jboss.as.controller.AttributeDefinition... attributes)
public FailedOperationTransformationConfig.AttributesPathAddressConfig<T> setReadOnly(String... attributes)
public FailedOperationTransformationConfig.AttributesPathAddressConfig<T> setReadOnly(org.jboss.as.controller.AttributeDefinition... attributes)
public boolean expectFailed(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfigexpectFailed in interface FailedOperationTransformationConfig.PathAddressConfigoperation - the operation to checktrue if expected to failpublic boolean canCorrectMore(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfigcanCorrectMore in interface FailedOperationTransformationConfig.PathAddressConfigoperation - the operation to checktrue if expected to fail, false otherwisepublic boolean expectFailedWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfigexpectFailedWriteAttributeOperation in interface FailedOperationTransformationConfig.PathAddressConfigoperation - the 'add' operation to correcttrue if expected to failpublic org.jboss.dmr.ModelNode correctOperation(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfigFailedOperationTransformationConfig.PathAddressConfig.canCorrectMore(ModelNode) returned true
It is preferable to correct one attribute at a time.correctOperation in interface FailedOperationTransformationConfig.PathAddressConfigoperation - the operation to correctprotected boolean correctUndefinedValue()
public org.jboss.dmr.ModelNode correctWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfigFailedOperationTransformationConfig.PathAddressConfig.correctWriteAttributeOperation(ModelNode)
returned true, so make sure to do everything to correct the value attribute.correctWriteAttributeOperation in interface FailedOperationTransformationConfig.PathAddressConfigoperation - the 'write-attribute' operation to correctpublic boolean expectDiscarded(org.jboss.dmr.ModelNode operation)
FailedOperationTransformationConfig.PathAddressConfigexpectDiscarded in interface FailedOperationTransformationConfig.PathAddressConfigoperation - the operation to checktrue if expected to failprotected boolean checkValue(org.jboss.dmr.ModelNode operation,
String attrName,
org.jboss.dmr.ModelNode attribute,
boolean isGeneratedWriteAttribute)
protected abstract boolean checkValue(String attrName, org.jboss.dmr.ModelNode attribute, boolean isGeneratedWriteAttribute)
protected abstract org.jboss.dmr.ModelNode correctValue(org.jboss.dmr.ModelNode toResolve,
boolean isGeneratedWriteAttribute)
Copyright © 2021 JBoss by Red Hat. All rights reserved.