Class SchemaParser
- java.lang.Object
-
- no.entur.schema2proto.generateproto.SchemaParser
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public class SchemaParser extends java.lang.Object implements org.xml.sax.ErrorHandler
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGENERATED_NAME_PLACEHOLDERstatic java.lang.StringTYPE_SUFFIX
-
Constructor Summary
Constructors Constructor Description SchemaParser(Schema2ProtoConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(org.xml.sax.SAXParseException exception)voidfatalError(org.xml.sax.SAXParseException exception)java.lang.StringfindFieldType(com.sun.xml.xsom.XSType type)java.util.List<LocalType>getLocalTypes()java.util.Map<java.lang.String,com.squareup.wire.schema.ProtoFile>parse()voidwarning(org.xml.sax.SAXParseException exception)
-
-
-
Field Detail
-
TYPE_SUFFIX
public static final java.lang.String TYPE_SUFFIX
- See Also:
- Constant Field Values
-
GENERATED_NAME_PLACEHOLDER
public static final java.lang.String GENERATED_NAME_PLACEHOLDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SchemaParser
public SchemaParser(Schema2ProtoConfiguration configuration)
-
-
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.SAXExceptionjava.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:
errorin interfaceorg.xml.sax.ErrorHandler
-
fatalError
public void fatalError(org.xml.sax.SAXParseException exception)
- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler
-
warning
public void warning(org.xml.sax.SAXParseException exception)
- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler
-
getLocalTypes
public java.util.List<LocalType> getLocalTypes()
-
-