Package org.jibx.ws.wsdl.model
Class OpenAttrBase
- java.lang.Object
-
- org.jibx.ws.wsdl.model.WsdlBase
-
- org.jibx.ws.wsdl.model.OpenAttrBase
-
public abstract class OpenAttrBase extends WsdlBase
Base class for all element structures in WSDL definition which allow arbitrary attributes from outside the WSDL namespace.- Author:
- Dennis M. Sosnoski
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList
m_attributes
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 Constructor Description OpenAttrBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExtraAttribute(java.lang.String name, java.lang.String uri, java.lang.String value)
Add extra attribute.void
clearExtraAttributes()
Clear extra attribute list.java.util.List
getExtraAttributes()
Get read-only list of extra attributes.java.lang.String
getNamespace()
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
-
-
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Get the WSDL target namespace.- Returns:
- namespace
-
preget
protected void preget(IMarshallingContext ictx) throws JiBXException
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
public final java.util.List 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
public final void addExtraAttribute(java.lang.String name, java.lang.String uri, java.lang.String value)
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
-
-