src/main/java/org/jboss/util/xml/catalog/Catalog.java
public String resolveDocument()
    throws MalformedURLException, IOException {
    // If there's a DOCUMENT entry, return it

    catalogManager.debug.message(3, "resolveDocument");

    Enumeration enumt = catalogEntries.elements();
    while (enumt.hasMoreElements()) {
      CatalogEntry e = (CatalogEntry) enumt.nextElement();
      if (e.getEntryType() == DOCUMENT) {
	return e.getEntryArg(1); //FIXME check this
      }
    }

    return resolveSubordinateCatalogs(DOCUMENT,
				      null, null, null);
  }
public String resolveDocument()
    throws MalformedURLException, IOException {
    // If there's a DOCUMENT entry, return it

    catalogManager.debug.message(3, "resolveDocument");

    Enumeration enumt = catalogEntries.elements();
    while (enumt.hasMoreElements()) {
      CatalogEntry e = (CatalogEntry) enumt.nextElement();
      if (e.getEntryType() == DOCUMENT) {
	return e.getEntryArg(1); //FIXME check this
      }
    }

    return resolveSubordinateCatalogs(DOCUMENT,
				      null, null, null);
  }
public String resolveDocument ( ) throws MalformedURLException , IOException { // If there's a DOCUMENT entry, return it catalogManager . debug . message ( 3 , "resolveDocument" ) ; Enumeration enumt = catalogEntries . elements ( ) ; while ( enumt . hasMoreElements ( ) ) { CatalogEntry e = ( CatalogEntry ) enumt . nextElement ( ) ; if ( e . getEntryType ( ) == DOCUMENT ) { return e . getEntryArg ( 1 ) ; //FIXME check this } } return resolveSubordinateCatalogs ( DOCUMENT , null , null , null ) ; }
Return the applicable DOCUMENT entry.

@return The system identifier to use for the doctype.

@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 DOCUMENT entry .