public class NamespaceURITransformer extends java.lang.Object implements FieldTransformer
Constructor and Description |
---|
NamespaceURITransformer() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
buildFieldValue(java.lang.Object instance,
java.lang.String fieldName,
Session session) |
void |
initialize(AbstractTransformationMapping mapping)
Initialize this transformer.
|
public void initialize(AbstractTransformationMapping mapping)
FieldTransformer
initialize
in interface FieldTransformer
mapping
- - the mapping this transformer is associated with.public java.lang.Object buildFieldValue(java.lang.Object instance, java.lang.String fieldName, Session session)
buildFieldValue
in interface FieldTransformer
instance
- - an instance of the domain class which contains the attributefieldName
- - the name of the field being transformed. Used if the user wants to use this transformer for multiple fields.session
- - the current session