src/main/java/org/jboss/util/xml/catalog/Resolver.java
public Vector resolveAllSystem(String systemId)
	throws MalformedURLException, IOException {
	Vector resolutions = new Vector();

	// If there are SYSTEM entries in this catalog, start with them
	if (systemId != null) {
	    Vector localResolutions = resolveAllLocalSystem(systemId);
	    resolutions = appendVector(resolutions, localResolutions);
	}

	// Then look in the subordinate catalogs
	Vector subResolutions = resolveAllSubordinateCatalogs(SYSTEM,
							      null,
							      null,
							      systemId);
	resolutions = appendVector(resolutions, subResolutions);

	if (resolutions.size() > 0) {
	    return resolutions;
	} else {
	    return null;
	}
    }
public Vector resolveAllSystem(String systemId)
	throws MalformedURLException, IOException {
	Vector resolutions = new Vector();

	// If there are SYSTEM entries in this catalog, start with them
	if (systemId != null) {
	    Vector localResolutions = resolveAllLocalSystem(systemId);
	    resolutions = appendVector(resolutions, localResolutions);
	}

	// Then look in the subordinate catalogs
	Vector subResolutions = resolveAllSubordinateCatalogs(SYSTEM,
							      null,
							      null,
							      systemId);
	resolutions = appendVector(resolutions, subResolutions);

	if (resolutions.size() > 0) {
	    return resolutions;
	} else {
	    return null;
	}
    }
public Vector resolveAllSystem ( String systemId ) throws MalformedURLException , IOException { Vector resolutions = new Vector ( ) ; // If there are SYSTEM entries in this catalog, start with them if ( systemId != null ) { Vector localResolutions = resolveAllLocalSystem ( systemId ) ; resolutions = appendVector ( resolutions , localResolutions ) ; } // Then look in the subordinate catalogs Vector subResolutions = resolveAllSubordinateCatalogs ( SYSTEM , null , null , systemId ) ; resolutions = appendVector ( resolutions , subResolutions ) ; if ( resolutions . size ( ) > 0 ) { return resolutions ; } else { return null ; } }
Return the applicable SYSTEM system identifiers.

<p>If one or more SYSTEM entries exists in the Catalog
for the system ID specified, return the mapped values.</p>

<p>The caller is responsible for doing any necessary
normalization of the system identifier before calling
this method. For example, a relative system identifier in
a document might be converted to an absolute system identifier
before attempting to resolve it.</p>

<p>Note that this function will force all subordinate catalogs
to be loaded.</p>

<p>On Windows-based operating systems, the comparison between
the system identifier provided and the SYSTEM entries in the
Catalog is case-insensitive.</p>

@param systemId The system ID to locate in the catalog.

@return The system identifier to use for the notation.

@throws MalformedURLException The formal system identifier of a
subordinate catalog cannot be turned into a valid URL.
@throws IOException Error reading subordinate catalog file.
Return the applicable SYSTEM system identifiers .