ModeShape Distribution 3.0.0.Beta4

Interface Document.ValueTransformer

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

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
 Object transform(String name, Object value)
          Transform the supplied field value.

Method Detail


Object transform(String name,
                 Object value)
Transform the supplied field value.

name - the name of the field; never null
value - the existing value for the field
the transformed value; never null but may be the same value object if no transformation should be made

ModeShape Distribution 3.0.0.Beta4

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