org.apache.xerces.xni.grammars

Interface XMLGrammarDescription

public interface XMLGrammarDescription extends XMLResourceIdentifier

This interface describes basic attributes of XML grammars--their physical location and their type.

Version: $Id: XMLGrammarDescription.java,v 1.7 2004/02/24 23:15:58 mrglavas Exp $

Author: Neil Graham, IBM

Field Summary
static StringXML_DTD
The grammar type constant for DTD grammars.
static StringXML_SCHEMA
The grammar type constant for XML Schema grammars.
Method Summary
StringgetGrammarType()
Return the type of this grammar.

Field Detail

XML_DTD

public static final String XML_DTD
The grammar type constant for DTD grammars. When getGrammarType() method returns this constant, the object should be an instance of the XMLDTDDescription interface.

XML_SCHEMA

public static final String XML_SCHEMA
The grammar type constant for XML Schema grammars. When getGrammarType() method returns this constant, the object should be an instance of the XMLSchemaDescription interface.

Method Detail

getGrammarType

public String getGrammarType()
Return the type of this grammar.

Returns: the type of this grammar

Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.