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.
transform
Object transform(String name,
Object value)
- Transform the supplied field value.
- Parameters:
name - the name of the field; never nullvalue - 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-2013 JBoss, a division of Red Hat. All Rights Reserved.