diff --git a/java/src/org/apache/xml/resolver/Catalog.java b/java/src/org/apache/xml/resolver/Catalog.java index 3565e30..3a1a288 100644 --- a/java/src/org/apache/xml/resolver/Catalog.java +++ b/java/src/org/apache/xml/resolver/Catalog.java @@ -78,7 +78,7 @@ import org.apache.xml.resolver.readers.OASISXMLCatalogReader; import javax.xml.parsers.SAXParserFactory; /** - *

Represents OASIS Open Catalog files.

+ * Represents OASIS Open Catalog files. * *

This class implements the semantics of OASIS Open Catalog files * (defined by @@ -220,58 +220,58 @@ import javax.xml.parsers.SAXParserFactory; * Inc.

*/ public class Catalog { - /** The BASE Catalog Entry type */ + /** The BASE Catalog Entry type. */ public static final int BASE = CatalogEntry.addEntryType("BASE", 1); - /** The CATALOG Catalog Entry type */ + /** The CATALOG Catalog Entry type. */ public static final int CATALOG = CatalogEntry.addEntryType("CATALOG", 1); - /** The DOCUMENT Catalog Entry type */ + /** The DOCUMENT Catalog Entry type. */ public static final int DOCUMENT = CatalogEntry.addEntryType("DOCUMENT", 1); - /** The OVERRIDE Catalog Entry type */ + /** The OVERRIDE Catalog Entry type. */ public static final int OVERRIDE = CatalogEntry.addEntryType("OVERRIDE", 1); - /** The SGMLDECL Catalog Entry type */ + /** The SGMLDECL Catalog Entry type. */ public static final int SGMLDECL = CatalogEntry.addEntryType("SGMLDECL", 1); - /** The DELEGATE_PUBLIC Catalog Entry type */ + /** The DELEGATE_PUBLIC Catalog Entry type. */ public static final int DELEGATE_PUBLIC = CatalogEntry.addEntryType("DELEGATE_PUBLIC", 2); - /** The DELEGATE_SYSTEM Catalog Entry type */ + /** The DELEGATE_SYSTEM Catalog Entry type. */ public static final int DELEGATE_SYSTEM = CatalogEntry.addEntryType("DELEGATE_SYSTEM", 2); - /** The DELEGATE_URI Catalog Entry type */ + /** The DELEGATE_URI Catalog Entry type. */ public static final int DELEGATE_URI = CatalogEntry.addEntryType("DELEGATE_URI", 2); - /** The DOCTYPE Catalog Entry type */ + /** The DOCTYPE Catalog Entry type. */ public static final int DOCTYPE = CatalogEntry.addEntryType("DOCTYPE", 2); - /** The DTDDECL Catalog Entry type */ + /** The DTDDECL Catalog Entry type. */ public static final int DTDDECL = CatalogEntry.addEntryType("DTDDECL", 2); - /** The ENTITY Catalog Entry type */ + /** The ENTITY Catalog Entry type. */ public static final int ENTITY = CatalogEntry.addEntryType("ENTITY", 2); - /** The LINKTYPE Catalog Entry type */ + /** The LINKTYPE Catalog Entry type. */ public static final int LINKTYPE = CatalogEntry.addEntryType("LINKTYPE", 2); - /** The NOTATION Catalog Entry type */ + /** The NOTATION Catalog Entry type. */ public static final int NOTATION = CatalogEntry.addEntryType("NOTATION", 2); - /** The PUBLIC Catalog Entry type */ + /** The PUBLIC Catalog Entry type. */ public static final int PUBLIC = CatalogEntry.addEntryType("PUBLIC", 2); - /** The SYSTEM Catalog Entry type */ + /** The SYSTEM Catalog Entry type. */ public static final int SYSTEM = CatalogEntry.addEntryType("SYSTEM", 2); - /** The URI Catalog Entry type */ + /** The URI Catalog Entry type. */ public static final int URI = CatalogEntry.addEntryType("URI", 2); - /** The REWRITE_SYSTEM Catalog Entry type */ + /** The REWRITE_SYSTEM Catalog Entry type. */ public static final int REWRITE_SYSTEM = CatalogEntry.addEntryType("REWRITE_SYSTEM", 2); - /** The REWRITE_URI Catalog Entry type */ + /** The REWRITE_URI Catalog Entry type. */ public static final int REWRITE_URI = CatalogEntry.addEntryType("REWRITE_URI", 2); /** @@ -289,11 +289,11 @@ public class Catalog { /** The default initial override setting. */ protected boolean default_override = true; - /** The catalog manager in use for this instance */ + /** The catalog manager in use for this instance. */ protected CatalogManager catalogManager = CatalogManager.getStaticManager(); /** - *

A vector of catalog files to be loaded.

+ * A vector of catalog files to be loaded. * *

This list is initially established by * loadSystemCatalogs when @@ -306,8 +306,8 @@ public class Catalog { protected Vector catalogFiles = new Vector(); /** - *

A vector of catalog files constructed during processing of - * CATALOG entries in the current catalog.

+ * A vector of catalog files constructed during processing of + * CATALOG entries in the current catalog. * *

This two-level system is actually necessary to correctly implement * the semantics of the CATALOG entry. If one catalog file includes @@ -325,7 +325,7 @@ public class Catalog { protected Vector localCatalogFiles = new Vector(); /** - *

A vector of Catalogs.

+ * A vector of Catalogs. * *

The semantics of Catalog resolution are such that each * catalog is effectively a list of Catalogs (in other words, @@ -344,8 +344,8 @@ public class Catalog { protected Vector catalogs = new Vector(); /** - *

A vector of DELEGATE* Catalog entries constructed during - * processing of the Catalog.

+ * A vector of DELEGATE* Catalog entries constructed during + * processing of the Catalog. * *

This two-level system has two purposes; first, it allows * us to sort the DELEGATE* entries by the length of the partial @@ -361,7 +361,7 @@ public class Catalog { protected Vector localDelegate = new Vector(); /** - *

A hash of CatalogReaders.

+ * A hash of CatalogReaders. * *

This hash maps MIME types to elements in the readerArr * vector. This allows the Catalog to quickly locate the reader @@ -370,7 +370,7 @@ public class Catalog { protected Hashtable readerMap = new Hashtable(); /** - *

A vector of CatalogReaders.

+ * A vector of CatalogReaders. * *

This vector contains all of the readers in the order that they * were added. In the event that a catalog is read from a file, where @@ -380,7 +380,7 @@ public class Catalog { protected Vector readerArr = new Vector(); /** - *

Constructs an empty Catalog.

+ * Constructs an empty Catalog. * *

The constructor interrogates the relevant system properties * using the default (static) CatalogManager @@ -391,7 +391,7 @@ public class Catalog { } /** - *

Constructs an empty Catalog with a specific CatalogManager.

+ * Constructs an empty Catalog with a specific CatalogManager. * *

The constructor interrogates the relevant system properties * using the specified Catalog Manager @@ -418,7 +418,7 @@ public class Catalog { } /** - *

Setup readers.

+ * Setup readers. */ public void setupReaders() { SAXParserFactory spf = SAXParserFactory.newInstance(); @@ -441,7 +441,7 @@ public class Catalog { } /** - *

Add a new CatalogReader to the Catalog.

+ * Add a new CatalogReader to the Catalog. * *

This method allows you to add a new CatalogReader to the * catalog. The reader will be associated with the specified mimeType. @@ -472,7 +472,7 @@ public class Catalog { } /** - *

Copies the reader list from the current Catalog to a new Catalog

+ * Copies the reader list from the current Catalog to a new Catalog. * *

This method is used internally when constructing a new catalog. * It copies the current reader associations over to the new catalog. @@ -506,7 +506,7 @@ public class Catalog { } /** - *

Create a new Catalog object.

+ * Create a new Catalog object. * *

This method constructs a new instance of the running Catalog * class (which might be a subtype of org.apache.xml.resolver.Catalog). @@ -544,15 +544,15 @@ public class Catalog { } /** - *

Returns the current base URI.

+ * Returns the current base URI. */ public String getCurrentBase() { return base.toString(); } /** - *

Returns the default override setting associated with this - * catalog.

+ * Returns the default override setting associated with this + * catalog. * *

All catalog files loaded by this catalog will have the * initial override setting specified by this default.

@@ -566,7 +566,7 @@ public class Catalog { } /** - *

Load the system catalog files.

+ * Load the system catalog files. * *

The method adds all of the * catalogs specified in the xml.catalog.files property @@ -605,7 +605,7 @@ public class Catalog { } /** - *

Parse a catalog file, augmenting internal data structures

+ * Parse a catalog file, augmenting internal data structures. * * @param fileName The filename of the catalog file to process * @@ -629,7 +629,7 @@ public class Catalog { } /** - *

Parse a catalog file, augmenting internal data structures

+ * Parse a catalog file, augmenting internal data structures. * *

Catalogs retrieved over the net may have an associated MIME type. * The MIME type can be used to select an appropriate reader.

@@ -667,7 +667,7 @@ public class Catalog { } /** - *

Parse a catalog document, augmenting internal data structures

+ * Parse a catalog document, augmenting internal data structures. * *

This method supports catalog files stored in jar files: e.g., * jar:file:///path/to/filename.jar!/path/to/catalog.xml". That URI @@ -675,10 +675,11 @@ public class Catalog { * the parseCatalog(String) performs and passing it as an input stream * doesn't set the base URI appropriately.

* + *

Written by Stefan Wachter (2002-09-26)

+ * * @param aUrl The URL of the catalog document to process * * @throws IOException Error reading catalog file. - * @author Stefan Wachter (2002-09-26) */ public synchronized void parseCatalog(URL aUrl) throws IOException { catalogCwd = aUrl; @@ -723,7 +724,7 @@ public class Catalog { } /** - *

Parse all of the pending catalogs.

+ * Parse all of the pending catalogs. * *

Catalogs may refer to other catalogs, this method parses * all of the currently pending catalog files.

@@ -819,7 +820,7 @@ public class Catalog { } /** - *

Parse a single catalog file, augmenting internal data structures

+ * Parse a single catalog file, augmenting internal data structures. * * @param fileName The filename of the catalog file to process * @@ -908,7 +909,7 @@ public class Catalog { } /** - *

Cleanup and process a Catalog entry.

+ * Cleanup and process a Catalog entry. * *

This method processes each Catalog entry, changing mapped * relative system identifiers into absolute ones (based on the current @@ -1092,7 +1093,7 @@ public class Catalog { } /** - *

Handle unknown CatalogEntry types.

+ * Handle unknown CatalogEntry types. * *

This method exists to allow subclasses to deal with unknown * entry types.

@@ -1105,7 +1106,7 @@ public class Catalog { } /** - *

Parse all subordinate catalogs.

+ * Parse all subordinate catalogs. * *

This method recursively parses all of the subordinate catalogs. * If this method does not throw an exception, you can be confident that @@ -1167,7 +1168,7 @@ public class Catalog { /** - *

Return the applicable DOCTYPE system identifier.

+ * Return the applicable DOCTYPE system identifier. * * @param entityName The name of the entity (element) for which * a doctype is required. @@ -1253,7 +1254,7 @@ public class Catalog { } /** - *

Return the applicable DOCUMENT entry.

+ * Return the applicable DOCUMENT entry. * * @return The system identifier to use for the doctype. * @@ -1280,7 +1281,7 @@ public class Catalog { } /** - *

Return the applicable ENTITY system identifier.

+ * Return the applicable ENTITY system identifier. * * @param entityName The name of the entity for which * a system identifier is required. @@ -1366,7 +1367,7 @@ public class Catalog { } /** - *

Return the applicable NOTATION system identifier.

+ * Return the applicable NOTATION system identifier. * * @param notationName The name of the notation for which * a doctype is required. @@ -1452,7 +1453,7 @@ public class Catalog { } /** - *

Return the applicable PUBLIC or SYSTEM identifier.

+ * Return the applicable PUBLIC or SYSTEM identifier. * *

This method searches the Catalog and returns the system * identifier specified for the given system or @@ -1521,7 +1522,7 @@ public class Catalog { } /** - *

Return the applicable PUBLIC or SYSTEM identifier

+ * Return the applicable PUBLIC or SYSTEM identifier. * *

This method searches the Catalog and returns the system * identifier specified for the given system or public identifiers. @@ -1653,7 +1654,7 @@ public class Catalog { } /** - *

Return the applicable SYSTEM system identifier

+ * Return the applicable SYSTEM system identifier. * *

If a SYSTEM entry exists in the Catalog * for the system ID specified, return the mapped value.

@@ -1698,8 +1699,8 @@ public class Catalog { } /** - *

Return the applicable SYSTEM system identifier in this - * catalog.

+ * Return the applicable SYSTEM system identifier in this + * catalog. * *

If a SYSTEM entry exists in the catalog file * for the system ID specified, return the mapped value.

@@ -1793,7 +1794,7 @@ public class Catalog { } /** - *

Return the applicable URI

+ * Return the applicable URI. * *

If a URI entry exists in the Catalog * for the URI specified, return the mapped value.

@@ -1836,8 +1837,7 @@ public class Catalog { } /** - *

Return the applicable URI in this - * catalog.

+ * Return the applicable URI in this catalog. * *

If a URI entry exists in the catalog file * for the URI specified, return the mapped value.

@@ -1926,8 +1926,7 @@ public class Catalog { } /** - *

Search the subordinate catalogs, in order, looking for a - * match.

+ * Search the subordinate catalogs, in order, looking for a match. * *

This method searches the Catalog and returns the system * identifier specified for the given entity type with the given @@ -2019,8 +2018,8 @@ public class Catalog { // ----------------------------------------------------------------- /** - *

Replace backslashes with forward slashes. (URLs always use - * forward slashes.)

+ * Replace backslashes with forward slashes. (URLs always use + * forward slashes.) * * @param sysid The input system identifier. * @return The same system identifier with backslashes turned into @@ -2031,8 +2030,8 @@ public class Catalog { } /** - *

Construct an absolute URI from a relative one, using the current - * base URI.

+ * Construct an absolute URI from a relative one, using the current + * base URI. * * @param sysid The (possibly relative) system identifier * @return The system identifier made absolute with respect to the @@ -2057,7 +2056,7 @@ public class Catalog { } /** - *

Perform character normalization on a URI reference.

+ * Perform character normalization on a URI reference. * * @param uriref The URI reference * @return The normalized URI reference. @@ -2103,7 +2102,7 @@ public class Catalog { } /** - *

Perform %-encoding on a single byte.

+ * Perform %-encoding on a single byte. * * @param b The 8-bit integer that represents th byte. (Bytes are signed but encoding needs to look at the bytes unsigned.) @@ -2121,7 +2120,7 @@ public class Catalog { // ----------------------------------------------------------------- /** - *

Add to the current list of delegated catalogs.

+ * Add to the current list of delegated catalogs. * *

This method always constructs the {@link #localDelegate} * vector so that it is ordered by length of partial diff --git a/java/src/org/apache/xml/resolver/CatalogEntry.java b/java/src/org/apache/xml/resolver/CatalogEntry.java index a7340ab..6573c9a 100644 --- a/java/src/org/apache/xml/resolver/CatalogEntry.java +++ b/java/src/org/apache/xml/resolver/CatalogEntry.java @@ -63,7 +63,7 @@ import java.util.Hashtable; import java.util.Vector; /** - *

Represents a Catalog entry.

+ * Represents a Catalog entry. * *

Instances of this class represent individual entries * in a Catalog.

@@ -104,7 +104,7 @@ public class CatalogEntry { protected static Vector entryArgs = new Vector(); /** - *

Adds a new catalog entry type.

+ * Adds a new catalog entry type. * * @param name The name of the catalog entry type. This must be * unique among all types and is case-sensitive. (Adding a duplicate @@ -123,7 +123,7 @@ public class CatalogEntry { } /** - *

Lookup an entry type

+ * Lookup an entry type * * @param name The name of the catalog entry type. * @return The type of the catalog entry with the specified name. @@ -146,7 +146,7 @@ public class CatalogEntry { } /** - *

Find out how many arguments an entry is required to have.

+ * Find out how many arguments an entry is required to have. * * @param name The name of the catalog entry type. * @return The number of arguments that entry type is required to have. @@ -159,7 +159,7 @@ public class CatalogEntry { } /** - *

Find out how many arguments an entry is required to have.

+ * Find out how many arguments an entry is required to have. * * @param type A valid catalog entry type. * @return The number of arguments that entry type is required to have. @@ -182,12 +182,12 @@ public class CatalogEntry { protected Vector args = null; /** - *

Null constructor; something for subclasses to call.

+ * Null constructor; something for subclasses to call. */ public CatalogEntry() {} /** - *

Construct a catalog entry of the specified type.

+ * Construct a catalog entry of the specified type. * * @param name The name of the entry type * @param args A String Vector of arguments @@ -220,7 +220,7 @@ public class CatalogEntry { } /** - *

Construct a catalog entry of the specified type.

+ * Construct a catalog entry of the specified type. * * @param name The name of the entry type * @param args A String Vector of arguments @@ -245,7 +245,7 @@ public class CatalogEntry { } /** - *

Get the entry type.

+ * Get the entry type. * * @return The entry type of the CatalogEntry */ @@ -254,7 +254,7 @@ public class CatalogEntry { } /** - *

Get an entry argument.

+ * Get an entry argument. * * @param argNum The argument number (arguments are numbered from 0). * @return The specified argument or null if an invalid argNum is @@ -270,7 +270,7 @@ public class CatalogEntry { } /** - *

Set an entry argument.

+ * Set an entry argument. * *

Catalogs sometimes need to adjust the catlog entry parameters, * for example to make a relative URI absolute with respect to the diff --git a/java/src/org/apache/xml/resolver/CatalogException.java b/java/src/org/apache/xml/resolver/CatalogException.java index 27170e6..df6aad9 100644 --- a/java/src/org/apache/xml/resolver/CatalogException.java +++ b/java/src/org/apache/xml/resolver/CatalogException.java @@ -60,7 +60,7 @@ package org.apache.xml.resolver; /** - *

Signal Catalog exception.

+ * Signal Catalog exception. * *

This exception is thrown if an error occurs loading a * catalog file.

diff --git a/java/src/org/apache/xml/resolver/CatalogManager.java b/java/src/org/apache/xml/resolver/CatalogManager.java index 511b124..24fda75 100644 --- a/java/src/org/apache/xml/resolver/CatalogManager.java +++ b/java/src/org/apache/xml/resolver/CatalogManager.java @@ -69,7 +69,7 @@ import org.apache.xml.resolver.helpers.Debug; import org.apache.xml.resolver.Catalog; /** - *

CatalogManager provides an interface to the catalog properties.

+ * CatalogManager provides an interface to the catalog properties. * *

Properties can come from two places: from system properties or * from a CatalogManager.properties file. This class provides a transparent @@ -343,7 +343,7 @@ public class CatalogManager { /** * Obtain the verbosity setting from the properties. * - * @returns The verbosity level from the propertyFile or the + * @return The verbosity level from the propertyFile or the * defaultVerbosity. */ private int queryVerbosity () { @@ -399,7 +399,7 @@ public class CatalogManager { /** * Obtain the relativeCatalogs setting from the properties. * - * @returns The relativeCatalogs setting from the propertyFile or the + * @return The relativeCatalogs setting from the propertyFile or the * defaultRelativeCatalogs. */ private boolean queryRelativeCatalogs () { @@ -434,7 +434,7 @@ public class CatalogManager { *

In the properties, a value of 'yes', 'true', or '1' is considered * true, anything else is false.

* - * @returns The relativeCatalogs setting from the propertyFile or the + * @return The relativeCatalogs setting from the propertyFile or the * defaultRelativeCatalogs. */ public boolean getRelativeCatalogs () { @@ -448,7 +448,7 @@ public class CatalogManager { /** * Set the relativeCatalogs setting. * - * @returns The relativeCatalogs setting from the propertyFile or the + * @return The relativeCatalogs setting from the propertyFile or the * defaultRelativeCatalogs. * * @see #getRelativeCatalogs() @@ -469,7 +469,7 @@ public class CatalogManager { /** * Obtain the list of catalog files from the properties. * - * @returns A semicolon delimited list of catlog file URIs + * @return A semicolon delimited list of catlog file URIs */ private String queryCatalogFiles () { String catalogList = System.getProperty(pFiles); @@ -498,7 +498,7 @@ public class CatalogManager { /** * Return the current list of catalog files. * - * @returns A vector of the catalog file names or null if no catalogs + * @return A vector of the catalog file names or null if no catalogs * are available in the properties. */ public Vector getCatalogFiles() { @@ -538,7 +538,7 @@ public class CatalogManager { /** * Return the current list of catalog files. * - * @returns A vector of the catalog file names or null if no catalogs + * @return A vector of the catalog file names or null if no catalogs * are available in the properties. * * @deprecated No longer static; use get/set methods. @@ -553,7 +553,7 @@ public class CatalogManager { *

In the properties, a value of 'public' is true, * anything else is false.

* - * @returns True if prefer is public or the + * @return True if prefer is public or the * defaultPreferSetting. */ private boolean queryPreferPublic () { @@ -579,7 +579,7 @@ public class CatalogManager { /** * Return the current prefer public setting. * - * @returns True if public identifiers are preferred. + * @return True if public identifiers are preferred. */ public boolean getPreferPublic () { if (preferPublic == null) { @@ -591,7 +591,7 @@ public class CatalogManager { /** * Set the prefer public setting. * - * @returns True if public identifiers are preferred. + * @return True if public identifiers are preferred. */ public void setPreferPublic (boolean preferPublic) { this.preferPublic = new Boolean(preferPublic); @@ -600,7 +600,7 @@ public class CatalogManager { /** * Return the current prefer public setting. * - * @returns True if public identifiers are preferred. + * @return True if public identifiers are preferred. * * @deprecated No longer static; use get/set methods. */ @@ -614,7 +614,7 @@ public class CatalogManager { *

In the properties, a value of 'yes', 'true', or '1' is considered * true, anything else is false.

* - * @returns The static-catalog setting from the propertyFile or the + * @return The static-catalog setting from the propertyFile or the * defaultUseStaticCatalog. */ private boolean queryUseStaticCatalog () { @@ -745,7 +745,7 @@ public class CatalogManager { *

In the properties, a value of 'yes', 'true', or '1' is considered * true, anything else is false.

* - * @returns The oasisXMLCatalogPI setting from the propertyFile or the + * @return The oasisXMLCatalogPI setting from the propertyFile or the * defaultOasisXMLCatalogPI. */ public boolean queryAllowOasisXMLCatalogPI () { @@ -798,7 +798,7 @@ public class CatalogManager { } /** - *

Obtain the Catalog class name setting from the properties.

+ * Obtain the Catalog class name setting from the properties. * */ public String queryCatalogClassName () { diff --git a/java/src/org/apache/xml/resolver/Resolver.java b/java/src/org/apache/xml/resolver/Resolver.java index 7fc9ed9..7236d0e 100644 --- a/java/src/org/apache/xml/resolver/Resolver.java +++ b/java/src/org/apache/xml/resolver/Resolver.java @@ -73,8 +73,8 @@ import org.apache.xml.resolver.readers.TR9401CatalogReader; import javax.xml.parsers.SAXParserFactory; /** - *

An extension to OASIS Open Catalog files, this class supports - * suffix-based matching and an external RFC2483 resolver.

+ * An extension to OASIS Open Catalog files, this class supports + * suffix-based matching and an external RFC2483 resolver. * * @see Catalog * @@ -85,14 +85,14 @@ import javax.xml.parsers.SAXParserFactory; */ public class Resolver extends Catalog { /** - *

The URISUFFIX Catalog Entry type.

+ * The URISUFFIX Catalog Entry type. * *

URI suffix entries match URIs that end in a specified suffix.

*/ public static final int URISUFFIX = CatalogEntry.addEntryType("URISUFFIX", 2); /** - *

The SYSTEMSUFFIX Catalog Entry type.

+ * The SYSTEMSUFFIX Catalog Entry type. * *

System suffix entries match system identifiers that end in a * specified suffix.

@@ -100,14 +100,14 @@ public class Resolver extends Catalog { public static final int SYSTEMSUFFIX = CatalogEntry.addEntryType("SYSTEMSUFFIX", 2); /** - *

The RESOLVER Catalog Entry type.

+ * The RESOLVER Catalog Entry type. * *

A hook for providing support for web-based backup resolvers.

*/ public static final int RESOLVER = CatalogEntry.addEntryType("RESOLVER", 1); /** - *

The SYSTEMREVERSE Catalog Entry type.

+ * The SYSTEMREVERSE Catalog Entry type. * *

This is a bit of a hack. There's no actual SYSTEMREVERSE entry, * but this entry type is used to indicate that a reverse lookup is @@ -118,7 +118,7 @@ public class Resolver extends Catalog { = CatalogEntry.addEntryType("SYSTEMREVERSE", 1); /** - *

Setup readers.

+ * Setup readers. */ public void setupReaders() { SAXParserFactory spf = SAXParserFactory.newInstance(); @@ -141,7 +141,7 @@ public class Resolver extends Catalog { } /** - *

Cleanup and process a Catalog entry.

+ * Cleanup and process a Catalog entry. * *

This method processes each Catalog entry, changing mapped * relative system identifiers into absolute ones (based on the current @@ -173,7 +173,7 @@ public class Resolver extends Catalog { } /** - *

Return the applicable URI

+ * Return the applicable URI. * *

If a URI entry exists in the Catalog * for the URI specified, return the mapped value.

@@ -227,8 +227,8 @@ public class Resolver extends Catalog { } /** - *

Return the applicable SYSTEM system identifier, resorting - * to external RESOLVERs if necessary.

+ * Return the applicable SYSTEM system identifier, resorting + * to external RESOLVERs if necessary. * *

If a SYSTEM entry exists in the Catalog * for the system ID specified, return the mapped value.

@@ -283,8 +283,8 @@ public class Resolver extends Catalog { } /** - *

Return the applicable PUBLIC or SYSTEM identifier, resorting - * to external resolvers if necessary.

+ * Return the applicable PUBLIC or SYSTEM identifier, resorting + * to external resolvers if necessary. * *

This method searches the Catalog and returns the system * identifier specified for the given system or @@ -344,7 +344,7 @@ public class Resolver extends Catalog { } /** - *

Query an external RFC2483 resolver for a system identifier.

+ * Query an external RFC2483 resolver for a system identifier. * * @param systemId The system ID to locate. * @param resolver The name of the resolver to use. @@ -362,7 +362,7 @@ public class Resolver extends Catalog { } /** - *

Query an external RFC2483 resolver for a public identifier.

+ * Query an external RFC2483 resolver for a public identifier. * * @param publicId The system ID to locate. * @param resolver The name of the resolver to use. @@ -380,7 +380,7 @@ public class Resolver extends Catalog { } /** - *

Query an external RFC2483 resolver.

+ * Query an external RFC2483 resolver. * * @param resolver The URL of the RFC2483 resolver. * @param command The command to send the resolver. @@ -436,7 +436,7 @@ public class Resolver extends Catalog { } /** - *

Append two vectors, returning the result.

+ * Append two vectors, returning the result. * * @param vec The first vector * @param appvec The vector to be appended @@ -452,7 +452,7 @@ public class Resolver extends Catalog { } /** - *

Find the URNs for a given system identifier in all catalogs.

+ * Find the URNs for a given system identifier in all catalogs. * * @param systemId The system ID to locate. * @@ -478,7 +478,7 @@ public class Resolver extends Catalog { } /** - *

Find the URN for a given system identifier.

+ * Find the URN for a given system identifier. * * @param systemId The system ID to locate. * @@ -495,7 +495,7 @@ public class Resolver extends Catalog { } /** - *

Return the applicable SYSTEM system identifiers

+ * Return the applicable SYSTEM system identifiers. * *

If one or more SYSTEM entries exists in the Catalog * for the system ID specified, return the mapped values.

@@ -546,8 +546,8 @@ public class Resolver extends Catalog { } /** - *

Return all applicable SYSTEM system identifiers in this - * catalog.

+ * Return all applicable SYSTEM system identifiers in this + * catalog. * *

If one or more SYSTEM entries exists in the catalog file * for the system ID specified, return the mapped values.

@@ -578,7 +578,7 @@ public class Resolver extends Catalog { } /** - *

Find the URNs for a given system identifier in the current catalog.

+ * Find the URNs for a given system identifier in the current catalog. * * @param systemId The system ID to locate. * @@ -606,8 +606,8 @@ public class Resolver extends Catalog { } /** - *

Search the subordinate catalogs, in order, looking for all - * match.

+ * Search the subordinate catalogs, in order, looking for all + * match. * *

This method searches the Catalog and returns all of the system * identifiers specified for the given entity type with the given diff --git a/java/src/org/apache/xml/resolver/apps/XParseError.java b/java/src/org/apache/xml/resolver/apps/XParseError.java index 880c590..ba1ceae 100644 --- a/java/src/org/apache/xml/resolver/apps/XParseError.java +++ b/java/src/org/apache/xml/resolver/apps/XParseError.java @@ -66,7 +66,7 @@ import org.xml.sax.*; import org.xml.sax.helpers.*; /** - *

An ErrorHandler for xparse.

+ * An ErrorHandler for xparse. * *

This class is just the error handler for xparse.

* diff --git a/java/src/org/apache/xml/resolver/apps/package.html b/java/src/org/apache/xml/resolver/apps/package.html index a04bf36..362830b 100644 --- a/java/src/org/apache/xml/resolver/apps/package.html +++ b/java/src/org/apache/xml/resolver/apps/package.html @@ -3,7 +3,7 @@ Apache XML Commons Resolver Applications package -

Apache XML Commons Resolver Applications package

+

Apache XML Commons Resolver Applications package.

This package provides a few simple command-line tools for exploring the facilities of the resolver.

diff --git a/java/src/org/apache/xml/resolver/apps/resolver.java b/java/src/org/apache/xml/resolver/apps/resolver.java index e2f7efc..846674b 100644 --- a/java/src/org/apache/xml/resolver/apps/resolver.java +++ b/java/src/org/apache/xml/resolver/apps/resolver.java @@ -77,7 +77,7 @@ import org.apache.xml.resolver.helpers.Debug; import org.apache.xml.resolver.tools.CatalogResolver; /** - *

A simple command-line resolver.

+ * A simple command-line resolver. * *

This class implements a simple command-line resolver. It takes * some parameters and passes them through the resolver, printing the diff --git a/java/src/org/apache/xml/resolver/apps/xparse.java b/java/src/org/apache/xml/resolver/apps/xparse.java index a3d68bd..c8cba07 100644 --- a/java/src/org/apache/xml/resolver/apps/xparse.java +++ b/java/src/org/apache/xml/resolver/apps/xparse.java @@ -75,7 +75,7 @@ import org.apache.xml.resolver.CatalogManager; import org.apache.xml.resolver.helpers.Debug; /** - *

A simple command-line XML parsing application.

+ * A simple command-line XML parsing application. * *

This class implements a simple command-line XML Parser. It's * just a little wrapper around the JAXP Parser with support for diff --git a/java/src/org/apache/xml/resolver/apps/xread.java b/java/src/org/apache/xml/resolver/apps/xread.java index 8c8cf89..02ff22c 100644 --- a/java/src/org/apache/xml/resolver/apps/xread.java +++ b/java/src/org/apache/xml/resolver/apps/xread.java @@ -75,7 +75,7 @@ import org.apache.xml.resolver.CatalogManager; import org.apache.xml.resolver.helpers.Debug; /** - *

A simple command-line XML parsing application.

+ * A simple command-line XML parsing application. * *

This class implements a simple command-line XML Parser. It's * just a little wrapper around the JAXP XMLReader with support for diff --git a/java/src/org/apache/xml/resolver/helpers/Debug.java b/java/src/org/apache/xml/resolver/helpers/Debug.java index 9797d6f..95d3b71 100644 --- a/java/src/org/apache/xml/resolver/helpers/Debug.java +++ b/java/src/org/apache/xml/resolver/helpers/Debug.java @@ -60,7 +60,7 @@ package org.apache.xml.resolver.helpers; /** - *

Static debugging/messaging class for Catalogs.

+ * Static debugging/messaging class for Catalogs. * *

This class defines a set of static methods that can be called * to produce debugging messages. Messages have an associated "debug @@ -91,7 +91,7 @@ public class Debug { } /** - *

Print debug message (if the debug level is high enough).

+ * Print debug message (if the debug level is high enough). * *

Prints "the message"

* @@ -108,7 +108,7 @@ public class Debug { } /** - *

Print debug message (if the debug level is high enough).

+ * Print debug message (if the debug level is high enough). * *

Prints "the message: spec"

* @@ -126,7 +126,7 @@ public class Debug { } /** - *

Print debug message (if the debug level is high enough).

+ * Print debug message (if the debug level is high enough). * *

Prints "the message: spec1" and "spec2" indented on the next line.

* diff --git a/java/src/org/apache/xml/resolver/helpers/Namespaces.java b/java/src/org/apache/xml/resolver/helpers/Namespaces.java index ffd2fba..a7eecb9 100644 --- a/java/src/org/apache/xml/resolver/helpers/Namespaces.java +++ b/java/src/org/apache/xml/resolver/helpers/Namespaces.java @@ -62,7 +62,7 @@ package org.apache.xml.resolver.helpers; import org.w3c.dom.*; /** - *

Static Namespace query methods.

+ * Static Namespace query methods. * *

This class defines a set of static methods that can be called * to analyze the namespace properties of DOM nodes.

@@ -74,8 +74,8 @@ import org.w3c.dom.*; */ public class Namespaces { /** - *

Returns the "prefix" part of a QName or the empty string (not - * null) if the name has no prefix.

+ * Returns the "prefix" part of a QName or the empty string (not + * null) if the name has no prefix. * * @param element The QName of an element. * @return The prefix part of the element name. @@ -92,8 +92,8 @@ public class Namespaces { } /** - *

Returns the "localname" part of a QName, which is the whole - * name if it has no prefix.

+ * Returns the "localname" part of a QName, which is the whole + * name if it has no prefix. * * @param element The QName of an element. * @return The local part of a QName. @@ -109,8 +109,8 @@ public class Namespaces { } /** - *

Returns the namespace URI for the specified prefix at the - * specified context node.

+ * Returns the namespace URI for the specified prefix at the + * specified context node. * * @param node The context node. * @param prefix The prefix. @@ -137,8 +137,8 @@ public class Namespaces { } /** - *

Returns the namespace URI for the namespace to which the - * element belongs.

+ * Returns the namespace URI for the namespace to which the + * element belongs. * * @param element The element. * @return The namespace URI associated with the namespace of the diff --git a/java/src/org/apache/xml/resolver/helpers/PublicId.java b/java/src/org/apache/xml/resolver/helpers/PublicId.java index b964d90..c559ef6 100644 --- a/java/src/org/apache/xml/resolver/helpers/PublicId.java +++ b/java/src/org/apache/xml/resolver/helpers/PublicId.java @@ -60,7 +60,7 @@ package org.apache.xml.resolver.helpers; /** - *

Static methods for dealing with public identifiers.

+ * Static methods for dealing with public identifiers. * *

This class defines a set of static methods that can be called * to handle public identifiers.

@@ -74,7 +74,7 @@ public abstract class PublicId { protected PublicId() { } /** - *

Normalize a public identifier.

+ * Normalize a public identifier. * *

Public identifiers must be normalized according to the following * rules before comparisons between them can be made:

@@ -110,7 +110,7 @@ public abstract class PublicId { } /** - *

Encode a public identifier as a "publicid" URN.

+ * Encode a public identifier as a "publicid" URN. * *

This method is declared static so that other classes * can use it directly.

@@ -138,7 +138,7 @@ public abstract class PublicId { } /** - *

Decode a "publicid" URN into a public identifier.

+ * Decode a "publicid" URN into a public identifier. * *

This method is declared static so that other classes * can use it directly.

@@ -172,7 +172,7 @@ public abstract class PublicId { } /** - *

Replace one string with another.

+ * Replace one string with another. * */ private static String stringReplace(String str, diff --git a/java/src/org/apache/xml/resolver/helpers/package.html b/java/src/org/apache/xml/resolver/helpers/package.html index a0ad685..c72c51d 100644 --- a/java/src/org/apache/xml/resolver/helpers/package.html +++ b/java/src/org/apache/xml/resolver/helpers/package.html @@ -3,7 +3,7 @@ Apache XML Commons Resolver Helpers package -

Apache XML Commons Resolver Helpers package

+

Apache XML Commons Resolver Helpers package.

This package provides a collection of static helper functions used across a number of different classes.

diff --git a/java/src/org/apache/xml/resolver/package.html b/java/src/org/apache/xml/resolver/package.html index 9e80df3..60fa52c 100644 --- a/java/src/org/apache/xml/resolver/package.html +++ b/java/src/org/apache/xml/resolver/package.html @@ -3,7 +3,7 @@ Apache XML Commons Resolver package -

Apache XML Commons Resolver package

+

Apache XML Commons Resolver package.

The classes in this package implement the full semantics of OASIS Technical diff --git a/java/src/org/apache/xml/resolver/readers/CatalogReader.java b/java/src/org/apache/xml/resolver/readers/CatalogReader.java index 63d85ea..11aa76d 100644 --- a/java/src/org/apache/xml/resolver/readers/CatalogReader.java +++ b/java/src/org/apache/xml/resolver/readers/CatalogReader.java @@ -67,7 +67,7 @@ import java.io.InputStream; import org.apache.xml.resolver.Catalog; /** - *

The CatalogReader interface.

+ * The CatalogReader interface. * *

The Catalog class requires that classes implement this interface * in order to be used to read catalogs. Examples of CatalogReaders @@ -83,7 +83,7 @@ import org.apache.xml.resolver.Catalog; */ public interface CatalogReader { /** - *

Read a catalog from a file

+ * Read a catalog from a file. * *

This class reads a catalog from a URL.

* @@ -101,7 +101,7 @@ public interface CatalogReader { throws MalformedURLException, IOException, CatalogException; /** - *

Read a catalog from an input stream

+ * Read a catalog from an input stream. * *

This class reads a catalog from an input stream.

* diff --git a/java/src/org/apache/xml/resolver/readers/DOMCatalogParser.java b/java/src/org/apache/xml/resolver/readers/DOMCatalogParser.java index 3095eea..d4ec7c3 100644 --- a/java/src/org/apache/xml/resolver/readers/DOMCatalogParser.java +++ b/java/src/org/apache/xml/resolver/readers/DOMCatalogParser.java @@ -63,7 +63,7 @@ import org.apache.xml.resolver.Catalog; import org.w3c.dom.Node; /** - *

The DOMCatalogParser interface.

+ * The DOMCatalogParser interface. * *

This interface must be implemented in order for a class to * participate as a parser for the DOMCatalogReader. @@ -78,7 +78,7 @@ import org.w3c.dom.Node; */ public interface DOMCatalogParser { /** - *

Parse a DOM node as a catalog entry

+ * Parse a DOM node as a catalog entry. * *

This method is expected to analyze the specified node and * construct appropriate catalog entry(ies) from it.

diff --git a/java/src/org/apache/xml/resolver/readers/DOMCatalogReader.java b/java/src/org/apache/xml/resolver/readers/DOMCatalogReader.java index 955c0fd..ecb0559 100644 --- a/java/src/org/apache/xml/resolver/readers/DOMCatalogReader.java +++ b/java/src/org/apache/xml/resolver/readers/DOMCatalogReader.java @@ -79,7 +79,7 @@ import org.xml.sax.SAXException; import org.w3c.dom.*; /** - *

A DOM-based CatalogReader

+ * A DOM-based CatalogReader. * *

This class is used to read XML Catalogs using the DOM. This reader * has an advantage over the SAX-based reader that it can analyze the @@ -111,7 +111,7 @@ import org.w3c.dom.*; */ public class DOMCatalogReader implements CatalogReader { /** - *

Mapping table from QNames to CatalogParser classes.

+ * Mapping table from QNames to CatalogParser classes. * *

Each key in this hash table has the form "elementname" * or "{namespaceuri}elementname". The former is used if the @@ -120,7 +120,7 @@ public class DOMCatalogReader implements CatalogReader { protected Hashtable namespaceMap = new Hashtable(); /** - *

Add a new parser to the reader.

+ * Add a new parser to the reader. * *

This method associates the specified parserClass with the * namespaceURI/rootElement names specified.

@@ -141,7 +141,7 @@ public class DOMCatalogReader implements CatalogReader { } /** - *

Get the name of the parser class for a given catalog type.

+ * Get the name of the parser class for a given catalog type. * *

This method returns the parserClass associated with the * namespaceURI/rootElement names specified.

@@ -160,12 +160,12 @@ public class DOMCatalogReader implements CatalogReader { } /** - *

Null constructor; something for subclasses to call.

+ * Null constructor; something for subclasses to call. */ public DOMCatalogReader() { } /** - *

Read a catalog from an input stream

+ * Read a catalog from an input stream. * *

This class reads a catalog from an input stream:

* @@ -259,7 +259,7 @@ public class DOMCatalogReader implements CatalogReader { } /** - *

Read the catalog behind the specified URL.

+ * Read the catalog behind the specified URL. * * @see #readCatalog(Catalog, InputStream) * diff --git a/java/src/org/apache/xml/resolver/readers/ExtendedXMLCatalogReader.java b/java/src/org/apache/xml/resolver/readers/ExtendedXMLCatalogReader.java index adb4ff4..1300d7c 100644 --- a/java/src/org/apache/xml/resolver/readers/ExtendedXMLCatalogReader.java +++ b/java/src/org/apache/xml/resolver/readers/ExtendedXMLCatalogReader.java @@ -69,8 +69,8 @@ import org.xml.sax.*; import org.w3c.dom.*; /** - *

Parse Extended OASIS Entity Resolution Technical Committee - * XML Catalog files.

+ * Parse Extended OASIS Entity Resolution Technical Committee + * XML Catalog files. * * @see Catalog * @@ -84,9 +84,9 @@ public class ExtendedXMLCatalogReader extends OASISXMLCatalogReader { public static final String extendedNamespaceName = "http://nwalsh.com/xcatalog/1.0"; /** - *

The SAX startElement method recognizes elements + * The SAX startElement method recognizes elements * from the plain catalog format and instantiates CatalogEntry - * objects for them.

+ * objects for them. * * @param namespaceURI The namespace name of the element. * @param localName The local name of the element. @@ -180,7 +180,7 @@ public class ExtendedXMLCatalogReader extends OASISXMLCatalogReader { } } - /**

The SAX endElement method does nothing.

*/ + /** The SAX endElement method does nothing. */ public void endElement (String namespaceURI, String localName, String qName) diff --git a/java/src/org/apache/xml/resolver/readers/OASISXMLCatalogReader.java b/java/src/org/apache/xml/resolver/readers/OASISXMLCatalogReader.java index 1a4d929..42ea04e 100644 --- a/java/src/org/apache/xml/resolver/readers/OASISXMLCatalogReader.java +++ b/java/src/org/apache/xml/resolver/readers/OASISXMLCatalogReader.java @@ -71,8 +71,8 @@ import org.xml.sax.*; import org.w3c.dom.*; /** - *

Parse OASIS Entity Resolution Technical Committee - * XML Catalog files.

+ * Parse OASIS Entity Resolution Technical Committee + * XML Catalog files. * * @see Catalog * @@ -109,9 +109,9 @@ public class OASISXMLCatalogReader extends SAXCatalogReader implements SAXCatalo } /** - *

Are we in an extension namespace?

+ * Are we in an extension namespace? * - * @returns true if the current stack of open namespaces includes + * @return true if the current stack of open namespaces includes * an extension namespace. */ protected boolean inExtensionNamespace() { @@ -134,12 +134,12 @@ public class OASISXMLCatalogReader extends SAXCatalogReader implements SAXCatalo // ---------------------------------------------------------------------- // Implement the SAX ContentHandler interface - /**

The SAX setDocumentLocator method does nothing.

*/ + /** The SAX setDocumentLocator method does nothing. */ public void setDocumentLocator (Locator locator) { return; } - /**

The SAX startDocument method does nothing.

*/ + /** The SAX startDocument method does nothing. */ public void startDocument () throws SAXException { baseURIStack.push(catalog.getCurrentBase()); @@ -147,16 +147,16 @@ public class OASISXMLCatalogReader extends SAXCatalogReader implements SAXCatalo return; } - /**

The SAX endDocument method does nothing.

*/ + /** The SAX endDocument method does nothing. */ public void endDocument () throws SAXException { return; } /** - *

The SAX startElement method recognizes elements + * The SAX startElement method recognizes elements * from the plain catalog format and instantiates CatalogEntry - * objects for them.

+ * objects for them. * * @param namespaceURI The namespace name of the element. * @param localName The local name of the element. @@ -449,7 +449,7 @@ public class OASISXMLCatalogReader extends SAXCatalogReader implements SAXCatalo && checkAttributes(atts, attName2); } - /**

The SAX endElement method does nothing.

*/ + /** The SAX endElement method does nothing. */ public void endElement (String namespaceURI, String localName, String qName) @@ -519,37 +519,37 @@ public class OASISXMLCatalogReader extends SAXCatalogReader implements SAXCatalo return; } - /**

The SAX characters method does nothing.

*/ + /** The SAX characters method does nothing. */ public void characters (char ch[], int start, int length) throws SAXException { return; } - /**

The SAX ignorableWhitespace method does nothing.

*/ + /** The SAX ignorableWhitespace method does nothing. */ public void ignorableWhitespace (char ch[], int start, int length) throws SAXException { return; } - /**

The SAX processingInstruction method does nothing.

*/ + /** The SAX processingInstruction method does nothing. */ public void processingInstruction (String target, String data) throws SAXException { return; } - /**

The SAX skippedEntity method does nothing.

*/ + /** The SAX skippedEntity method does nothing. */ public void skippedEntity (String name) throws SAXException { return; } - /**

The SAX startPrefixMapping method does nothing.

*/ + /** The SAX startPrefixMapping method does nothing. */ public void startPrefixMapping(String prefix, String uri) throws SAXException { return; } - /**

The SAX endPrefixMapping method does nothing.

*/ + /** The SAX endPrefixMapping method does nothing. */ public void endPrefixMapping(String prefix) throws SAXException { return; diff --git a/java/src/org/apache/xml/resolver/readers/SAXCatalogParser.java b/java/src/org/apache/xml/resolver/readers/SAXCatalogParser.java index abec686..ee5fec9 100644 --- a/java/src/org/apache/xml/resolver/readers/SAXCatalogParser.java +++ b/java/src/org/apache/xml/resolver/readers/SAXCatalogParser.java @@ -63,7 +63,7 @@ import org.apache.xml.resolver.Catalog; import org.xml.sax.*; /** - *

The SAXCatalogParser interface.

+ * The SAXCatalogParser interface. * *

This interface must be implemented in order for a class to * participate as a parser for the SAXCatalogReader. diff --git a/java/src/org/apache/xml/resolver/readers/SAXCatalogReader.java b/java/src/org/apache/xml/resolver/readers/SAXCatalogReader.java index e638fe9..22406f0 100644 --- a/java/src/org/apache/xml/resolver/readers/SAXCatalogReader.java +++ b/java/src/org/apache/xml/resolver/readers/SAXCatalogReader.java @@ -78,7 +78,7 @@ import org.xml.sax.*; import javax.xml.parsers.*; /** - *

A SAX-based CatalogReader

+ * A SAX-based CatalogReader. * *

This class is used to read XML Catalogs using the SAX. This reader * has an advantage over the DOM-based reader in that it functions on @@ -113,7 +113,7 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document protected String parserClass = null; /** - *

Mapping table from QNames to CatalogParser classes.

+ * Mapping table from QNames to CatalogParser classes. * *

Each key in this hash table has the form "elementname" * or "{namespaceuri}elementname". The former is used if the @@ -207,7 +207,7 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document } /** - *

Parse an XML Catalog file.

+ * Parse an XML Catalog file. * * @param catalog The catalog to which this catalog file belongs * @param fileUrl The URL or filename of the catalog file to process @@ -239,7 +239,7 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document } /** - *

Parse an XML Catalog stream.

+ * Parse an XML Catalog stream. * * @param catalog The catalog to which this catalog file belongs * @param is The input stream from which the catalog will be read @@ -301,21 +301,21 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document // ---------------------------------------------------------------------- // Implement the SAX ContentHandler interface - /**

The SAX setDocumentLocator method. Does nothing.

*/ + /** The SAX setDocumentLocator method. Does nothing. */ public void setDocumentLocator (Locator locator) { if (saxParser != null) { saxParser.setDocumentLocator(locator); } } - /**

The SAX startDocument method. Does nothing.

*/ + /** The SAX startDocument method. Does nothing. */ public void startDocument () throws SAXException { saxParser = null; abandonHope = false; return; } - /**

The SAX endDocument method. Does nothing.

*/ + /** The SAX endDocument method. Does nothing. */ public void endDocument ()throws SAXException { if (saxParser != null) { saxParser.endDocument(); @@ -323,7 +323,7 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document } /** - *

The SAX startElement method.

+ * The SAX startElement method. * *

The catalog parser is selected based on the namespace of the * first element encountered in the catalog.

@@ -399,7 +399,7 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document } /** - *

The SAX2 startElement method.

+ * The SAX2 startElement method. * *

The catalog parser is selected based on the namespace of the * first element encountered in the catalog.

@@ -459,14 +459,14 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document } } - /**

The SAX endElement method. Does nothing.

*/ + /** The SAX endElement method. Does nothing. */ public void endElement (String name) throws SAXException { if (saxParser != null) { saxParser.endElement(name); } } - /**

The SAX2 endElement method. Does nothing.

*/ + /** The SAX2 endElement method. Does nothing. */ public void endElement (String namespaceURI, String localName, String qName) throws SAXException { @@ -475,7 +475,7 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document } } - /**

The SAX characters method. Does nothing.

*/ + /** The SAX characters method. Does nothing. */ public void characters (char ch[], int start, int length) throws SAXException { if (saxParser != null) { @@ -483,7 +483,7 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document } } - /**

The SAX ignorableWhitespace method. Does nothing.

*/ + /** The SAX ignorableWhitespace method. Does nothing. */ public void ignorableWhitespace (char ch[], int start, int length) throws SAXException { if (saxParser != null) { @@ -491,7 +491,7 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document } } - /**

The SAX processingInstruction method. Does nothing.

*/ + /** The SAX processingInstruction method. Does nothing. */ public void processingInstruction (String target, String data) throws SAXException { if (saxParser != null) { @@ -499,7 +499,7 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document } } - /**

The SAX startPrefixMapping method. Does nothing.

*/ + /** The SAX startPrefixMapping method. Does nothing. */ public void startPrefixMapping (String prefix, String uri) throws SAXException { if (saxParser != null) { @@ -507,7 +507,7 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document } } - /**

The SAX endPrefixMapping method. Does nothing.

*/ + /** The SAX endPrefixMapping method. Does nothing. */ public void endPrefixMapping (String prefix) throws SAXException { if (saxParser != null) { @@ -515,7 +515,7 @@ public class SAXCatalogReader implements CatalogReader, ContentHandler, Document } } - /**

The SAX skippedentity method. Does nothing.

*/ + /** The SAX skippedentity method. Does nothing. */ public void skippedEntity (String name) throws SAXException { if (saxParser != null) { diff --git a/java/src/org/apache/xml/resolver/readers/SAXParserHandler.java b/java/src/org/apache/xml/resolver/readers/SAXParserHandler.java index 8e6dbcf..c289171 100644 --- a/java/src/org/apache/xml/resolver/readers/SAXParserHandler.java +++ b/java/src/org/apache/xml/resolver/readers/SAXParserHandler.java @@ -65,7 +65,7 @@ import org.xml.sax.*; import org.xml.sax.helpers.*; /** - *

An entity-resolving DefaultHandler

+ * An entity-resolving DefaultHandler. * *

This class provides a SAXParser DefaultHandler that performs * entity resolution. diff --git a/java/src/org/apache/xml/resolver/readers/TR9401CatalogReader.java b/java/src/org/apache/xml/resolver/readers/TR9401CatalogReader.java index 1497771..820ef90 100644 --- a/java/src/org/apache/xml/resolver/readers/TR9401CatalogReader.java +++ b/java/src/org/apache/xml/resolver/readers/TR9401CatalogReader.java @@ -68,7 +68,7 @@ import org.apache.xml.resolver.CatalogEntry; import org.apache.xml.resolver.CatalogException; /** - *

Parses OASIS Open Catalog files.

+ * Parses OASIS Open Catalog files. * *

This class reads OASIS Open Catalog files, returning a stream * of tokens.

@@ -91,9 +91,9 @@ import org.apache.xml.resolver.CatalogException; public class TR9401CatalogReader extends TextCatalogReader { /** - *

Start parsing an OASIS TR9401 Open Catalog file. The file is + * Start parsing an OASIS TR9401 Open Catalog file. The file is * actually read and parsed - * as needed by nextEntry.

+ * as needed by nextEntry. * *

In a TR9401 Catalog the 'DELEGATE' entry delegates public * identifiers. There is no delegate entry for system identifiers diff --git a/java/src/org/apache/xml/resolver/readers/TextCatalogReader.java b/java/src/org/apache/xml/resolver/readers/TextCatalogReader.java index ad75d3a..e42fc5d 100644 --- a/java/src/org/apache/xml/resolver/readers/TextCatalogReader.java +++ b/java/src/org/apache/xml/resolver/readers/TextCatalogReader.java @@ -73,7 +73,7 @@ import org.apache.xml.resolver.CatalogException; import org.apache.xml.resolver.readers.CatalogReader; /** - *

Parses plain text Catalog files.

+ * Parses plain text Catalog files. * *

This class reads plain text Open Catalog files.

* @@ -107,7 +107,7 @@ public class TextCatalogReader implements CatalogReader { protected boolean caseSensitive = false; /** - *

Construct a CatalogReader object.

+ * Construct a CatalogReader object. */ public TextCatalogReader() { } @@ -120,7 +120,7 @@ public class TextCatalogReader implements CatalogReader { } /** - *

Start parsing a text catalog file. The file is + * Start parsing a text catalog file. The file is * actually read and parsed * as needed by nextEntry.

* @@ -209,7 +209,7 @@ public class TextCatalogReader implements CatalogReader { } /** - *

The destructor.

+ * The destructor. * *

Makes sure the catalog file is closed.

*/ @@ -227,7 +227,7 @@ public class TextCatalogReader implements CatalogReader { // ----------------------------------------------------------------- /** - *

Return the next token in the catalog file.

+ * Return the next token in the catalog file. * * @return The Catalog file token from the input stream. * @throws IOException If an error occurs reading from the stream. @@ -307,7 +307,7 @@ public class TextCatalogReader implements CatalogReader { } /** - *

Return the next logical character from the input stream.

+ * Return the next logical character from the input stream. * * @return The next (logical) character from the input stream. The * character may be buffered from a previous lookahead. diff --git a/java/src/org/apache/xml/resolver/readers/XCatalogReader.java b/java/src/org/apache/xml/resolver/readers/XCatalogReader.java index 5b038d3..a66c28f 100644 --- a/java/src/org/apache/xml/resolver/readers/XCatalogReader.java +++ b/java/src/org/apache/xml/resolver/readers/XCatalogReader.java @@ -70,8 +70,8 @@ import org.xml.sax.*; import javax.xml.parsers.*; /** - *

Parse "xcatalog" XML Catalog files, this is the XML Catalog format - * developed by John Cowan and supported by Apache.

+ * Parse "xcatalog" XML Catalog files, this is the XML Catalog format + * developed by John Cowan and supported by Apache. * * @see Catalog * @@ -104,27 +104,27 @@ public class XCatalogReader extends SAXCatalogReader implements SAXCatalogParser // ---------------------------------------------------------------------- // Implement the SAX DocumentHandler interface - /**

The SAX setDocumentLocator method does nothing.

*/ + /** The SAX setDocumentLocator method does nothing. */ public void setDocumentLocator (Locator locator) { return; } - /**

The SAX startDocument method does nothing.

*/ + /** The SAX startDocument method does nothing. */ public void startDocument () throws SAXException { return; } - /**

The SAX endDocument method does nothing.

*/ + /** The SAX endDocument method does nothing. */ public void endDocument () throws SAXException { return; } /** - *

The SAX startElement method recognizes elements + * The SAX startElement method recognizes elements * from the plain catalog format and instantiates CatalogEntry - * objects for them.

+ * objects for them. * * @param namespaceURI The namespace name of the element. * @param localName The local name of the element. @@ -197,7 +197,7 @@ public class XCatalogReader extends SAXCatalogReader implements SAXCatalogParser } } - /**

The SAX endElement method does nothing.

*/ + /** The SAX endElement method does nothing. */ public void endElement (String namespaceURI, String localName, String qName) @@ -205,19 +205,19 @@ public class XCatalogReader extends SAXCatalogReader implements SAXCatalogParser return; } - /**

The SAX characters method does nothing.

*/ + /** The SAX characters method does nothing. */ public void characters (char ch[], int start, int length) throws SAXException { return; } - /**

The SAX ignorableWhitespace method does nothing.

*/ + /** The SAX ignorableWhitespace method does nothing. */ public void ignorableWhitespace (char ch[], int start, int length) throws SAXException { return; } - /**

The SAX processingInstruction method does nothing.

*/ + /** The SAX processingInstruction method does nothing. */ public void processingInstruction (String target, String data) throws SAXException { return; diff --git a/java/src/org/apache/xml/resolver/readers/package.html b/java/src/org/apache/xml/resolver/readers/package.html index e79bf6d..0ebb097 100644 --- a/java/src/org/apache/xml/resolver/readers/package.html +++ b/java/src/org/apache/xml/resolver/readers/package.html @@ -3,7 +3,7 @@ Apache XML Commons Resolver Readers package -

Apache XML Commons Resolver Readers package

+

Apache XML Commons Resolver Readers package.

This package provides the set of classes that read catalog files and extract catalog entries from them.

diff --git a/java/src/org/apache/xml/resolver/tools/CatalogResolver.java b/java/src/org/apache/xml/resolver/tools/CatalogResolver.java index e2c5ef8..b8a7a49 100644 --- a/java/src/org/apache/xml/resolver/tools/CatalogResolver.java +++ b/java/src/org/apache/xml/resolver/tools/CatalogResolver.java @@ -75,7 +75,7 @@ import org.apache.xml.resolver.Catalog; import org.apache.xml.resolver.CatalogManager; /** - *

A SAX EntityResolver/JAXP URIResolver that uses catalogs.

+ * A SAX EntityResolver/JAXP URIResolver that uses catalogs. * *

This class implements both a SAX EntityResolver and a JAXP URIResolver. *

@@ -133,8 +133,8 @@ public class CatalogResolver implements EntityResolver, URIResolver { } /** - *

Implements the guts of the resolveEntity method - * for the SAX interface.

+ * Implements the guts of the resolveEntity method + * for the SAX interface. * *

Presented with an optional public identifier and a system * identifier, this function attempts to locate a mapping in the @@ -196,8 +196,8 @@ public class CatalogResolver implements EntityResolver, URIResolver { } /** - *

Implements the resolveEntity method - * for the SAX interface.

+ * Implements the resolveEntity method + * for the SAX interface. * *

Presented with an optional public identifier and a system * identifier, this function attempts to locate a mapping in the diff --git a/java/src/org/apache/xml/resolver/tools/ResolvingParser.java b/java/src/org/apache/xml/resolver/tools/ResolvingParser.java index b41271c..a9d829a 100644 --- a/java/src/org/apache/xml/resolver/tools/ResolvingParser.java +++ b/java/src/org/apache/xml/resolver/tools/ResolvingParser.java @@ -73,7 +73,7 @@ import org.apache.xml.resolver.Catalog; import org.apache.xml.resolver.CatalogManager; /** - *

A SAX Parser that performs catalog-based entity resolution.

+ * A SAX Parser that performs catalog-based entity resolution. * *

This class implements a SAX Parser that performs entity resolution * using the CatalogResolver. The actual, underlying parser is obtained @@ -104,25 +104,25 @@ public class ResolvingParser */ public static boolean suppressExplanation = false; - /** The underlying parser */ + /** The underlying parser. */ private SAXParser saxParser = null; - /** The underlying reader */ + /** The underlying reader. */ private Parser parser = null; - /** The underlying DocumentHandler */ + /** The underlying DocumentHandler. */ private DocumentHandler documentHandler = null; - /** The underlying DTDHandler */ + /** The underlying DTDHandler. */ private DTDHandler dtdHandler = null; - /** The manager for the underlying resolver */ + /** The manager for the underlying resolver. */ private CatalogManager catalogManager = CatalogManager.getStaticManager(); - /** The underlying catalog resolver */ + /** The underlying catalog resolver. */ private CatalogResolver catalogResolver = null; - /** A separate resolver for oasis-xml-pi catalogs */ + /** A separate resolver for oasis-xml-pi catalogs. */ private CatalogResolver piCatalogResolver = null; /** Are we in the prolog? Is an oasis-xml-catalog PI valid now? */ @@ -134,18 +134,18 @@ public class ResolvingParser /** The base URI of the input document, if known. */ private URL baseURL = null; - /** Constructor */ + /** Constructor. */ public ResolvingParser() { initParser(); } - /** Constructor */ + /** Constructor. */ public ResolvingParser(CatalogManager manager) { catalogManager = manager; initParser(); } - /** Initialize the parser */ + /** Initialize the parser. */ private void initParser() { catalogResolver = new CatalogResolver(catalogManager); @@ -163,13 +163,13 @@ public class ResolvingParser } } - /** Return the Catalog being used */ + /** Return the Catalog being used. */ public Catalog getCatalog() { return catalogResolver.getCatalog(); } /** - *

SAX Parser API

+ * SAX Parser API. * *

Note that the JAXP 1.1ea2 parser crashes with an InternalError if * it encounters a system identifier that appears to be a relative URI @@ -201,7 +201,7 @@ public class ResolvingParser } } - /** SAX Parser API + /** SAX Parser API. * * @see #parse(InputSource) */ @@ -217,18 +217,18 @@ public class ResolvingParser } } - /** SAX Parser API */ + /** SAX Parser API. */ public void setDocumentHandler(DocumentHandler handler) { documentHandler = handler; } - /** SAX Parser API */ + /** SAX Parser API. */ public void setDTDHandler(DTDHandler handler) { dtdHandler = handler; } /** - *

SAX Parser API

+ * SAX Parser API. * *

The purpose of this class is to implement an entity resolver. * Attempting to set a different one is pointless (and ignored).

@@ -237,17 +237,17 @@ public class ResolvingParser // nop } - /** SAX Parser API */ + /** SAX Parser API. */ public void setErrorHandler(ErrorHandler handler) { parser.setErrorHandler(handler); } - /** SAX Parser API */ + /** SAX Parser API. */ public void setLocale(Locale locale) throws SAXException { parser.setLocale(locale); } - /** SAX DocumentHandler API */ + /** SAX DocumentHandler API. */ public void characters(char[] ch, int start, int length) throws SAXException { if (documentHandler != null) { @@ -255,21 +255,21 @@ public class ResolvingParser } } - /** SAX DocumentHandler API */ + /** SAX DocumentHandler API. */ public void endDocument() throws SAXException { if (documentHandler != null) { documentHandler.endDocument(); } } - /** SAX DocumentHandler API */ + /** SAX DocumentHandler API. */ public void endElement(String name) throws SAXException { if (documentHandler != null) { documentHandler.endElement(name); } } - /** SAX DocumentHandler API */ + /** SAX DocumentHandler API. */ public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { if (documentHandler != null) { @@ -277,7 +277,7 @@ public class ResolvingParser } } - /** SAX DocumentHandler API */ + /** SAX DocumentHandler API. */ public void processingInstruction(String target, String pidata) throws SAXException { @@ -342,21 +342,21 @@ public class ResolvingParser } } - /** SAX DocumentHandler API */ + /** SAX DocumentHandler API. */ public void setDocumentLocator(Locator locator) { if (documentHandler != null) { documentHandler.setDocumentLocator(locator); } } - /** SAX DocumentHandler API */ + /** SAX DocumentHandler API. */ public void startDocument() throws SAXException { if (documentHandler != null) { documentHandler.startDocument(); } } - /** SAX DocumentHandler API */ + /** SAX DocumentHandler API. */ public void startElement(String name, AttributeList atts) throws SAXException { allowXMLCatalogPI = false; @@ -365,7 +365,7 @@ public class ResolvingParser } } - /** SAX DTDHandler API */ + /** SAX DTDHandler API. */ public void notationDecl (String name, String publicId, String systemId) throws SAXException { allowXMLCatalogPI = false; @@ -374,7 +374,7 @@ public class ResolvingParser } } - /** SAX DTDHandler API */ + /** SAX DTDHandler API. */ public void unparsedEntityDecl (String name, String publicId, String systemId, @@ -387,9 +387,9 @@ public class ResolvingParser } /** - *

Implements the resolveEntity method + * Implements the resolveEntity method * for the SAX interface, using an underlying CatalogResolver - * to do the real work.

+ * to do the real work. */ public InputSource resolveEntity (String publicId, String systemId) { allowXMLCatalogPI = false; @@ -429,7 +429,7 @@ public class ResolvingParser } } - /** Setup for parsing */ + /** Setup for parsing. */ private void setupParse(String systemId) { allowXMLCatalogPI = true; parser.setEntityResolver(this); @@ -463,7 +463,7 @@ public class ResolvingParser } } - /** Provide one possible explanation for an InternalError */ + /** Provide one possible explanation for an InternalError. */ private void explain(String systemId) { if (!suppressExplanation) { System.out.println("Parser probably encountered bad URI in " + systemId); diff --git a/java/src/org/apache/xml/resolver/tools/ResolvingXMLFilter.java b/java/src/org/apache/xml/resolver/tools/ResolvingXMLFilter.java index 4865ab0..97e9ebc 100644 --- a/java/src/org/apache/xml/resolver/tools/ResolvingXMLFilter.java +++ b/java/src/org/apache/xml/resolver/tools/ResolvingXMLFilter.java @@ -73,7 +73,7 @@ import org.apache.xml.resolver.Catalog; import org.apache.xml.resolver.CatalogManager; /** - *

A SAX XMLFilter that performs catalog-based entity resolution.

+ * A SAX XMLFilter that performs catalog-based entity resolution. * *

This class implements a SAX XMLFilter that performs entity resolution * using the CatalogResolver. The actual, underlying parser is obtained @@ -89,19 +89,20 @@ import org.apache.xml.resolver.CatalogManager; * @version 1.0 */ public class ResolvingXMLFilter extends XMLFilterImpl { - /** Suppress explanatory message? + /** + * Suppress explanatory message? * * @see #parse(InputSource) */ public static boolean suppressExplanation = false; - /** The manager for the underlying resolver */ + /** The manager for the underlying resolver. */ private CatalogManager catalogManager = CatalogManager.getStaticManager(); - /** The underlying catalog resolver */ + /** The underlying catalog resolver. */ private CatalogResolver catalogResolver = null; - /** A separate resolver for oasis-xml-pi catalogs */ + /** A separate resolver for oasis-xml-pi catalogs. */ private CatalogResolver piCatalogResolver = null; /** Are we in the prolog? Is an oasis-xml-catalog PI valid now? */ @@ -113,26 +114,26 @@ public class ResolvingXMLFilter extends XMLFilterImpl { /** The base URI of the input document, if known. */ private URL baseURL = null; - /** Construct an empty XML Filter with no parent */ + /** Construct an empty XML Filter with no parent. */ public ResolvingXMLFilter() { super(); catalogResolver = new CatalogResolver(catalogManager); } - /** Construct an XML filter with the specified parent */ + /** Construct an XML filter with the specified parent. */ public ResolvingXMLFilter(XMLReader parent) { super(parent); catalogResolver = new CatalogResolver(catalogManager); } - /** Construct an XML filter with the specified parent */ + /** Construct an XML filter with the specified parent. */ public ResolvingXMLFilter(CatalogManager manager) { super(); catalogManager = manager; catalogResolver = new CatalogResolver(catalogManager); } - /** Construct an XML filter with the specified parent */ + /** Construct an XML filter with the specified parent. */ public ResolvingXMLFilter(XMLReader parent, CatalogManager manager) { super(parent); catalogManager = manager; @@ -140,14 +141,14 @@ public class ResolvingXMLFilter extends XMLFilterImpl { } /** - *

Provide accessto the underlying Catalog

+ * Provide accessto the underlying Catalog. */ public Catalog getCatalog() { return catalogResolver.getCatalog(); } /** - *

SAX XMLReader API

+ * SAX XMLReader API. * *

Note that the JAXP 1.1ea2 parser crashes with an InternalError if * it encounters a system identifier that appears to be a relative URI @@ -181,7 +182,7 @@ public class ResolvingXMLFilter extends XMLFilterImpl { } } - /** SAX XMLReader API + /** SAX XMLReader API. * * @see #parse(InputSource) */ @@ -200,9 +201,9 @@ public class ResolvingXMLFilter extends XMLFilterImpl { } /** - *

Implements the resolveEntity method + * Implements the resolveEntity method * for the SAX interface, using an underlying CatalogResolver - * to do the real work.

+ * to do the real work. */ public InputSource resolveEntity (String publicId, String systemId) { allowXMLCatalogPI = false; @@ -242,7 +243,7 @@ public class ResolvingXMLFilter extends XMLFilterImpl { } } - /** SAX DTDHandler API + /** SAX DTDHandler API. * *

Captured here only to detect the end of the prolog so that * we can ignore subsequent oasis-xml-catalog PIs. Otherwise @@ -254,7 +255,7 @@ public class ResolvingXMLFilter extends XMLFilterImpl { super.notationDecl(name,publicId,systemId); } - /** SAX DTDHandler API + /** SAX DTDHandler API. * *

Captured here only to detect the end of the prolog so that * we can ignore subsequent oasis-xml-catalog PIs. Otherwise @@ -269,7 +270,7 @@ public class ResolvingXMLFilter extends XMLFilterImpl { super.unparsedEntityDecl (name, publicId, systemId, notationName); } - /** SAX ContentHandler API + /** SAX ContentHandler API. * *

Captured here only to detect the end of the prolog so that * we can ignore subsequent oasis-xml-catalog PIs. Otherwise @@ -282,7 +283,7 @@ public class ResolvingXMLFilter extends XMLFilterImpl { super.startElement(uri,localName,qName,atts); } - /** SAX ContentHandler API + /** SAX ContentHandler API. * *

Detect and use the oasis-xml-catalog PI if it occurs.

*/ @@ -376,7 +377,7 @@ public class ResolvingXMLFilter extends XMLFilterImpl { } } - /** Provide one possible explanation for an InternalError */ + /** Provide one possible explanation for an InternalError. */ private void explain(String systemId) { if (!suppressExplanation) { System.out.println("XMLReader probably encountered bad URI in " + systemId); diff --git a/java/src/org/apache/xml/resolver/tools/ResolvingXMLReader.java b/java/src/org/apache/xml/resolver/tools/ResolvingXMLReader.java index 474cfec..fec42b7 100644 --- a/java/src/org/apache/xml/resolver/tools/ResolvingXMLReader.java +++ b/java/src/org/apache/xml/resolver/tools/ResolvingXMLReader.java @@ -66,7 +66,7 @@ import javax.xml.parsers.*; import org.apache.xml.resolver.*; /** - *

A SAX XMLReader that performs catalog-based entity resolution.

+ * A SAX XMLReader that performs catalog-based entity resolution. * *

This class implements a SAX XMLReader that performs entity resolution * using the CatalogResolver. The actual, underlying parser is obtained @@ -83,7 +83,7 @@ import org.apache.xml.resolver.*; */ public class ResolvingXMLReader extends ResolvingXMLFilter { /** - *

Construct a new reader from the JAXP factory

+ * Construct a new reader from the JAXP factory. * *

In order to do its job, a ResolvingXMLReader must in fact be * a filter. So the only difference between this code and the filter @@ -101,7 +101,7 @@ public class ResolvingXMLReader extends ResolvingXMLFilter { } /** - *

Construct a new reader from the JAXP factory

+ * Construct a new reader from the JAXP factory. * *

In order to do its job, a ResolvingXMLReader must in fact be * a filter. So the only difference between this code and the filter diff --git a/java/src/org/apache/xml/resolver/tools/package.html b/java/src/org/apache/xml/resolver/tools/package.html index 82eb95e..f63ca66 100644 --- a/java/src/org/apache/xml/resolver/tools/package.html +++ b/java/src/org/apache/xml/resolver/tools/package.html @@ -3,7 +3,7 @@ Apache XML Commons Resolver Tools package -

Apache XML Commons Resolver Tools package

+

Apache XML Commons Resolver Tools package.

This package implements several tool classes for catalog-based entity resolution: