|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.ws.wsdl.model.WsdlBase
public abstract class WsdlBase
Base class which provides validation hooks and support for extra namespaces. This base class for WSDL element representations is based on the schema data model code.
Field Summary | |
---|---|
private java.util.List |
m_documentation
Documentation for component (lazy create, null if unused). |
private java.lang.Object |
m_extension
Extension data for application use. |
private java.util.List |
m_namespaces
Namespace definitions associated with this element (lazy create, null if unused). |
static java.lang.String |
SOAP_NAMESPACE_URI
Fixed URI for SOAP namespace. |
static java.lang.String |
WSDL_NAMESPACE_URI
Fixed URI for WSDL namespace. |
Constructor Summary | |
---|---|
WsdlBase()
|
Method Summary | |
---|---|
void |
addNamespaceDeclaration(java.lang.String prefix,
java.lang.String uri)
Add namespace declaration. |
void |
clearNamespaceDeclarations()
Clear namespace declarations list. |
java.util.List |
getDocumentation()
Get documentation. |
java.lang.Object |
getExtension()
Get extension data. |
java.util.List |
getNamespaceDeclarations()
Get namespace declarations list. |
protected void |
preget(IMarshallingContext ictx)
Pre-get method to be called by data binding while writing element start tag. |
protected void |
preset(IUnmarshallingContext ictx)
Pre-set method to be called by data binding while parsing element start tag. |
void |
prevalidate(ValidationContext vctx)
Prevalidate component information. |
protected void |
readNamespaces(IUnmarshallingContext ictx)
Collect namespace declarations from element. |
void |
setDocumentation(java.util.List documentation)
Set documentation. |
void |
setExtension(java.lang.Object extension)
Set extension data. |
void |
validate(ValidationContext vctx)
Validate component information. |
protected void |
validateAttributes(IUnmarshallingContext ictx,
boolean other,
StringArray attrs)
Validate attributes of element. |
protected void |
writeNamespaces(IMarshallingContext ictx)
Write namespace declarations to element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WSDL_NAMESPACE_URI
public static final java.lang.String SOAP_NAMESPACE_URI
private java.lang.Object m_extension
private java.util.List m_namespaces
null
if unused).
private java.util.List m_documentation
null
if unused).
Constructor Detail |
---|
public WsdlBase()
Method Detail |
---|
public java.lang.Object getExtension()
public void setExtension(java.lang.Object extension)
extension
- public final java.util.List getNamespaceDeclarations()
public final void clearNamespaceDeclarations()
public final void addNamespaceDeclaration(java.lang.String prefix, java.lang.String uri)
prefix
- namespace prefixuri
- namespace URIpublic java.util.List getDocumentation()
null
if no documentation present)public void setDocumentation(java.util.List documentation)
documentation
- protected void preget(IMarshallingContext ictx) throws JiBXException
ictx
- marshalling context
JiBXException
- on marshalling errorprotected void preset(IUnmarshallingContext ictx) throws JiBXException
ictx
- unmarshalling context
JiBXException
- on errorprotected void validateAttributes(IUnmarshallingContext ictx, boolean other, StringArray attrs)
ictx
- unmarshalling contextother
- attributes from other namespaces allowed flagattrs
- attributes arraypreset(IUnmarshallingContext)
protected void readNamespaces(IUnmarshallingContext ictx)
ictx
- unmarshalling contextprotected void writeNamespaces(IMarshallingContext ictx) throws JiBXException
ictx
- marshalling context
JiBXException
- on error writingpublic void prevalidate(ValidationContext vctx)
vctx
- validation contextpublic void validate(ValidationContext vctx)
prevalidate(org.jibx.schema.validation.ValidationContext)
method will always be called for every
component in the schema definition before this method is called for any component. This empty base class
implementation should be overridden by each subclass that requires validation handling.
vctx
- validation context
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |