Class GeneratorBase
java.lang.Object
com.sun.xml.rpc.processor.generator.GeneratorBase
- All Implemented Interfaces:
InternalEncodingConstants,GeneratorConstants,LiteralTypeVisitor,ModelVisitor,SOAPTypeVisitor,ModelerConstants,ProcessorAction,GeneratorConstants
- Direct Known Subclasses:
CustomClassGenerator,CustomExceptionGenerator,EnumerationEncoderGenerator,EnumerationGenerator,FaultExceptionBuilderGenerator,HolderGenerator,InterfaceSerializerGenerator,LiteralObjectSerializerGenerator,SerializerRegistryGenerator,ServletConfigGenerator,SOAPFaultSerializerGenerator,SOAPObjectBuilderGenerator,SOAPObjectSerializerGenerator,StubTieGeneratorBase
public abstract class GeneratorBase
extends Object
implements GeneratorConstants, ProcessorAction, ModelVisitor, SOAPTypeVisitor, LiteralTypeVisitor
- Author:
- JAX-RPC Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SOAPVersionprotected Fileprotected booleanprotected booleanprotected ProcessorEnvironmentprotected booleanprotected Stringprotected Modelprotected booleanprotected Fileprotected IndentingWriterprotected booleanprotected Serviceprotected Stringprotected Fileprotected Stringprotected SerializerWriterFactoryFields inherited from interface com.sun.xml.rpc.processor.generator.GeneratorConstants
ARRAY, ARRAY_LITERAL_SERIALIZER_SUFFIX, ARRAY_SOAP_SERIALIZER_SUFFIX, ATTACHMENT_SERIALIZER_NAME, BASE_SERIALIZER_NAME, COLLECTION_INTERFACE_SERIALIZER_NAME, COLLECTION_SERIALIZER_NAME, DATA_HANDLER_ENCODER_NAME, DESERIALIZER_SUFFIX, DONT_ENCODE_TYPE_STR, DONT_SERIALIZE_AS_REF_STR, DOT_STR, DYNAMIC_SERIALIZER_NAME, ENCODE_TYPE_STR, FAULT_BUILDER_SUFFIX, FAULT_SOAPSERIALIZER_SUFFIX, FILE_TYPE_ENUMERATION, FILE_TYPE_ENUMERATION_ENCODER, FILE_TYPE_EXCEPTION, FILE_TYPE_FAULT_EXCEPTION_BUILDER, FILE_TYPE_HOLDER, FILE_TYPE_INTERFACE_SERIALIZER, FILE_TYPE_LITERAL_OBJECT_SERIALIZER, FILE_TYPE_SERIALIZER, FILE_TYPE_SERIALIZER_REGISTRY, FILE_TYPE_SERVICE_IMPL, FILE_TYPE_SERVLET_CONFIG, FILE_TYPE_SOAP_FAULT_SERIALIZER, FILE_TYPE_SOAP_OBJECT_BUILDER, FILE_TYPE_SOAP_OBJECT_SERIALIZER, FILE_TYPE_STUB, FILE_TYPE_TIE, FILE_TYPE_VALUETYPE, GET, HOLDER_SUFFIX, ID_REMOTE_EXCEPTION, ID_STUB_BASE, ID_TIE_BASE, IMAGE_ENCODER_NAME, IMPL_SUFFIX, IS, JAVA_PACKAGE_PREFIX, JAVA_SRC_SUFFIX, JAVAX_PACKAGE_PREFIX, JAX_RPC_MAP_ENTRY_SERIALIZER_NAME, LITERAL_FRAGMENT_SERIALIZER_NAME, LITERAL_SERIALIZER_SUFFIX, LITERAL_SIMPLE_TYPE_SERIALIZER_NAME, MAP_INTERFACE_SERIALIZER_NAME, MAP_SERIALIZER_NAME, MEMBER_PREFIX, MIME_MULTIPART_ENCODER_NAME, NOT_NULLABLE_STR, NOT_REFERENCEABLE_STR, NS_PREFIX, NULLABLE_STR, OPCODE_SUFFIX, QNAME_SUFFIX, REFERENCEABLE_SERIALIZER_NAME, REFERENCEABLE_STR, RESPONSE, SERIALIZE_AS_REF_STR, SERIALIZER_REGISTRY_SUFFIX, SERIALIZER_SUFFIX, SERVANT_SUFFIX, SERVICE_IMPL_SUFFIX, SERVICE_SUFFIX, SET, SIMPLE_MULTI_TYPE_SERIALIZER_NAME, SIMPLE_TYPE_SERIALIZER_NAME, SKELETON_SUFFIX, SOAP_BUILDER_SUFFIX, SOAP_INTERFACE_SERIALIZER_SUFFIX, SOAP_SERIALIZER_SUFFIX, SOAP_VERSION_11, SOAP_VERSION_12, SOAP12CONSTANTS_NS_SOAP_ENCODING, SOAPCONSTANTS_NS_SOAP_ENCODING, SOURCE_ENCODER_NAME, STUB_SUFFIX, TIE_SUFFIX, TYPE_QNAME_SUFFIX, UNDERSCORE, XSD_ANY_URI_ENCODER_NAME, XSD_BASE64_BINARY_ENCODER_NAME, XSD_BOOLEAN_ENCODER_NAME, XSD_BOXED_BASE64_BINARY_ENCODER_NAME, XSD_BOXED_HEX_BINARY_ENCODER_NAME, XSD_BYTE_ENCODER_NAME, XSD_DATE_ENCODER_NAME, XSD_DATE_TIME_CALENDAR_ENCODER_NAME, XSD_DATE_TIME_DATE_ENCODER_NAME, XSD_DECIMAL_ENCODER_NAME, XSD_DOUBLE_ENCODER_NAME, XSD_FLOAT_ENCODER_NAME, XSD_HEX_BINARY_ENCODER_NAME, XSD_INT_ENCODER_NAME, XSD_INTEGER_ENCODER_NAME, XSD_LIST_ENCODER_NAME, XSD_LIST_TYPE_ENCODER_NAME, XSD_LONG_ENCODER_NAME, XSD_NEGATIVE_INTEGER_ENCODER_NAME, XSD_NON_NEGATIVE_INTEGER_ENCODER_NAME, XSD_NON_POSITIVE_INTEGER_ENCODER_NAME, XSD_POSITIVE_INTEGER_ENCODER_NAME, XSD_QNAME_ENCODER_NAME, XSD_SHORT_ENCODER_NAME, XSD_STRING_ENCODER_NAME, XSD_TIME_ENCODER_NAME, XSD_UNSIGNED_BYTE_ENCODER_NAME, XSD_UNSIGNED_INT_ENCODER_NAME, XSD_UNSIGNED_LONG_ENCODER_NAME, XSD_UNSIGNED_SHORT_ENCODER_NAMEFields inherited from interface com.sun.xml.rpc.spi.tools.GeneratorConstants
FILE_TYPE_REMOTE_INTERFACE, FILE_TYPE_SERVICE, FILE_TYPE_WSDLFields inherited from interface com.sun.xml.rpc.encoding.InternalEncodingConstants
ARRAY_ELEMENT_NAME, COLLECTION_ELEMENT_NAME, JAX_RPC_MAP_ENTRY_KEY_NAME, JAX_RPC_MAP_ENTRY_VALUE_NAME, JAXRPC_URI, QNAME_TYPE_ARRAY_LIST, QNAME_TYPE_COLLECTION, QNAME_TYPE_DATA_HANDLER, QNAME_TYPE_HASH_MAP, QNAME_TYPE_HASH_SET, QNAME_TYPE_HASHTABLE, QNAME_TYPE_IMAGE, QNAME_TYPE_JAX_RPC_MAP_ENTRY, QNAME_TYPE_LINKED_LIST, QNAME_TYPE_LIST, QNAME_TYPE_MAP, QNAME_TYPE_MIME_MULTIPART, QNAME_TYPE_PROPERTIES, QNAME_TYPE_SET, QNAME_TYPE_SOURCE, QNAME_TYPE_STACK, QNAME_TYPE_TREE_MAP, QNAME_TYPE_TREE_SET, QNAME_TYPE_VECTORFields inherited from interface com.sun.xml.rpc.processor.modeler.ModelerConstants
ARRAY_LIST_CLASSNAME, ARRAY_STR, BIGDECIMAL_CLASSNAME, BIGINTEGER_CLASSNAME, BOOLEAN_CLASSNAME, BOXED_BOOLEAN_CLASSNAME, BOXED_BYTE_ARRAY_CLASSNAME, BOXED_BYTE_CLASSNAME, BOXED_CHAR_CLASSNAME, BOXED_DOUBLE_CLASSNAME, BOXED_FLOAT_CLASSNAME, BOXED_INTEGER_CLASSNAME, BOXED_LONG_CLASSNAME, BOXED_SHORT_CLASSNAME, BRACKETS, BYTE_ARRAY_CLASSNAME, BYTE_CLASSNAME, CALENDAR_CLASSNAME, CHAR_CLASSNAME, CLASS_CLASSNAME, COLLECTION_CLASSNAME, DATA_HANDLER_CLASSNAME, DATE_CLASSNAME, DOUBLE_CLASSNAME, FALSE_STR, FLOAT_CLASSNAME, HASH_MAP_CLASSNAME, HASH_SET_CLASSNAME, HASHTABLE_CLASSNAME, IMAGE_CLASSNAME, INT_CLASSNAME, IOEXCEPTION_CLASSNAME, JAX_RPC_MAP_ENTRY_CLASSNAME, LINKED_LIST_CLASSNAME, LIST_CLASSNAME, LONG_CLASSNAME, MAP_CLASSNAME, MIME_MULTIPART_CLASSNAME, NULL_STR, OBJECT_CLASSNAME, PROPERTIES_CLASSNAME, QNAME_CLASSNAME, SET_CLASSNAME, SHORT_CLASSNAME, SOAPELEMENT_CLASSNAME, SOURCE_CLASSNAME, STACK_CLASSNAME, STRING_ARRAY_CLASSNAME, STRING_CLASSNAME, TREE_MAP_CLASSNAME, TREE_SET_CLASSNAME, URI_CLASSNAME, VECTOR_CLASSNAME, VOID_CLASSNAME, ZERO_STR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGeneratorBase(Model model, Configuration config, Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected static voidfail(Localizable arg) protected static voidprotected static voidprotected static voidprotected static voidabstract GeneratorBasegetGenerator(Model model, Configuration config, Properties properties) abstract GeneratorBasegetGenerator(Model model, Configuration config, Properties properties, SOAPVersion ver) protected voidprotected voidprotected voidvoidperform(Model model, Configuration config, Properties properties) protected voidpostVisitBlock(Block block) protected voidpostVisitFault(Fault fault) protected voidprotected voidprotected voidprotected voidvoidprotected voidprotected voidprotected voidprotected voidpostVisitModel(Model model) protected voidpostVisitOperation(Operation operation) protected voidpostVisitParameter(Parameter param) protected voidpostVisitPort(Port port) protected voidpostVisitRequest(Request request) protected voidpostVisitResponse(Response response) protected voidprotected voidprotected voidprotected voidpostVisitService(Service service) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidpreVisitBlock(Block block) protected voidpreVisitFault(Fault fault) protected voidprotected voidprotected voidprotected voidvoidprotected voidprotected voidprotected voidprotected voidpreVisitModel(Model model) protected voidpreVisitOperation(Operation operation) protected voidpreVisitParameter(Parameter param) protected voidpreVisitPort(Port port) protected voidpreVisitRequest(Request request) protected voidpreVisitResponse(Response response) protected voidprotected voidprotected voidprotected voidpreVisitService(Service service) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidrequestBodyBlock(Block block) protected voidrequestHeaderBlock(Block block) protected voidresponseAttachmentBlock(Block block) protected voidresponseBodyBlock(Block block) protected voidresponseHeaderBlock(Block block) voidvoidvoidvisit(LiteralAllType type) voidvisit(LiteralArrayType type) voidvisit(LiteralArrayWrapperType type) voidvisit(LiteralAttachmentType type) voidvisit(LiteralEnumerationType type) voidvisit(LiteralFragmentType type) voidvisit(LiteralIDType type) voidvisit(LiteralListType type) voidvisit(LiteralSequenceType type) voidvisit(LiteralSimpleType type) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvisit(SOAPAnyType type) voidvisit(SOAPArrayType type) voidvisit(SOAPCustomType type) voidvisit(SOAPEnumerationType type) voidvisit(SOAPListType type) voidvoidvisit(SOAPSimpleType type) voidvisit(SOAPStructureType type) voidprotected voidvisitBlock(Block block) protected voidvisitFault(Fault fault) protected voidprotected voidprotected voidprotected voidvoidprotected voidprotected voidbug fix: 4900251protected voidprotected voidprotected voidvisitModel(Model model) protected voidvisitOperation(Operation operation) protected voidvisitParameter(Parameter param) protected voidprotected voidvisitRequest(Request request) protected voidvisitResponse(Response response) protected voidprotected voidprotected voidprotected voidvisitService(Service service) protected voidvisitSOAPAnyType(SOAPAnyType type) protected voidprotected voidprotected voidprotected voidbug fix: 4900251protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidvoidwritePackage(IndentingWriter p, String classNameStr) static voidwritePackage(IndentingWriter p, String classNameStr, String version, String sourceVersion) static voidwritePackageOnly(IndentingWriter p, String classNameStr) protected voidstatic voidwriteWarning(IndentingWriter p, String version, String targetVersion)
-
Field Details
-
sourceDir
-
destDir
-
nonclassDestDir
-
env
-
model
-
service
-
out
-
encodeTypes
protected boolean encodeTypes -
multiRefEncoding
protected boolean multiRefEncoding -
serializeInterfaces
protected boolean serializeInterfaces -
writerFactory
-
curSOAPVersion
-
JAXRPCVersion
-
targetVersion
-
generateSerializableIf
protected boolean generateSerializableIf -
donotOverride
protected boolean donotOverride -
servicePackage
-
-
Constructor Details
-
GeneratorBase
public GeneratorBase() -
GeneratorBase
-
-
Method Details
-
perform
- Specified by:
performin interfaceProcessorAction
-
getGenerator
public abstract GeneratorBase getGenerator(Model model, Configuration config, Properties properties) -
getGenerator
public abstract GeneratorBase getGenerator(Model model, Configuration config, Properties properties, SOAPVersion ver) -
doGeneration
protected void doGeneration() -
visit
- Specified by:
visitin interfaceModelVisitor- Throws:
Exception
-
preVisitModel
- Throws:
Exception
-
visitModel
- Throws:
Exception
-
postVisitModel
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceModelVisitor- Throws:
Exception
-
preVisitService
- Throws:
Exception
-
visitService
- Throws:
Exception
-
postVisitService
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceModelVisitor- Throws:
Exception
-
preVisitPort
- Throws:
Exception
-
visitPort
- Throws:
Exception
-
postVisitPort
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceModelVisitor- Throws:
Exception
-
preVisitOperation
- Throws:
Exception
-
visitOperation
- Throws:
Exception
-
postVisitOperation
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceModelVisitor- Throws:
Exception
-
preVisitParameter
- Throws:
Exception
-
visitParameter
- Throws:
Exception
-
postVisitParameter
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceModelVisitor- Throws:
Exception
-
preVisitBlock
- Throws:
Exception
-
visitBlock
- Throws:
Exception
-
postVisitBlock
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceModelVisitor- Throws:
Exception
-
preVisitResponse
- Throws:
Exception
-
visitResponse
- Throws:
Exception
-
responseBodyBlock
- Throws:
Exception
-
responseHeaderBlock
- Throws:
Exception
-
responseAttachmentBlock
- Throws:
Exception
-
postVisitResponse
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceModelVisitor- Throws:
Exception
-
preVisitRequest
- Throws:
Exception
-
visitRequest
- Throws:
Exception
-
requestBodyBlock
- Throws:
Exception
-
requestHeaderBlock
- Throws:
Exception
-
postVisitRequest
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceModelVisitor- Throws:
Exception
-
preVisitFault
- Throws:
Exception
-
visitFault
- Throws:
Exception
-
postVisitFault
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceSOAPTypeVisitor- Throws:
Exception
-
preVisitSOAPCustomType
- Throws:
Exception
-
visitSOAPCustomType
- Throws:
Exception
-
postVisitSOAPCustomType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceSOAPTypeVisitor- Throws:
Exception
-
preVisitSOAPSimpleType
- Throws:
Exception
-
visitSOAPSimpleType
- Throws:
Exception
-
postVisitSOAPSimpleType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceSOAPTypeVisitor- Throws:
Exception
-
preVisitSOAPAnyType
- Throws:
Exception
-
visitSOAPAnyType
- Throws:
Exception
-
postVisitSOAPAnyType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceSOAPTypeVisitor- Throws:
Exception
-
preVisitSOAPEnumerationType
- Throws:
Exception
-
visitSOAPEnumerationType
- Throws:
Exception
-
postVisitSOAPEnumerationType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceSOAPTypeVisitor- Throws:
Exception
-
visit
- Specified by:
visitin interfaceSOAPTypeVisitor- Throws:
Exception
-
preVisitSOAPArrayType
- Throws:
Exception
-
visitSOAPArrayType
- Throws:
Exception
-
postVisitSOAPArrayType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceSOAPTypeVisitor- Throws:
Exception
-
preVisitSOAPOrderedStructureType
- Throws:
Exception
-
visitSOAPOrderedStructureType
- Throws:
Exception
-
postVisitSOAPOrderedStructureType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceSOAPTypeVisitor- Throws:
Exception
-
preVisitSOAPUnorderedStructureType
- Throws:
Exception
-
visitSOAPUnorderedStructureType
- Throws:
Exception
-
postVisitSOAPUnorderedStructureType
protected void postVisitSOAPUnorderedStructureType(SOAPUnorderedStructureType type) throws Exception - Throws:
Exception
-
visit
- Specified by:
visitin interfaceSOAPTypeVisitor- Throws:
Exception
-
preVisitRPCRequestOrderedStructureType
protected void preVisitRPCRequestOrderedStructureType(RPCRequestOrderedStructureType type) throws Exception - Throws:
Exception
-
visitRPCRequestOrderedStructureType
protected void visitRPCRequestOrderedStructureType(RPCRequestOrderedStructureType type) throws Exception - Throws:
Exception
-
postVisitRPCRequestOrderedStructureType
protected void postVisitRPCRequestOrderedStructureType(RPCRequestOrderedStructureType type) throws Exception - Throws:
Exception
-
visit
- Specified by:
visitin interfaceSOAPTypeVisitor- Throws:
Exception
-
preVisitRPCRequestUnorderedStructureType
protected void preVisitRPCRequestUnorderedStructureType(RPCRequestUnorderedStructureType type) throws Exception - Throws:
Exception
-
visitRPCRequestUnorderedStructureType
protected void visitRPCRequestUnorderedStructureType(RPCRequestUnorderedStructureType type) throws Exception - Throws:
Exception
-
postVisitRPCRequestUnorderedStructureType
protected void postVisitRPCRequestUnorderedStructureType(RPCRequestUnorderedStructureType type) throws Exception - Throws:
Exception
-
visit
- Specified by:
visitin interfaceSOAPTypeVisitor- Throws:
Exception
-
preVisitRPCResponseStructureType
- Throws:
Exception
-
visitRPCResponseStructureType
- Throws:
Exception
-
postVisitRPCResponseStructureType
- Throws:
Exception
-
visit
- Throws:
Exception
-
preVisitSOAPStructureType
- Throws:
Exception
-
visitSOAPStructureType
- Throws:
Exception
-
postVisitSOAPStructureType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceLiteralTypeVisitor- Throws:
Exception
-
visitLiteralListType
bug fix: 4900251- Parameters:
type-- Throws:
Exception
-
visitSOAPListType
bug fix: 4900251- Parameters:
type-- Throws:
Exception
-
visit
- Specified by:
visitin interfaceLiteralTypeVisitor- Throws:
Exception
-
visit
- Specified by:
visitin interfaceLiteralTypeVisitor- Throws:
Exception
-
preVisitLiteralSimpleType
- Throws:
Exception
-
visitLiteralSimpleType
- Throws:
Exception
-
postVisitLiteralSimpleType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceLiteralTypeVisitor- Throws:
Exception
-
preVisitLiteralSequenceType
- Throws:
Exception
-
visitLiteralSequenceType
- Throws:
Exception
-
postVisitLiteralSequenceType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceLiteralTypeVisitor- Throws:
Exception
-
preVisitLiteralAllType
- Throws:
Exception
-
visitLiteralAllType
- Throws:
Exception
-
postVisitLiteralAllType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceLiteralTypeVisitor- Throws:
Exception
-
preVisitLiteralArrayType
- Throws:
Exception
-
visitLiteralArrayType
- Throws:
Exception
-
postVisitLiteralArrayType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceLiteralTypeVisitor- Throws:
Exception
-
preVisitLiteralArrayWrapperType
- Throws:
Exception
-
visitLiteralArrayWrapperType
- Throws:
Exception
-
postVisitLiteralArrayWrapperType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceLiteralTypeVisitor- Throws:
Exception
-
preVisitLiteralFragmentType
- Throws:
Exception
-
visitLiteralFragmentType
- Throws:
Exception
-
postVisitLiteralFragmentType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceLiteralTypeVisitor- Throws:
Exception
-
preVisitLiteralEnumerationType
- Throws:
Exception
-
visitLiteralEnumerationType
- Throws:
Exception
-
postVisitLiteralEnumerationType
- Throws:
Exception
-
visit
- Specified by:
visitin interfaceLiteralTypeVisitor- Throws:
Exception
-
preVisitLiteralAttachmentType
- Throws:
Exception
-
visitLiteralAttachmentType
- Throws:
Exception
-
postVisitLiteralAttachmentType
- Throws:
Exception
-
writeWarning
- Throws:
IOException
-
writeWarning
public static void writeWarning(IndentingWriter p, String version, String targetVersion) throws IOException - Throws:
IOException
-
writePackage
- Throws:
IOException
-
writePackage
public static void writePackage(IndentingWriter p, String classNameStr, String version, String sourceVersion) throws IOException - Throws:
IOException
-
writePackageOnly
- Throws:
IOException
-
log
-
warn
-
warn
-
warn
-
info
-
info
-
fail
-
fail
-
fail
-
fail
-
fail
-