public interface

XMLGrammarDescription

implements XMLResourceIdentifier
org.apache.xerces.xni.grammars.XMLGrammarDescription
Known Indirect Subclasses

Class Overview

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

Summary

Constants
String XML_DTD The grammar type constant for DTD grammars.
String XML_SCHEMA The grammar type constant for XML Schema grammars.
Public Methods
abstract String getGrammarType()
Return the type of this grammar.
[Expand]
Inherited Methods
From interface org.apache.xerces.xni.XMLResourceIdentifier

Constants

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.

Constant Value: "http://www.w3.org/TR/REC-xml"

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.

Constant Value: "http://www.w3.org/2001/XMLSchema"

Public Methods

public abstract String getGrammarType ()

Return the type of this grammar.

Returns
  • the type of this grammar