public final class ElementMapping extends XmlNodeMapping<ElementDescriptor>
Instances of this class are immutable and thread safe.
| Constructor and Description |
|---|
ElementMapping(QName dataTypeName,
ElementDescriptor elementDescriptor,
Class<?> objectType,
FieldDescriptor fieldDescriptor,
Validator validator,
boolean elementNameIsAmbiguous,
TextMode textMode)
Constructs a new
ElementMapping. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
elementNameIsAmbiguous() |
TextMode |
getTextMode() |
boolean |
isIndirectMapping()
Signals if this is an indirect mapping.
|
getDataTypeName, getFieldDescriptor, getNodeDescriptor, getObjectType, getValidatorpublic ElementMapping(QName dataTypeName, ElementDescriptor elementDescriptor, Class<?> objectType, FieldDescriptor fieldDescriptor, Validator validator, boolean elementNameIsAmbiguous, TextMode textMode)
ElementMapping.dataTypeName - the name of the data type. This may be the data type name of the element node itself or
of its implicit parent node.elementDescriptor - the descriptor of the elementobjectType - the type of the object. May be different from the object type contained in the field
descriptor.fieldDescriptor - the descriptor of the fieldvalidator - the validator; may be nullelementNameIsAmbiguous - true, if the name of the element in its given context (position in the xml
document) is ambiguous, i. e. there is sibling element with the same name; false otherwise.textMode - defines the text mode in case of an element with text content (simple or not); may be
null.public boolean elementNameIsAmbiguous()
public TextMode getTextMode()
public boolean isIndirectMapping()
NodeMappingisIndirectMapping in class NodeMapping<QName,ElementDescriptor>Copyright © 2014. All rights reserved.