Module org.eclipse.persistence.core
Interface XMLMapping
-
- All Superinterfaces:
Mapping<AbstractSession,AttributeAccessor,ContainerPolicy,ClassDescriptor,DatabaseField,XMLRecord>
- All Known Implementing Classes:
XMLAnyAttributeMapping,XMLAnyCollectionMapping,XMLAnyObjectMapping,XMLBinaryDataCollectionMapping,XMLBinaryDataMapping,XMLChoiceCollectionMapping,XMLChoiceObjectMapping,XMLCollectionReferenceMapping,XMLCompositeCollectionMapping,XMLCompositeDirectCollectionMapping,XMLCompositeObjectMapping,XMLDirectMapping,XMLFragmentCollectionMapping,XMLFragmentMapping,XMLObjectReferenceMapping,XMLTransformationMapping,XMLVariableXPathCollectionMapping,XMLVariableXPathObjectMapping
public interface XMLMapping extends Mapping<AbstractSession,AttributeAccessor,ContainerPolicy,ClassDescriptor,DatabaseField,XMLRecord>
INTERNAL All mappings which can be added to org.eclipse.persistence.oxm.XMLDescriptor must implement this interface.- See Also:
org.eclipse.persistence.oxm.mappings
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconvertClassNamesToClasses(ClassLoader classLoader)booleanisWriteOnly()voidsetIsWriteOnly(boolean b)voidwriteSingleValue(Object value, Object parent, XMLRecord record, AbstractSession session)INTERNAL: A method that marshals a single value to the provided Record based on this mapping's XPath.-
Methods inherited from interface org.eclipse.persistence.internal.oxm.mappings.Mapping
getAttributeAccessor, getAttributeClassification, getAttributeName, getAttributeValueFromObject, getContainerPolicy, getDescriptor, getField, getReferenceDescriptor, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractCompositeObjectMapping, isAbstractDirectMapping, isCollectionMapping, isReadOnly, isReferenceMapping, isTransformationMapping, setAttributeAccessor, setAttributeName, setAttributeValueInObject, setGetMethodName, setIsReadOnly, setProperties, setSetMethodName
-
-
-
-
Method Detail
-
convertClassNamesToClasses
void convertClassNamesToClasses(ClassLoader classLoader)
- Specified by:
convertClassNamesToClassesin interfaceMapping<AbstractSession,AttributeAccessor,ContainerPolicy,ClassDescriptor,DatabaseField,XMLRecord>
-
writeSingleValue
void writeSingleValue(Object value, Object parent, XMLRecord record, AbstractSession session)
INTERNAL: A method that marshals a single value to the provided Record based on this mapping's XPath. Used for Sequenced marshalling.- Specified by:
writeSingleValuein interfaceMapping<AbstractSession,AttributeAccessor,ContainerPolicy,ClassDescriptor,DatabaseField,XMLRecord>- Parameters:
value- - The value to be marshalledrecord- - The Record the value is being marshalled too.
-
isWriteOnly
boolean isWriteOnly()
-
setIsWriteOnly
void setIsWriteOnly(boolean b)
-
-