Class ProtoSerializer
- java.lang.Object
-
- no.entur.schema2proto.generateproto.ProtoSerializer
-
public class ProtoSerializer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDASHstatic java.lang.String[]PACKABLE_SCALAR_TYPESstatic java.util.Set<java.lang.String>PACKABLE_SCALAR_TYPES_SETstatic java.lang.StringUNDERSCOREstatic java.lang.StringVALIDATION_PROTO_IMPORTstatic java.lang.StringXSDOPTIONS_PROTO_IMPORT
-
Constructor Summary
Constructors Constructor Description ProtoSerializer(Schema2ProtoConfiguration configuration, TypeAndNameMapper marshaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserialize(java.util.Map<java.lang.String,com.squareup.wire.schema.ProtoFile> packageToProtoFileMap, java.util.List<LocalType> localTypes)
-
-
-
Field Detail
-
UNDERSCORE
public static final java.lang.String UNDERSCORE
- See Also:
- Constant Field Values
-
VALIDATION_PROTO_IMPORT
public static final java.lang.String VALIDATION_PROTO_IMPORT
- See Also:
- Constant Field Values
-
XSDOPTIONS_PROTO_IMPORT
public static final java.lang.String XSDOPTIONS_PROTO_IMPORT
- See Also:
- Constant Field Values
-
DASH
public static final java.lang.String DASH
- See Also:
- Constant Field Values
-
PACKABLE_SCALAR_TYPES
public static final java.lang.String[] PACKABLE_SCALAR_TYPES
-
PACKABLE_SCALAR_TYPES_SET
public static final java.util.Set<java.lang.String> PACKABLE_SCALAR_TYPES_SET
-
-
Constructor Detail
-
ProtoSerializer
public ProtoSerializer(Schema2ProtoConfiguration configuration, TypeAndNameMapper marshaller) throws InvalidConfigurationException
- Throws:
InvalidConfigurationException
-
-
Method Detail
-
serialize
public void serialize(java.util.Map<java.lang.String,com.squareup.wire.schema.ProtoFile> packageToProtoFileMap, java.util.List<LocalType> localTypes) throws InvalidXSDException, java.io.IOException- Throws:
InvalidXSDExceptionjava.io.IOException
-
-