org.infinispan.schematic.document

## Interface Document.ValueTransformer

- All Known Implementing Classes:
    DocumentTransformer.PropertiesTransformer, DocumentTransformer.SystemPropertiesTransformer
  Enclosing interface:
    Document

      public static interface Document.ValueTransformer

  A component that can transform field values, via `Document.with(ValueTransformer)`. Implementations do not need to worry about `Document` values, since the transformer is never called on such values.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `transform(String name, Object value)` Transform the supplied field value.

- - ### Method Detail

    - #### transform

          Object transform(String name,
                         Object value)

      Transform the supplied field value.
      Parameters:
        `name` - the name of the field; never null
        `value` - the existing value for the field
      Returns:
        the transformed value; never null but may be the same `value` object if no transformation should be made

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.