|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.schemedit.input.ReferenceResolver
public class ReferenceResolver
Resolves numeric and character references (e.g, or δ) into their unicode representations.
$Id $
Nested Class Summary | |
---|---|
class |
ReferenceResolver.ResolverResults
Returned by ReferenceResolver.resolve storing the resolved input string and a list of errors describing references that could not be resolved. |
Field Summary | |
---|---|
static Map |
charEntityMap
Description of the Field |
Constructor Summary | |
---|---|
ReferenceResolver()
Constructor for the ReferenceResolver object |
Method Summary | |
---|---|
static Map |
getCharEntityMap()
Gets a mapping from HTML 4 character entity references to their numeric equivalents (see http://www.w3.org/TR/REC-html40/sgml/entities.html#h-24.3.1) |
static void |
main(String[] args)
The main program for the ReferenceResolver class |
ReferenceResolver.ResolverResults |
resolve(String in)
Resolves a string by replacing numeric (e.g., ©) and character references (e.g., δ) with thier equivalent unicode representation. |
static String |
unescapeAmpersands(String in)
Escape all escaped ampersands (&) as a preprocessing step in resolution of entity references. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Map charEntityMap
Constructor Detail |
---|
public ReferenceResolver()
Method Detail |
---|
public ReferenceResolver.ResolverResults resolve(String in)
in
- Description of the Parameter
public static String unescapeAmpersands(String in)
in
- String to be processed
public static void main(String[] args) throws Exception
args
- The command line arguments
Exception
- Description of the Exceptionpublic static Map getCharEntityMap()
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |