public interface BaseAttributeTransformationDescriptionBuilder<T extends BaseAttributeTransformationDescriptionBuilder<?>>
DISCARD
- All attributes with a DiscardAttributeChecker
registered are checked to see if the attribute should be discardedREJECT
- All attributes with a RejectAttributeChecker
s registered are checked to see if the attribute should be rejectedCONVERT
- All attributes with a AttributeConverter
registered are checked to see if the attribute should be converted. If the attribute does not
exist in the original operation/resource the AttributeConverter
may register a new attributeRENAME
- All attributes with a rename registered are renamedResourceTransformer
which may be registered for a resource in ResourceTransformationDescriptionBuilder.setCustomResourceTransformer(org.jboss.as.controller.transform.ResourceTransformer)
is executed after all the conversions done by this builder.ResourceTransformationDescriptionBuilder.getAttributeBuilder()
,
ResourceTransformationDescriptionBuilder.setCustomResourceTransformer(org.jboss.as.controller.transform.ResourceTransformer)
Modifier and Type | Method and Description |
---|---|
T |
addRejectCheck(RejectAttributeChecker rejectChecker,
AttributeDefinition... rejectedAttributes)
Adds a RejectAttributeChecker.
|
T |
addRejectCheck(RejectAttributeChecker rejectChecker,
String... rejectedAttributes)
Adds a RejectAttributeChecker.
|
T |
addRejectChecks(List<RejectAttributeChecker> rejectCheckers,
AttributeDefinition... rejectedAttributes)
Adds a list of RejectAttributeCheckers.
|
T |
addRejectChecks(List<RejectAttributeChecker> rejectCheckers,
String... rejectedAttributes)
Adds a list of RejectAttributeCheckers.
|
T |
addRename(AttributeDefinition attributeName,
String newName)
Rename an attribute.
|
T |
addRename(String attributeName,
String newName)
Rename an attribute.
|
T |
addRenames(Map<String,String> renames)
Rename attributes.
|
ResourceTransformationDescriptionBuilder |
end()
Finish with this attribute builder and return control to the parent resource transformation builder
|
T |
setDiscard(DiscardAttributeChecker discardChecker,
AttributeDefinition... discardedAttributes)
Sets the DiscardChecker to be used to check if an attribute should be discarded.
|
T |
setDiscard(DiscardAttributeChecker discardChecker,
String... discardedAttributes)
Sets the DiscardChecker to be used to check if an attribute should be discarded.
|
T |
setValueConverter(AttributeConverter attributeConverter,
AttributeDefinition... convertedAttributes)
Use to convert an attribute's value.
|
T |
setValueConverter(AttributeConverter attributeConverter,
String... convertedAttributes)
Use to convert an attribute's value.
|
T addRejectCheck(RejectAttributeChecker rejectChecker, String... rejectedAttributes)
Rejection is done in the REJECT
phase.
rejectChecker
- the checkerrejectedAttributes
- the attributes to checkT addRejectCheck(RejectAttributeChecker rejectChecker, AttributeDefinition... rejectedAttributes)
Rejection is done in the REJECT
phase.
rejectChecker
- the checkerrejectedAttributes
- the attributes to checkT addRejectChecks(List<RejectAttributeChecker> rejectCheckers, String... rejectedAttributes)
Rejection is done in the REJECT
phase.
rejectCheckers
- the checkersrejectedAttributes
- the attributes to checkT addRejectChecks(List<RejectAttributeChecker> rejectCheckers, AttributeDefinition... rejectedAttributes)
Rejection is done in the REJECT
phase.
rejectCheckers
- the checkersrejectedAttributes
- the attributes to checkT setDiscard(DiscardAttributeChecker discardChecker, String... discardedAttributes)
Discard is done in the DISCARD
phase.
discardChecker
- the checkersdiscardedAttributes
- the attributes to checkT setDiscard(DiscardAttributeChecker discardChecker, AttributeDefinition... discardedAttributes)
Discard is done in the DISCARD
phase.
discardChecker
- the checkersdiscardedAttributes
- the attributes to checkT addRename(String attributeName, String newName)
Renaming is done in the RENAME
phase.
attributeName
- the attribute's original namenewName
- the new name for the attributeT addRename(AttributeDefinition attributeName, String newName)
Renaming is done in the RENAME
phase.
attributeName
- the attribute's original namenewName
- the new name for the attributeT addRenames(Map<String,String> renames)
Renaming is done in the RENAME
phase.
renames
- a Map where the keys are the original attribute names, and the values are the new attribute namesT setValueConverter(AttributeConverter attributeConverter, String... convertedAttributes)
Conversion/Adding is done in the CONVERT
phase.
attributeConverter
- the attribute converter used to convert the value of each attributeconvertedAttributes
- the attributes the attribute converter should be used onT setValueConverter(AttributeConverter attributeConverter, AttributeDefinition... convertedAttributes)
Conversion/Adding is done in the CONVERT
phase.
attributeConverter
- the attribute converter used to convert the value of each attributeconvertedAttributes
- the attributes the attribute converter should be used onResourceTransformationDescriptionBuilder end()
Copyright © 2013 JBoss by Red Hat. All rights reserved.