com.hfg.xml.parser.Latin1Entities Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com_hfg Show documentation
Show all versions of com_hfg Show documentation
com.hfg xml, html, svg, and bioinformatics utility library
package com.hfg.xml.parser;
import com.hfg.util.collection.BiHashMap;
import com.hfg.util.collection.BiMap;
//------------------------------------------------------------------------------
/**
Lookup class for the character entities defined in XHTML1-lat1.ent
@author J. Alex Taylor, hairyfatguy.com
*/
//------------------------------------------------------------------------------
// com.hfg XML/HTML Coding Library
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com
// [email protected]
//------------------------------------------------------------------------------
public class Latin1Entities extends AbstractEntities
{
private static Latin1Entities sInstance;
private static BiMap sEntityMap = new BiHashMap<>();
static
{
sEntityMap.put("nbsp", 160);
sEntityMap.put("iexcl", 161);
sEntityMap.put("cent", 162);
sEntityMap.put("pound", 163);
sEntityMap.put("curren", 164);
sEntityMap.put("yen", 165);
sEntityMap.put("brvbar", 166);
sEntityMap.put("sect", 167);
sEntityMap.put("uml", 168);
sEntityMap.put("copy", 169);
sEntityMap.put("ordf", 170);
sEntityMap.put("laquo", 171);
sEntityMap.put("not", 172);
sEntityMap.put("shy", 173);
sEntityMap.put("reg", 174);
sEntityMap.put("macr", 175);
sEntityMap.put("deg", 176);
sEntityMap.put("plusmn", 177);
sEntityMap.put("sup2", 178);
sEntityMap.put("sup3", 179);
sEntityMap.put("acute", 180);
sEntityMap.put("micro", 181);
sEntityMap.put("para", 182);
sEntityMap.put("middot", 183);
sEntityMap.put("cedil", 184);
sEntityMap.put("sup1", 185);
sEntityMap.put("ordm", 186);
sEntityMap.put("raquo", 187);
sEntityMap.put("frac14", 188);
sEntityMap.put("frac12", 189);
sEntityMap.put("frac34", 190);
sEntityMap.put("iquest", 191);
sEntityMap.put("Agrave", 192);
sEntityMap.put("Aacute", 193);
sEntityMap.put("Acirc", 194);
sEntityMap.put("Atilde", 195);
sEntityMap.put("Auml", 196);
sEntityMap.put("Aring", 197);
sEntityMap.put("AElig", 198);
sEntityMap.put("Ccedil", 199);
sEntityMap.put("Egrave", 200);
sEntityMap.put("Eacute", 201);
sEntityMap.put("Ecirc", 202);
sEntityMap.put("Euml", 203);
sEntityMap.put("Igrave", 204);
sEntityMap.put("Iacute", 205);
sEntityMap.put("Icirc", 206);
sEntityMap.put("Iuml", 207);
sEntityMap.put("ETH", 208);
sEntityMap.put("Ntilde", 209);
sEntityMap.put("Ograve", 210);
sEntityMap.put("Oacute", 211);
sEntityMap.put("Ocirc", 212);
sEntityMap.put("Otilde", 213);
sEntityMap.put("Ouml", 214);
sEntityMap.put("times", 215);
sEntityMap.put("Oslash", 216);
sEntityMap.put("Ugrave", 217);
sEntityMap.put("Uacute", 218);
sEntityMap.put("Ucirc", 219);
sEntityMap.put("Uuml", 220);
sEntityMap.put("Yacute", 221);
sEntityMap.put("THORN", 222);
sEntityMap.put("szlig", 223);
sEntityMap.put("agrave", 224);
sEntityMap.put("aacute", 225);
sEntityMap.put("acirc", 226);
sEntityMap.put("atilde", 227);
sEntityMap.put("auml", 228);
sEntityMap.put("aring", 229);
sEntityMap.put("aelig", 230);
sEntityMap.put("ccedil", 231);
sEntityMap.put("egrave", 232);
sEntityMap.put("eacute", 233);
sEntityMap.put("ecirc", 234);
sEntityMap.put("euml", 235);
sEntityMap.put("igrave", 236);
sEntityMap.put("iacute", 237);
sEntityMap.put("icirc", 238);
sEntityMap.put("iuml", 239);
sEntityMap.put("eth", 240);
sEntityMap.put("ntilde", 241);
sEntityMap.put("ograve", 242);
sEntityMap.put("oacute", 243);
sEntityMap.put("ocirc", 244);
sEntityMap.put("otilde", 245);
sEntityMap.put("ouml", 246);
sEntityMap.put("divide", 247);
sEntityMap.put("oslash", 248);
sEntityMap.put("ugrave", 249);
sEntityMap.put("uacute", 250);
sEntityMap.put("ucirc", 251);
sEntityMap.put("uuml", 252);
sEntityMap.put("yacute", 253);
sEntityMap.put("thorn", 254);
sEntityMap.put("yuml", 255);
}
//---------------------------------------------------------------------------
private Latin1Entities()
{
}
//---------------------------------------------------------------------------
public static Latin1Entities getInstance()
{
if (null == sInstance)
{
sInstance = new Latin1Entities();
}
return sInstance;
}
//---------------------------------------------------------------------------
protected BiMap getEntityMap()
{
return sEntityMap;
}
}