Package org.jibx.ws.wsdl.model
Class OpenAttrBase
java.lang.Object
org.jibx.ws.wsdl.model.WsdlBase
org.jibx.ws.wsdl.model.OpenAttrBase
Base class for all element structures in WSDL definition which allow arbitrary attributes from outside the WSDL
namespace.
- Author:
- Dennis M. Sosnoski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayList
Extra attributes associated with element (lazy create,null
if unused).Fields inherited from class org.jibx.ws.wsdl.model.WsdlBase
SOAP_NAMESPACE_URI, WSDL_NAMESPACE_URI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addExtraAttribute
(String name, String uri, String value) Add extra attribute.final void
Clear extra attribute list.final List
Get read-only list of extra attributes.Get the WSDL target namespace.protected void
preget
(IMarshallingContext ictx) Pre-get method called during marshalling.protected void
validateAttributes
(IUnmarshallingContext ictx, StringArray attrs) Validate attributes of element from schema namespace.Methods inherited from class org.jibx.ws.wsdl.model.WsdlBase
addNamespaceDeclaration, clearNamespaceDeclarations, getDocumentation, getExtension, getNamespaceDeclarations, preset, prevalidate, readNamespaces, setDocumentation, setExtension, validate, validateAttributes, writeNamespaces
-
Field Details
-
m_attributes
Extra attributes associated with element (lazy create,null
if unused).
-
-
Constructor Details
-
OpenAttrBase
public OpenAttrBase()
-
-
Method Details
-
getNamespace
Get the WSDL target namespace.- Returns:
- namespace
-
preget
Pre-get method called during marshalling. This first calls the base class implementation to handle namespaces, then writes any extra attributes to the element start tag.- Overrides:
preget
in classWsdlBase
- Parameters:
ictx
- marshalling context- Throws:
JiBXException
- on error
-
getExtraAttributes
Get read-only list of extra attributes. Entries in this list are triplets, consisting of attribute name, namespace, and value.- Returns:
- extra attribute list
-
clearExtraAttributes
public final void clearExtraAttributes()Clear extra attribute list. -
addExtraAttribute
Add extra attribute.- Parameters:
name
- attribute nameuri
- attribute namespace URIvalue
- attribute value
-
validateAttributes
protected void validateAttributes(IUnmarshallingContext ictx, StringArray attrs) throws JiBXException Validate attributes of element from schema namespace. This allows any number of attributes from other namespaces on the element.- Parameters:
ictx
- unmarshalling contextattrs
- attributes array- Throws:
JiBXException
- on unmarshalling error
-