Class SchemaAnalyzerBase
- java.lang.Object
-
- com.sun.xml.rpc.processor.modeler.wsdl.SchemaAnalyzerBase
-
- Direct Known Subclasses:
SchemaAnalyzer101,SchemaAnalyzer103,SchemaAnalyzer11
public abstract class SchemaAnalyzerBase extends Object
- Author:
- JAX-RPC Development Team
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchemaAnalyzerBase.SchemaJavaMemberInfo
-
Field Summary
Fields Modifier and Type Field Description protected Map_builtinSchemaTypeToJavaTypeMapprotected Map_builtinSchemaTypeToJavaWrapperTypeMapprotected ProcessorEnvironment_envprotected boolean_jaxbEnumTypeprotected Map_nillableSimpleTypeComponentToLiteralTypeMapprotected Map_nillableSimpleTypeComponentToSOAPTypeMapprotected boolean_resolveIDREFprotected InternalSchema_schemaprotected Map_simpleTypeEncoderMapprotected boolean_strictComplianceprotected boolean_useDataHandlerOnlyprotected JavaSimpleTypeCreatorjavaTypesprotected static SOAPWSDLConstantssoap11WSDLConstants
-
Constructor Summary
Constructors Constructor Description SchemaAnalyzerBase(AbstractDocument document, ModelInfo modelInfo, Properties options, Set conflictingClassNames, JavaSimpleTypeCreator javaTypes)
-
Method Summary
-
-
-
Field Detail
-
_schema
protected InternalSchema _schema
-
_env
protected ProcessorEnvironment _env
-
_nillableSimpleTypeComponentToSOAPTypeMap
protected Map _nillableSimpleTypeComponentToSOAPTypeMap
-
_nillableSimpleTypeComponentToLiteralTypeMap
protected Map _nillableSimpleTypeComponentToLiteralTypeMap
-
_useDataHandlerOnly
protected boolean _useDataHandlerOnly
-
_resolveIDREF
protected boolean _resolveIDREF
-
_strictCompliance
protected boolean _strictCompliance
-
_jaxbEnumType
protected boolean _jaxbEnumType
-
javaTypes
protected JavaSimpleTypeCreator javaTypes
-
soap11WSDLConstants
protected static SOAPWSDLConstants soap11WSDLConstants
-
_builtinSchemaTypeToJavaTypeMap
protected Map _builtinSchemaTypeToJavaTypeMap
-
_builtinSchemaTypeToJavaWrapperTypeMap
protected Map _builtinSchemaTypeToJavaWrapperTypeMap
-
_simpleTypeEncoderMap
protected Map _simpleTypeEncoderMap
-
-
Constructor Detail
-
SchemaAnalyzerBase
public SchemaAnalyzerBase(AbstractDocument document, ModelInfo modelInfo, Properties options, Set conflictingClassNames, JavaSimpleTypeCreator javaTypes)
-
-
Method Detail
-
schemaTypeToLiteralType
public LiteralType schemaTypeToLiteralType(QName typeName)
-
schemaElementTypeToLiteralType
public LiteralType schemaElementTypeToLiteralType(QName elementName)
-
schemaTypeToSOAPType
protected SOAPType schemaTypeToSOAPType(TypeDefinitionComponent component, QName nameHint)
-
nillableSchemaTypeToSOAPType
protected SOAPType nillableSchemaTypeToSOAPType(TypeDefinitionComponent component)
-
simpleSchemaTypeToSOAPType
protected SOAPType simpleSchemaTypeToSOAPType(SimpleTypeDefinitionComponent component, QName nameHint)
-
createSOAPSimpleType
protected SOAPSimpleType createSOAPSimpleType(SimpleTypeDefinitionComponent component)
-
getJavaNameOfSOAPStructureType
protected String getJavaNameOfSOAPStructureType(SOAPStructureType structureType, TypeDefinitionComponent component, QName nameHint)
-
getJavaNameOfType
protected String getJavaNameOfType(TypeDefinitionComponent component, QName nameHint)
-
enumerationToSOAPType
protected SOAPType enumerationToSOAPType(SimpleTypeDefinitionComponent component, EnumerationFacet facet, QName nameHint)
-
listToLiteralType
protected LiteralType listToLiteralType(SimpleTypeDefinitionComponent component, QName nameHint)
-
listToSOAPType
protected SOAPType listToSOAPType(SimpleTypeDefinitionComponent component, QName nameHint)
map xsd:list to SOAP type
-
enumerationToLiteralType
protected LiteralType enumerationToLiteralType(SimpleTypeDefinitionComponent component, EnumerationFacet facet, QName nameHint, QName mappingNameHint)
-
complexSchemaTypeToSOAPType
protected SOAPType complexSchemaTypeToSOAPType(ComplexTypeDefinitionComponent component, QName nameHint)
-
getJavaMemberInfo
protected SchemaAnalyzerBase.SchemaJavaMemberInfo getJavaMemberInfo(TypeDefinitionComponent component, ElementDeclarationComponent element)
-
urTypeBasedComplexSchemaTypeToSOAPType
protected SOAPType urTypeBasedComplexSchemaTypeToSOAPType(ComplexTypeDefinitionComponent component, QName nameHint)
-
getSOAPMemberType
protected SOAPType getSOAPMemberType(ComplexTypeDefinitionComponent component, SOAPStructureType structureType, ElementDeclarationComponent element, QName nameHint, boolean occursZeroOrOne)
- Parameters:
element-nameHint-- Returns:
- The SOAPType of the element
-
getLiteralMemberType
protected LiteralType getLiteralMemberType(ComplexTypeDefinitionComponent component, LiteralType memberType, ElementDeclarationComponent element, LiteralStructuredType structureType)
-
soapStructureExtensionComplexSchemaTypeToSOAPType
protected SOAPType soapStructureExtensionComplexSchemaTypeToSOAPType(ComplexTypeDefinitionComponent component, SOAPStructureType parentType, QName nameHint)
-
soapArrayBasedComplexSchemaTypeToSOAPType
protected SOAPType soapArrayBasedComplexSchemaTypeToSOAPType(ComplexTypeDefinitionComponent component, QName nameHint)
-
processSOAPArrayType
protected SOAPType processSOAPArrayType(TypeDefinitionComponent component, SchemaElement element, String typeSpecifier)
-
schemaTypeToLiteralType
protected LiteralType schemaTypeToLiteralType(TypeDefinitionComponent component, QName nameHint)
-
schemaTypeToLiteralType
protected LiteralType schemaTypeToLiteralType(TypeDefinitionComponent component, QName nameHint, QName mappingNameHint)
- Parameters:
component- The type component in processnameHint- in case of anonymous type, hint for jax-rpc internal mapping namemappingNameHint- in case of anonymouse type, hint for J2EE mapping name for meta data
-
simpleSchemaTypeToLiteralType
protected LiteralType simpleSchemaTypeToLiteralType(SimpleTypeDefinitionComponent component, QName nameHint)
-
simpleSchemaTypeToLiteralType
protected LiteralType simpleSchemaTypeToLiteralType(SimpleTypeDefinitionComponent component, QName nameHint, QName mappingNameHint)
-
doWeHandleSimpleSchemaTypeDerivationByList
protected boolean doWeHandleSimpleSchemaTypeDerivationByList()
- Returns:
- true for versions >= 1.1, false for earlier ones
-
handleIDIDREF
protected LiteralType handleIDIDREF(SimpleTypeDefinitionComponent component)
- Parameters:
component-- Returns:
- A LiteralType based on the name of the component
-
anonymousSimpleSchemaTypeToLiteralType
protected LiteralType anonymousSimpleSchemaTypeToLiteralType(SimpleTypeDefinitionComponent component, QName nameHint, QName mappingNameHint)
- Parameters:
component-nameHint-mappingNameHint- Hint for J2EE mapping of anonymous simple type- Returns:
- the appropriate LiteralType for the schema in the component
-
complexSchemaTypeToLiteralType
protected LiteralType complexSchemaTypeToLiteralType(ComplexTypeDefinitionComponent component, QName nameHint, QName mappingNameHint)
-
doWeHandleComplexSchemaTypeExtensionByComplexType
protected boolean doWeHandleComplexSchemaTypeExtensionByComplexType()
- Returns:
- true for versions >= 1.1, false otherwise
-
doWeHandleComplexSchemaTypeExtensionBySimpleContent
protected boolean doWeHandleComplexSchemaTypeExtensionBySimpleContent()
- Returns:
- true for versions >= 1.1, false otherwise
-
getJavaNameOfElementType
protected String getJavaNameOfElementType(LiteralStructuredType structureType, TypeDefinitionComponent component, QName nameHint)
-
getJavaMemberOfElementInfo
protected SchemaAnalyzerBase.SchemaJavaMemberInfo getJavaMemberOfElementInfo(QName typeName, String memberName)
-
getSimpleTypeBaseName
protected QName getSimpleTypeBaseName(TypeDefinitionComponent typeDefinition)
-
urTypeBasedComplexSchemaTypeToLiteralType
protected LiteralType urTypeBasedComplexSchemaTypeToLiteralType(ComplexTypeDefinitionComponent component, QName nameHint, QName mappingNameHint)
-
doWeHandleAttributeTypeEnumeration
protected boolean doWeHandleAttributeTypeEnumeration(LiteralType attributeType)
bug fix: 4999385- Parameters:
attributeType-- Returns:
- false in versions < 1.1.2
-
getNillableLiteralSimpleType
protected LiteralSimpleType getNillableLiteralSimpleType(QName typeName, TypeDefinitionComponent typeDef)
-
doMakeMemberBoxedType
protected boolean doMakeMemberBoxedType()
- Returns:
- false in versions < 1.1, true otherwise
-
doWeHandleWildcard
protected boolean doWeHandleWildcard()
- Returns:
- false in versions < 1.1, true otherwise
-
isParticleOptional
protected boolean isParticleOptional(ParticleComponent memberParticle)
- Parameters:
memberParticle-- Returns:
- true if the particle can occur once or no times
-
isAttributeEnumeration
protected boolean isAttributeEnumeration(LiteralType attributeType)
- Parameters:
attributeType- LiteralType to check- Returns:
- true if type is
LiteralEnumerationType
-
isAttributeEnumeration
protected boolean isAttributeEnumeration(SOAPType attributeType)
-
isAttributeOptional
protected boolean isAttributeOptional(AttributeUseComponent attributeUse)
- Parameters:
attributeUse-- Returns:
- true if attribute is not required and there is no default
-
complexSchemaTypeSimpleContentExtensionToLiteralType
protected LiteralType complexSchemaTypeSimpleContentExtensionToLiteralType(ComplexTypeDefinitionComponent component, QName nameHint)
-
getLiteralFragmentTypeFor
protected LiteralFragmentType getLiteralFragmentTypeFor(TypeDefinitionComponent component, QName nameHint)
-
getLiteralSimpleStringTypeFor
protected LiteralType getLiteralSimpleStringTypeFor(TypeDefinitionComponent component, QName nameHint)
-
getCustomTypeFor
protected SOAPCustomType getCustomTypeFor(TypeDefinitionComponent component)
-
getIDREFLiteralType
protected LiteralType getIDREFLiteralType(SimpleTypeDefinitionComponent component, QName nameHint)
-
mustGetCustomTypeFor
protected SOAPCustomType mustGetCustomTypeFor(TypeDefinitionComponent component)
-
isInvalidEnumerationLabel
protected boolean isInvalidEnumerationLabel(String s)
-
updateModifiers
protected void updateModifiers(JavaStructureType javaStructureType)
-
getElementQNameHint
protected QName getElementQNameHint(ElementDeclarationComponent component, QName nameHint)
-
getElementMappingNameHint
protected QName getElementMappingNameHint(ElementDeclarationComponent component, QName mappingNameHint)
-
getJ2EEAnonymousArrayTypeName
protected String getJ2EEAnonymousArrayTypeName(ParticleComponent memberParticle, ElementDeclarationComponent element, QName mappingNameHint)
-
getAttributeQNameHint
protected QName getAttributeQNameHint(AttributeDeclarationComponent component, QName nameHint)
-
getUniqueLiteralArrayTypeQNameFor
protected QName getUniqueLiteralArrayTypeQNameFor(QName subTypeName, QName nameHint)
-
getUniqueNCNameFor
protected String getUniqueNCNameFor(TypeDefinitionComponent component)
-
getUniqueQNameFor
protected QName getUniqueQNameFor(TypeDefinitionComponent component, QName nameHint)
-
getUniqueID
protected int getUniqueID()
-
getUniqueMemberName
protected String getUniqueMemberName(JavaStructureType javaStructureType, String prefix)
-
resolveNamingConflictsFor
protected void resolveNamingConflictsFor(JavaType javaType)
-
resolveEnumerationNamingConflictsFor
protected void resolveEnumerationNamingConflictsFor(JavaEnumerationType javaEnumType)
- Parameters:
javaEnumType-
-
resolveNamingConflictsFor
protected void resolveNamingConflictsFor(JavaType javaType, String suffix)
-
setReferenceable
protected void setReferenceable(SOAPSimpleType simpleType)
-
checkStrictCompliance
protected boolean checkStrictCompliance(QName typeName)
-
initializeMaps
protected abstract void initializeMaps()
-
-