Interface ResourceRegistrationXMLElement.Builder<T extends ResourceRegistrationXMLElement,​B extends ResourceRegistrationXMLElement.Builder<T,​B>>

    • Method Detail

      • withOperationKey

        B withOperationKey​(PathElement operationKey)
        Overrides the key used to index the generated operation.
        Parameters:
        operationKey - an operation key
        Returns:
        a reference to this builder.
      • withElementLocalName

        B withElementLocalName​(String localName)
        Overrides the local name of the XML element for this resource.
        Parameters:
        localName - the local element name override.
        Returns:
        a reference to this builder.
      • withElementLocalName

        B withElementLocalName​(Function<PathElement,​String> localName)
        Overrides the logic used to determine the local name of the XML element for this resource.
        Parameters:
        localName - a function returning the element local name for a given path.
        Returns:
        a reference to this builder.
      • withElementName

        default B withElementName​(QName name)
        Overrides the logic used to determine the local element name of this resource.
        Parameters:
        function - a function returning the qualified element name for a given path.
        Returns:
        a reference to this builder.
      • withElementName

        B withElementName​(Function<PathElement,​QName> name)
        Overrides the logic used to determine the element local name of this resource.
        Parameters:
        name - a function returning the qualified element name for a given path.
        Returns:
        a reference to this builder.
      • thenDiscardOperation

        default B thenDiscardOperation()
        Indicates that the operation associated with this resource should be discarded.
        Returns:
        a reference to this builder.
      • withOperationTransformation

        default B withOperationTransformation​(UnaryOperator<org.jboss.dmr.ModelNode> transformer)
        Specifies an operation transformation function, applied after this resource and any children are parsed into an "add" operation. Defaults to UnaryOperator.identity() if unspecified. If this operator returns null, the "add" operation will be discarded.
        Parameters:
        transformer - an operation transformer
        Returns:
        a reference to this builder.
      • withOperationTransformation

        default B withOperationTransformation​(BiFunction<PathAddress,​org.jboss.dmr.ModelNode,​org.jboss.dmr.ModelNode> remappingFunction)
        Specifies an operation remapping function, applied after this resource and any children are parsed into an "add" operation. If this function returns null, the "add" operation will be discarded.
        Parameters:
        remappingFunction - a remapping function for the current operation
        Returns:
        a reference to this builder.
      • withOperationTransformation

        B withOperationTransformation​(BiConsumer<Map<PathAddress,​org.jboss.dmr.ModelNode>,​PathAddress> transformation)
        Specifies an operation transformation function, applied after this resource and any children are parsed into an "add" operation. Defaults to Functions.discardingBiConsumer() if unspecified.
        Parameters:
        transformation - a consumer accepting all operations and the key of the current operation
        Returns:
        a reference to this builder.
      • withDefaultValues

        default B withDefaultValues​(Map<AttributeDefinition,​org.jboss.dmr.ModelNode> overrides)
        Specifies an operation transformation that applies the specified default values for the specified attributes, if otherwise undefined. Used to apply legacy default values to older versions of a schema, e.g. when the default value for an attribute has since changed.
        Parameters:
        attributes - a map of values per attribute.
        Returns:
        a reference to this builder