Examples of CatalogEntry


Examples of org.apache.xml.resolver.CatalogEntry

  for (int count = 0; count < numArgs; count++) {
    args.addElement(nextToken());
  }

  catalog.addEntry(new CatalogEntry(entryToken, args));
      } catch (CatalogException cex) {
  if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) {
    if (unknownEntry == null) {
      unknownEntry = new Vector();
    }
View Full Code Here

Examples of org.apache.xml.resolver.CatalogEntry

      Debug.message(1, "Invalid catalog entry type", localName);
    }

    if (entryType >= 0) {
      try {
  CatalogEntry ce = new CatalogEntry(entryType, entryArgs);
  catalog.addEntry(ce);
      } catch (CatalogException cex) {
  if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) {
    Debug.message(1, "Invalid catalog entry type", localName);
  } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) {
View Full Code Here

Examples of org.apache.xml.resolver.CatalogEntry

  for (int count = 0; count < numArgs; count++) {
    args.addElement(nextToken());
  }

  catalog.addEntry(new CatalogEntry(entryToken, args));
      } catch (CatalogException cex) {
  if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) {
    if (unknownEntry == null) {
      unknownEntry = new Vector();
    }
View Full Code Here

Examples of org.apache.xml.resolver.CatalogEntry

  baseURIStack.push(baseURI);

  Debug.message(4, "xml:base", baseURI);

  try {
    CatalogEntry ce = new CatalogEntry(entryType, entryArgs);
    catalog.addEntry(ce);
  } catch (CatalogException cex) {
    if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) {
      Debug.message(1, "Invalid catalog entry type", localName);
    } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) {
      Debug.message(1, "Invalid catalog entry (base)", localName);
    }
  }

  entryType = -1;
  entryArgs = new Vector();
      } else {
  baseURIStack.push(baseURIStack.peek());
      }

      if (localName.equals("uriSuffix")) {
  if (checkAttributes(atts, "suffix", "uri")) {
    entryType = Resolver.URISUFFIX;
    entryArgs.add(atts.getValue("suffix"));
    entryArgs.add(atts.getValue("uri"));

    Debug.message(4, "uriSuffix",
      atts.getValue("suffix"),
      atts.getValue("uri"));
  }
      } else if (localName.equals("systemSuffix")) {
  if (checkAttributes(atts, "suffix", "uri")) {
    entryType = Resolver.SYSTEMSUFFIX;
    entryArgs.add(atts.getValue("suffix"));
    entryArgs.add(atts.getValue("uri"));

    Debug.message(4, "systemSuffix",
      atts.getValue("suffix"),
      atts.getValue("uri"));
  }
      } else {
  // This is equivalent to an invalid catalog entry type
  Debug.message(1, "Invalid catalog entry type", localName);
      }

      if (entryType >= 0) {
  try {
    CatalogEntry ce = new CatalogEntry(entryType, entryArgs);
    catalog.addEntry(ce);
  } catch (CatalogException cex) {
    if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) {
      Debug.message(1, "Invalid catalog entry type", localName);
    } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) {
View Full Code Here

Examples of org.apache.xml.resolver.CatalogEntry

  entryArgs.add(baseURI);

  Debug.message(4, "(reset) xml:base", baseURI);

  try {
    CatalogEntry ce = new CatalogEntry(entryType, entryArgs);
    catalog.addEntry(ce);
  } catch (CatalogException cex) {
    if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) {
      Debug.message(1, "Invalid catalog entry type", localName);
    } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) {
View Full Code Here

Examples of org.apache.xml.resolver.CatalogEntry

    /**
     * Adds a new Entry to the catalog
     */
    private void addEntry(String type, Vector args) {
        try {
            CatalogEntry entry = new CatalogEntry(type, args);
            catalog.addEntry(entry);
        } catch (CatalogException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.apache.xml.resolver.CatalogEntry

    /**
     * Adds a new Entry to the catalog
     */
    private void addEntry(String type, Vector args) {
        try {
            CatalogEntry entry = new CatalogEntry(type, args);
            catalog.addEntry(entry);
        } catch (CatalogException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.apache.xml.resolver.CatalogEntry

      catalog.getCatalogManager().debug.message(1, "Invalid catalog entry type", localName);
    }

    if (entryType >= 0) {
      try {
  CatalogEntry ce = new CatalogEntry(entryType, entryArgs);
  catalog.addEntry(ce);
      } catch (CatalogException cex) {
  if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) {
    catalog.getCatalogManager().debug.message(1, "Invalid catalog entry type", localName);
  } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) {
View Full Code Here

Examples of org.apache.xml.resolver.CatalogEntry

    for (int count = 0; count < numArgs; count++) {
      args.addElement(nextToken());
    }

    catalog.addEntry(new CatalogEntry(entryToken, args));
  } catch (CatalogException cex) {
    if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) {
      if (unknownEntry == null) {
        unknownEntry = new Vector();
      }
View Full Code Here

Examples of org.apache.xml.resolver.CatalogEntry

    for (int count = 0; count < numArgs; count++) {
      args.addElement(nextToken());
    }

    catalog.addEntry(new CatalogEntry(entryToken, args));
  } catch (CatalogException cex) {
    if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) {
      if (unknownEntry == null) {
        unknownEntry = new Vector();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.