01: // DOMCatalogParser.java - An interface for reading catalog files
02:
03: /*
04: * Copyright 2001-2004 The Apache Software Foundation or its licensors,
05: * as applicable.
06: *
07: * Licensed under the Apache License, Version 2.0 (the "License");
08: * you may not use this file except in compliance with the License.
09: * You may obtain a copy of the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS,
15: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16: * See the License for the specific language governing permissions and
17: * limitations under the License.
18: */
19:
20: package com.sun.org.apache.xml.internal.resolver.readers;
21:
22: import com.sun.org.apache.xml.internal.resolver.Catalog;
23: import org.w3c.dom.Node;
24:
25: /**
26: * The DOMCatalogParser interface.
27: *
28: * <p>This interface must be implemented in order for a class to
29: * participate as a parser for the DOMCatalogReader.
30: *
31: * @see Catalog
32: * @see DOMCatalogReader
33: *
34: * @author Norman Walsh
35: * <a href="mailto:Norman.Walsh@Sun.COM">Norman.Walsh@Sun.COM</a>
36: *
37: * @version 1.0
38: */
39: public interface DOMCatalogParser {
40: /**
41: * Parse a DOM node as a catalog entry.
42: *
43: * <p>This method is expected to analyze the specified node and
44: * construct appropriate catalog entry(ies) from it.</p>
45: *
46: * @param catalog The catalog for which this node is being considered.
47: * @param node The DOM Node from the catalog.
48: */
49: public void parseCatalogEntry(Catalog catalog, Node node);
50: }
|