01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.xerces.xni.grammars;
19:
20: import org.apache.xerces.xni.XMLResourceIdentifier;
21:
22: /**
23: * <p> This interface describes basic attributes of XML grammars--their
24: * physical location and their type. </p>
25: *
26: * @author Neil Graham, IBM
27: * @version $Id: XMLGrammarDescription.java 447245 2006-09-18 05:22:10Z mrglavas $
28: */
29: public interface XMLGrammarDescription extends XMLResourceIdentifier {
30:
31: // initial set of grammar constants that some configurations will recognize;user
32: // components which create and/or recognize other types of grammars may
33: // certainly use their own constants in place of these (so long as
34: // their Grammar objects implement this interface).
35:
36: /**
37: * The grammar type constant for XML Schema grammars. When getGrammarType()
38: * method returns this constant, the object should be an instance of
39: * the XMLSchemaDescription interface.
40: */
41: public static final String XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
42:
43: /**
44: * The grammar type constant for DTD grammars. When getGrammarType()
45: * method returns this constant, the object should be an instance of
46: * the XMLDTDDescription interface.
47: */
48: public static final String XML_DTD = "http://www.w3.org/TR/REC-xml";
49:
50: /**
51: * Return the type of this grammar.
52: *
53: * @return the type of this grammar
54: */
55: public String getGrammarType();
56:
57: } // interface XMLGrammarDescription
|