Package org.wildfly.subsystem.resource
Interface AttributeTranslation
-
public interface AttributeTranslationDescribes an attribute translation.- Author:
- Paul Ferraro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAttributeTranslation.AttributeValueTranslator
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static AttributeTranslationalias(org.jboss.as.controller.AttributeDefinition targetAttribute)default UnaryOperator<org.jboss.as.controller.PathAddress>getPathAddressTranslator()Returns a function that return the targetPathAddressof the resource from which the translated attribute value should be read.AttributeTranslation.AttributeValueTranslatorgetReadAttributeOperationTranslator()Returns the translator of an attribute value for use by "read-attribute" operations.org.jboss.as.controller.AttributeDefinitiongetTargetAttribute()Returns the target attribute definition of this translationAttributeTranslation.AttributeValueTranslatorgetWriteAttributeOperationTranslator()Returns the translator of an attribute value for use by "write-attribute" operations.static AttributeTranslationrelocate(org.jboss.as.controller.AttributeDefinition targetAttribute, UnaryOperator<org.jboss.as.controller.PathAddress> addressTranslator)static AttributeTranslationsingletonList(org.jboss.as.controller.AttributeDefinition targetAttribute)
-
-
-
Method Detail
-
getTargetAttribute
org.jboss.as.controller.AttributeDefinition getTargetAttribute()
Returns the target attribute definition of this translation- Returns:
- the target attribute definition
-
getReadAttributeOperationTranslator
AttributeTranslation.AttributeValueTranslator getReadAttributeOperationTranslator()
Returns the translator of an attribute value for use by "read-attribute" operations.- Returns:
- an attribute translator
-
getWriteAttributeOperationTranslator
AttributeTranslation.AttributeValueTranslator getWriteAttributeOperationTranslator()
Returns the translator of an attribute value for use by "write-attribute" operations.- Returns:
- an attribute translator
-
getPathAddressTranslator
default UnaryOperator<org.jboss.as.controller.PathAddress> getPathAddressTranslator()
Returns a function that return the targetPathAddressof the resource from which the translated attribute value should be read.- Returns:
- a path address transformation function
-
alias
static AttributeTranslation alias(org.jboss.as.controller.AttributeDefinition targetAttribute)
-
relocate
static AttributeTranslation relocate(org.jboss.as.controller.AttributeDefinition targetAttribute, UnaryOperator<org.jboss.as.controller.PathAddress> addressTranslator)
-
singletonList
static AttributeTranslation singletonList(org.jboss.as.controller.AttributeDefinition targetAttribute)
-
-