public class QNameTransformer extends Object implements AttributeTransformer, FieldTransformer
| Modifier and Type | Field and Description |
|---|---|
static String |
QNAME_NAMESPACE_PREFIX |
BUILD_FIELD_VALUE_METHOD| Constructor and Description |
|---|
QNameTransformer(String xPath) |
| Modifier and Type | Method and Description |
|---|---|
Object |
buildAttributeValue(Record record,
Object object,
Session session) |
Object |
buildFieldValue(Object instance,
String fieldName,
Session session) |
void |
initialize(AbstractTransformationMapping mapping)
Initialize this transformer.
|
public static final String QNAME_NAMESPACE_PREFIX
public QNameTransformer(String xPath)
public void initialize(AbstractTransformationMapping mapping)
FieldTransformerinitialize in interface AttributeTransformerinitialize in interface FieldTransformermapping - - The mapping associated with this transformer. Only used if some special information is required.public Object buildAttributeValue(Record record, Object object, Session session)
buildAttributeValue in interface AttributeTransformerrecord - - The metadata being used to build the object.object - - The current object that the attribute is being built for.session - - the current sessionpublic Object buildFieldValue(Object instance, String fieldName, Session session)
buildFieldValue in interface CoreFieldTransformer<Session>buildFieldValue in interface FieldTransformerinstance - - 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 sessionCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.