org.foray.common
Class AxslDtdUtil

java.lang.Object
  extended by org.foray.common.AxslDtdUtil

public final class AxslDtdUtil
extends Object

Utilities related to the aXSL DTDs.


Field Summary
static String AREA_TREE_PUBLIC_ID
          The public id of the "area tree" DTD.
static String FONT_CONFIG_PUBLIC_ID
          The public id of the "font config" DTD.
static String HYPHENATION_PUBLIC_ID
          The public id of the "hyphenation" DTD.
static String NATURAL_LANGUAGE_PUBLIC_ID
          The public id of the "natural language" DTD.
static String WORD_LIST_PUBLIC_ID
          The public id of the "word list" DTD.
 
Method Summary
static InputStream getAxslDtdAsInputStream(String dtdName)
          Returns an aXSL DTD as an InputStream.
static EntityResolver getEntityResolver()
          Create an entity resolver that knows how to find the local copy of all aXSL DTDs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NATURAL_LANGUAGE_PUBLIC_ID

public static final String NATURAL_LANGUAGE_PUBLIC_ID
The public id of the "natural language" DTD.

See Also:
Constant Field Values

HYPHENATION_PUBLIC_ID

public static final String HYPHENATION_PUBLIC_ID
The public id of the "hyphenation" DTD.

See Also:
Constant Field Values

WORD_LIST_PUBLIC_ID

public static final String WORD_LIST_PUBLIC_ID
The public id of the "word list" DTD.

See Also:
Constant Field Values

FONT_CONFIG_PUBLIC_ID

public static final String FONT_CONFIG_PUBLIC_ID
The public id of the "font config" DTD.

See Also:
Constant Field Values

AREA_TREE_PUBLIC_ID

public static final String AREA_TREE_PUBLIC_ID
The public id of the "area tree" DTD.

See Also:
Constant Field Values
Method Detail

getAxslDtdAsInputStream

public static InputStream getAxslDtdAsInputStream(String dtdName)
Returns an aXSL DTD as an InputStream.

Parameters:
dtdName - The name of the DTD to be retrieved.
Returns:
The appropriate aXSL DTD, or null if not found.

getEntityResolver

public static EntityResolver getEntityResolver()
Create an entity resolver that knows how to find the local copy of all aXSL DTDs.

Returns:
An entity resolver for the appropriate DTD, or null if none is found.


Copyright © 2017. All rights reserved.