net.sf.jsefa.xml.mapping
Class TextContentMapping

java.lang.Object
  extended by net.sf.jsefa.common.mapping.NodeMapping<QName,T>
      extended by net.sf.jsefa.xml.mapping.XmlNodeMapping<TextContentDescriptor>
          extended by 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

Constructor Summary
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.
 
Method Summary
 TextMode getTextMode()
          Returns the text mode.
 
Methods inherited from class net.sf.jsefa.common.mapping.NodeMapping
getDataTypeName, getFieldDescriptor, getNodeDescriptor, getObjectType, getValidator, isIndirectMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 node
fieldDescriptor - the descriptor of the field
validator - the validator; may be null
textMode - the text mode
Method Detail

getTextMode

public TextMode getTextMode()
Returns the text mode.

Returns:
the text mode.


Copyright © 2014. All rights reserved.