Package org.jibx.ws.wsdl.tools.custom
Class NestingBase
- java.lang.Object
-
- org.jibx.custom.classes.CustomBase
-
- org.jibx.custom.classes.SharedNestingBase
-
- org.jibx.ws.wsdl.tools.custom.NestingBase
-
- Direct Known Subclasses:
OperationCustom
,ServiceCustom
,WsdlCustom
public abstract class NestingBase extends SharedNestingBase
Base class for nested WSDL customizations that can contain other customizations.- Author:
- Dennis M. Sosnoski
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map
m_namedChildMap
private java.lang.String
m_serviceBase
private java.lang.Boolean
m_setActions
private java.lang.Boolean
m_useNillable
private java.lang.Boolean
m_wrapped
static StringArray
s_allowedAttributes
Enumeration of allowed attribute names-
Fields 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 Constructor Description NestingBase(SharedNestingBase parent)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CustomBase
getChild(java.lang.String name)
Get child by name.protected static SharedNestingBase
getContainingClass(IUnmarshallingContext ictx)
Gets the parent element link from the unmarshalling stack.java.lang.String
getServiceBase()
Get the service base address.abstract java.lang.String
getWsdlNamespace()
Get WSDL definitions namespace.boolean
isNillable()
Check if xsi:nillable should be used for optional values (rather than minOccurs='0').boolean
isSoapAction()
Check if soapAction should be set.boolean
isWrapped()
Check wrapped flag.java.lang.String
registerName(java.lang.String base, CustomBase child)
Register a child name.-
Methods inherited from class org.jibx.custom.classes.SharedNestingBase
convertName, getFormatterClass, getNamespace, getNamespaceStyle, getNameStyle, 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 Detail
-
s_allowedAttributes
public static final StringArray s_allowedAttributes
Enumeration of allowed attribute names
-
m_wrapped
private java.lang.Boolean m_wrapped
-
m_setActions
private java.lang.Boolean m_setActions
-
m_useNillable
private java.lang.Boolean m_useNillable
-
m_serviceBase
private java.lang.String m_serviceBase
-
m_namedChildMap
private final java.util.Map m_namedChildMap
-
-
Constructor Detail
-
NestingBase
public NestingBase(SharedNestingBase parent)
Constructor.- Parameters:
parent
-
-
-
Method Detail
-
isWrapped
public boolean isWrapped()
Check wrapped flag.- Returns:
- wrapped flag
-
isSoapAction
public boolean isSoapAction()
Check if soapAction should be set.- Returns:
- soapAction flag
-
isNillable
public boolean isNillable()
Check if xsi:nillable should be used for optional values (rather than minOccurs='0').- Returns:
- xsi:nillable flag
-
getServiceBase
public java.lang.String getServiceBase()
Get the service base address.- Returns:
- base address
-
getChild
public CustomBase getChild(java.lang.String name)
Get child by name.- Parameters:
name
-- Returns:
- named child,
null
if name not registered
-
registerName
public java.lang.String registerName(java.lang.String base, CustomBase child)
Register a child name. If the base name supplied has already been used by a different child, the name will be modified by adding a numeric suffix to make it unique. Once a name has been registered for a child, calling this method again with that name is guaranteed to just return that same name. Depending on the nesting level, the type of child may take different forms. This doesn't care what the names represent, it just makes sure they're unique.- Parameters:
base
- proposed namechild
- named child- Returns:
- allowed name
-
getWsdlNamespace
public abstract java.lang.String getWsdlNamespace()
Get WSDL definitions namespace.- Returns:
- WSDL namespace
-
getContainingClass
protected static SharedNestingBase getContainingClass(IUnmarshallingContext ictx)
Gets the parent element link from the unmarshalling stack. This method is for use by factories during unmarshalling.- Parameters:
ictx
- unmarshalling context- Returns:
- containing class
-
-