Class AttributeTransformerChain

  • All Implemented Interfaces:
    AttributeTransformer

    public class AttributeTransformerChain
    extends Object
    implements AttributeTransformer
    A virtual AttributeTransformer that transforms and untransforms attributes by running them through a cascading series of child AttributeTransformer instances.
    • Constructor Detail

      • AttributeTransformerChain

        public AttributeTransformerChain​(AttributeTransformer... transformers)
        Creates a new transformer chain from the given array of transformers. When transforming attributes, these transformers are invoked from first to last; when untransforming they are invoked in the opposite order.
        Parameters:
        transformers - the chain of transformers.
      • AttributeTransformerChain

        public AttributeTransformerChain​(List<AttributeTransformer> transformers)
        Creates a new transformer chain from the given list of transformers. When transforming attributes, these transformers are invoked from first to last; when untransforming they are invoked in the opposite order.
        Parameters:
        transformers - the chain of transformers.