de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikipedia.text
Class XMLTag

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikipedia.text.XMLTag

public class XMLTag
extends Object

XML (HTML) tags, e.g.   " <br />, etc.


Field Summary
static XMLTag AMP
           
static XMLTag APOSTROPHE
           
static XMLTag GT
           
static XMLTag LT
           
static XMLTag MDASH
           
static XMLTag NBSP
           
static XMLTag NDASH
           
static XMLTag QUOT
           
 
Method Summary
static boolean existsGlyph(char glyph)
          Checks weather exists the glyph character.
static boolean existsTag(String tag)
          Checks weather exists the XML (HTML) tag.
 Character getGlyph()
           
static char getGlyphCharacter(String tag)
          Gets glyph character by HTML tag
 String getHTML()
           
static String getHTML(char glyph)
          Gets HTML tag by glyph character
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LT

public static final XMLTag LT

GT

public static final XMLTag GT

AMP

public static final XMLTag AMP

QUOT

public static final XMLTag QUOT

APOSTROPHE

public static final XMLTag APOSTROPHE

NBSP

public static final XMLTag NBSP

NDASH

public static final XMLTag NDASH

MDASH

public static final XMLTag MDASH
Method Detail

existsGlyph

public static boolean existsGlyph(char glyph)
Checks weather exists the glyph character.


existsTag

public static boolean existsTag(String tag)
Checks weather exists the XML (HTML) tag.


getGlyph

public Character getGlyph()

getHTML

public String getHTML()

getHTML

public static String getHTML(char glyph)
                      throws NullPointerException
Gets HTML tag by glyph character

Throws:
NullPointerException

getGlyphCharacter

public static char getGlyphCharacter(String tag)
                              throws NullPointerException
Gets glyph character by HTML tag

Throws:
NullPointerException


Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.