Package org.wildfly.subsystem.resource
Interface AttributeTranslation
public interface AttributeTranslation
Describes an attribute translation.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeTranslationalias(org.jboss.as.controller.AttributeDefinition targetAttribute) default UnaryOperator<org.jboss.as.controller.PathAddress>Returns a function that return the targetPathAddressof the resource from which the translated attribute value should be read.Returns the translator of an attribute value for use by "read-attribute" operations.org.jboss.as.controller.AttributeDefinitionReturns the target attribute definition of this translationReturns 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 Details
-
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
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
-
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)
-