com.softwareag.tamino.db.api.io
Class TXMLPredefinedEntitiesMapper

java.lang.Object
  extended by com.softwareag.tamino.db.api.io.TXMLPredefinedEntitiesMapper

public class TXMLPredefinedEntitiesMapper
extends java.lang.Object

The TXMLPredefinedEntitiesMapper mapps special characters to their Entity Reference.

Version:
$Revision: 1.1 $
Author:
Stefan Liebig

Method Summary
 char[] getEntityReference(char c)
          Mapps the special character in the given char to its Entity Reference.
 java.lang.String getEntityReference(java.lang.String string)
          Mapps all the special characters in the given string to their Entity Reference.
static TXMLPredefinedEntitiesMapper getInstance()
          Get the one and only TXMLPredefinedEntitiesMapper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TXMLPredefinedEntitiesMapper getInstance()
Get the one and only TXMLPredefinedEntitiesMapper.


getEntityReference

public java.lang.String getEntityReference(java.lang.String string)
Mapps all the special characters in the given string to their Entity Reference.

Parameters:
string - to convert
Returns:
the converted string.

getEntityReference

public char[] getEntityReference(char c)
Mapps the special character in the given char to its Entity Reference.

Parameters:
c - to convert
Returns:
the converted char as a char array, or null if no Entity Refernce available.


Copyright (c) 2013 Software AG. All Rights Reserved.