net.sf.jsefa.xml.mapping
Class TextContentMapping
java.lang.Object
net.sf.jsefa.common.mapping.NodeMapping<QName,T>
net.sf.jsefa.xml.mapping.XmlNodeMapping<TextContentDescriptor>
net.sf.jsefa.xml.mapping.TextContentMapping
public final class TextContentMapping
- extends XmlNodeMapping<TextContentDescriptor>
A mapping between an XML text node and a java object. This mapping is used for serialization and
deserialization.
Instances of this class are immutable and thread safe.
- Author:
- Norman Lahme-Huetig, Matthias Derer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextContentMapping
public TextContentMapping(QName dataTypeName,
TextContentDescriptor textContentDescriptor,
FieldDescriptor fieldDescriptor,
Validator validator,
TextMode textMode)
- Constructs a new
TextContentMapping
for the given data type name, text content descriptor and
field descriptor.
- Parameters:
dataTypeName
- the name of the data type.textContentDescriptor
- the descriptor of the attribute nodefieldDescriptor
- the descriptor of the fieldvalidator
- the validator; may be nulltextMode
- the text mode
getTextMode
public TextMode getTextMode()
- Returns the text mode.
- Returns:
- the text mode.
Copyright © 2014. All rights reserved.