Class SchemaParser

  • All Implemented Interfaces:
    org.xml.sax.ErrorHandler

    public class SchemaParser
    extends java.lang.Object
    implements org.xml.sax.ErrorHandler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(org.xml.sax.SAXParseException exception)  
      void fatalError​(org.xml.sax.SAXParseException exception)  
      java.lang.String findFieldType​(com.sun.xml.xsom.XSType type)  
      java.util.List<LocalType> getLocalTypes()  
      java.util.Map<java.lang.String,​com.squareup.wire.schema.ProtoFile> parse()  
      void warning​(org.xml.sax.SAXParseException exception)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • GENERATED_NAME_PLACEHOLDER

        public static final java.lang.String GENERATED_NAME_PLACEHOLDER
        See Also:
        Constant Field Values
    • Method Detail

      • parse

        public java.util.Map<java.lang.String,​com.squareup.wire.schema.ProtoFile> parse()
                                                                                       throws org.xml.sax.SAXException,
                                                                                              java.io.IOException
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
      • findFieldType

        public java.lang.String findFieldType​(com.sun.xml.xsom.XSType type)
      • error

        public void error​(org.xml.sax.SAXParseException exception)
        Specified by:
        error in interface org.xml.sax.ErrorHandler
      • fatalError

        public void fatalError​(org.xml.sax.SAXParseException exception)
        Specified by:
        fatalError in interface org.xml.sax.ErrorHandler
      • warning

        public void warning​(org.xml.sax.SAXParseException exception)
        Specified by:
        warning in interface org.xml.sax.ErrorHandler
      • getLocalTypes

        public java.util.List<LocalType> getLocalTypes()