Class TREXGrammarReader.UndefinedDataTypeVocabulary

java.lang.Object
com.sun.msv.reader.trex.classic.TREXGrammarReader.UndefinedDataTypeVocabulary
All Implemented Interfaces:
DataTypeVocabulary
Enclosing class:
TREXGrammarReader

private static class TREXGrammarReader.UndefinedDataTypeVocabulary extends Object implements DataTypeVocabulary
Dummy DataTypeVocabulary for better error recovery. If DataTypeVocabulary is not found, the error is reported and this class is used to prevent further repetitive error messages.
  • Constructor Details

    • UndefinedDataTypeVocabulary

      private UndefinedDataTypeVocabulary()
  • Method Details

    • createTopLevelReaderState

      public State createTopLevelReaderState(StartTagInfo tag)
      Description copied from interface: DataTypeVocabulary
      creates a State object that will parse the element specified by tag parameter.
      Specified by:
      createTopLevelReaderState in interface DataTypeVocabulary
      Returns:
      null if given start tag is not recognized by this object. This method is called when an "island" of this vocabulary was found. The state returned from this method will be used to parse the root element of this island. The parent state of this state must implement TypeOwner or ExpressionOwner. In either case, the implementation must report its parsing result by calling either interface. If both interface is implemented, the implementation must notify via TypeOwner interface only and may not call methods of ExpressionOwner. If the parsed island is not a type definition (for example, comments or inclusion), the implementation may not call TypeOwner nor ExpressionOwner.
    • getType

      public org.relaxng.datatype.Datatype getType(String localTypeName)
      Description copied from interface: DataTypeVocabulary
      resolves a type name to Datatype object.
      Specified by:
      getType in interface DataTypeVocabulary
      Parameters:
      localTypeName - local part of the qualified name, like "string" or "integer". prefix part must be removed by the caller.
      Returns:
      a non-null valid datatype object.