Class MapperUtils
- java.lang.Object
-
- de.julielab.jcore.reader.xmlmapper.mapper.MapperUtils
-
public class MapperUtils extends Object
Some utility methods like string transformations.- Author:
- faessler
-
-
Constructor Summary
Constructors Constructor Description MapperUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetElementFragmentString(com.ximpleware.VTDNav vn)Returns XML fragment corresponding to the XML elementvnpoints to.
This fragment is represented by the exact bytes of the underlying XML text document corresponding the XML element wherevnis positioned.static StringgetElementText(com.ximpleware.VTDNav vn)
-
-
-
Method Detail
-
getElementFragmentString
public static String getElementFragmentString(com.ximpleware.VTDNav vn) throws com.ximpleware.NavException
Returns XML fragment corresponding to the XML elementvnpoints to.
This fragment is represented by the exact bytes of the underlying XML text document corresponding the XML element wherevnis positioned.
XML Entities are resolved.- Parameters:
vn- AVTDNavobject positioned at the desired XML element.- Returns:
- The entity-resolved XML String corresponding to the XML element
vnpoints to. - Throws:
com.ximpleware.NavException
-
getElementText
public static String getElementText(com.ximpleware.VTDNav vn) throws com.ximpleware.NavException
- Throws:
com.ximpleware.NavException
-
-