Package org.jibx.ws.wsdl.tools.custom
Class WsdlCustom
java.lang.Object
org.jibx.custom.classes.CustomBase
org.jibx.custom.classes.SharedNestingBase
org.jibx.ws.wsdl.tools.custom.NestingBase
org.jibx.ws.wsdl.tools.custom.WsdlCustom
- All Implemented Interfaces:
IApply
Global customization information for WSDL generation. This extends the binding customization model to include the
information used for service definitions.
- Author:
- Dennis M. Sosnoski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArrayList
List of Fault definitions.private final Map
Map from fully-qualified class name to Fault information.private FormatterCache
JavaDoc formatter instance cache.private IClassLocator
Class locator.private final ArrayList
List of services, in order added.private final Map
Map from fully-qualified class name to service information.private String
Customization value from unmarshalling.static final StringArray
Enumeration of allowed attribute namesFields inherited from class org.jibx.custom.classes.CustomBase
CAMEL_CASE_NAMES, DERIVE_BY_PACKAGE, DERIVE_FIXED, DERIVE_NONE, DOTTED_NAMES, HYPHENATED_NAMES, REQUIRE_ALL, REQUIRE_NONE, REQUIRE_OBJECTS, REQUIRE_PRIMITIVES, s_namespaceStyleEnum, s_nameStyleEnum, s_requireEnum, UNDERSCORED_NAMES, UPPER_CAMEL_CASE_NAMES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd new service customization.void
apply
(IClassLocator icl) Apply customizations to services to fill out members.private static WsdlCustom
factory
(IUnmarshallingContext ictx) Unmarshalling factory.Force fault customization information.getFaultCustomization
(String type) Get fault customization information.Get list of Faults.getFormatter
(SharedNestingBase custom) Get a JavaDoc formatter instance for a class.int
Get name style.Get service customization information.Get list of services.Get the namespace for WSDL definitions of services.private void
preSet
(IUnmarshallingContext uctx) Make sure all attributes are defined.void
setWsdlNamespace
(String uri) Set the namespace for WSDL definitions of services.Methods inherited from class org.jibx.ws.wsdl.tools.custom.NestingBase
getChild, getContainingClass, getServiceBase, isNillable, isSoapAction, isWrapped, registerName
Methods inherited from class org.jibx.custom.classes.SharedNestingBase
convertName, getFormatterClass, getNamespace, getNamespaceStyle, getSpecifiedNamespace, isObjectRequired, isPrimitiveRequired, isUseJavaDocs, setNamespace, setNamespaceStyle, setNameStyle
Methods inherited from class org.jibx.custom.classes.CustomBase
convertName, deriveItemName, deriveNamespace, getContainingObject, getGlobal, getParent, packageOfType, packageToNamespace, validateAttributes
-
Field Details
-
s_allowedAttributes
Enumeration of allowed attribute names -
m_wsdlNamespace
Customization value from unmarshalling. -
m_faultList
List of Fault definitions. -
m_faultMap
Map from fully-qualified class name to Fault information. -
m_serviceList
List of services, in order added. -
m_serviceMap
Map from fully-qualified class name to service information. -
m_locator
Class locator. -
m_formatCache
JavaDoc formatter instance cache.
-
-
Constructor Details
-
Method Details
-
preSet
Make sure all attributes are defined.- Parameters:
uctx
- unmarshalling context
-
getWsdlNamespace
Get the namespace for WSDL definitions of services.- Specified by:
getWsdlNamespace
in classNestingBase
- Returns:
- WSDL namespace (
null
if unspecified)
-
setWsdlNamespace
Set the namespace for WSDL definitions of services.- Parameters:
uri
- WSDL namespace (null
if to be derived from service class name)
-
getFaults
Get list of Faults.- Returns:
- fault list
-
getNameStyle
public int getNameStyle()Description copied from class:SharedNestingBase
Get name style.- Overrides:
getNameStyle
in classSharedNestingBase
- Returns:
- name style
-
getFaultCustomization
Get fault customization information. This method should only be used after theapply(IClassLocator)
method is called.- Parameters:
type
- fully qualified class name- Returns:
- fault customization (
null
if none)
-
forceFaultCustomization
Force fault customization information. This method should only be used after theapply(IClassLocator)
method is called. If the fault customization information has not previously been created, it will be created by this call.- Parameters:
type
- fully qualified exception class name- Returns:
- fault customization (
null
if none)
-
getServices
Get list of services.- Returns:
- service list
-
getServiceCustomization
Get service customization information. This method should only be used after theapply(IClassLocator)
method is called.- Parameters:
type
- fully qualified class name- Returns:
- service customization (
null
if none)
-
addServiceCustomization
Add new service customization. This creates the service customization, using defaults, and adds it to the internal structures. This method should only be used after first callinggetServiceCustomization(String)
and obtaining anull
result.- Parameters:
type
- fully qualified class name- Returns:
- service customization
-
factory
Unmarshalling factory. This gets the containing element and the name so that the standard constructor can be used.- Parameters:
ictx
-- Returns:
- created instance
-
apply
Apply customizations to services to fill out members.
-