Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlauzond2005-11-01 17:51:03 +0000
committerlauzond2005-11-01 17:51:03 +0000
commit79caf858fbaa728d81ca6d812383d0d8a351f54f (patch)
tree8739c2dda938352cc3242dcf5ce57c81045ac41f /bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/XMLCatalogImpl.java
parent072f65952f99e52584f2758d90cba2501b017ba3 (diff)
downloadwebtools.webservices-79caf858fbaa728d81ca6d812383d0d8a351f54f.tar.gz
webtools.webservices-79caf858fbaa728d81ca6d812383d0d8a351f54f.tar.xz
webtools.webservices-79caf858fbaa728d81ca6d812383d0d8a351f54f.zip
[113128] move to single jar and remove deprecated snippets
Diffstat (limited to 'bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/XMLCatalogImpl.java')
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/XMLCatalogImpl.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/XMLCatalogImpl.java b/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/XMLCatalogImpl.java
new file mode 100644
index 000000000..f7c40e7ff
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/XMLCatalogImpl.java
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal.core.wsdl.xsd;
+
+import java.util.Hashtable;
+import java.util.Map;
+
+/**
+ * The default implementation of the XML Catalog.
+ *
+ * @author Lawrence Mandel (lmandel@ca.ibm.com)
+ */
+public class XMLCatalogImpl extends XMLCatalog
+{
+ protected Map catalog = new Hashtable();
+
+ /* (non-Javadoc)
+ * @see org.eclipse.wsdl.validate.xmlconformance.XMLCatalog#addEntryToCatalog(java.lang.String, java.lang.String)
+ */
+ public void addEntryToCatalog(String publicId, String systemId)
+ {
+ catalog.put(publicId, systemId);
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.wsdl.validate.xmlconformance.XMLCatalog#resolveEntityLocation(java.lang.String, java.lang.String)
+ */
+ public String resolveEntityLocation(String publicId, String systemId)
+ {
+ // if there's no system id use the public id
+ if (systemId == null || systemId.equals(""))
+ {
+ systemId = publicId;
+ }
+ return (String)catalog.get(systemId);
+ }
+}

Back to the top