org.apache.woden.internal.wsdl20
Class InterfaceFaultImpl
java.lang.Object
org.apache.woden.internal.wsdl20.WSDLElementImpl
org.apache.woden.internal.wsdl20.DocumentableImpl
org.apache.woden.internal.wsdl20.WSDLComponentImpl
org.apache.woden.internal.wsdl20.NestedImpl
org.apache.woden.internal.wsdl20.InterfaceFaultImpl
- All Implemented Interfaces:
- AttributeExtensible, ElementExtensible, PropertyExtensible, InterfaceFault, NestedComponent, WSDLComponent, DocumentableElement, InterfaceFaultElement, NestedElement, WSDLElement
public class InterfaceFaultImpl
- extends NestedImpl
- implements InterfaceFault, InterfaceFaultElement
This class represents the InterfaceFault component from the WSDL 2.0 Component
Model and the <fault> child element of the <interface> element.
- Author:
- jkaputin@apache.org
Method Summary |
QNameTokenUnion |
getElement()
Return the union of the xs:token and xs:QName of the global schema element declaration referred to by this
InterfaceFaultElement. |
ElementDeclaration |
getElementDeclaration()
Returns the ElementDeclaration representing the {element declaration} property
of this InterfaceFault. |
FragmentIdentifier |
getFragmentIdentifier()
Returns the fragment identifier for this WSDL 2.0 component. |
java.lang.String |
getMessageContentModel()
Returns a String representing the {message content model} property of this
InterfaceFault. |
QName |
getName()
Returns the qualified name representing the {name} property of this InterfaceFault. |
org.apache.ws.commons.schema.XmlSchemaElement |
getXmlSchemaElement()
Return the XmlSchemaElement representing the global schema element declaration
referred to by this InterfaceFaultElement. |
void |
setElement(QNameTokenUnion qnameTokenUnion)
Specify the union of the xs:token and xs:QName of the global schema element declaration referred to by this
InterfaceFaultElement. |
void |
setName(NCName name)
Set the name of this InterfaceFaultElement to the specified NCName. |
InterfaceFaultElement |
toElement()
Returns a WSDLElement that represents the element information item from the WSDL 2.0
infoset that maps to this WSDLComponent. |
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLElementImpl |
addExtensionElement, addNamespace, getDeclaredNamespaces, getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, getExtensionElements, getExtensionElementsOfType, getInScopeNamespaces, getNamespacePrefix, getNamespaceURI, hasExtensionAttributesForNamespace, hasExtensionElementsForNamespace, removeExtensionElement, removeNamespace, setExtensionAttribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InterfaceFaultImpl
public InterfaceFaultImpl()
getName
public QName getName()
- Description copied from interface:
InterfaceFault
- Returns the qualified name representing the {name} property of this InterfaceFault.
- Specified by:
getName
in interface InterfaceFault
- Specified by:
getName
in interface InterfaceFaultElement
- Returns:
- QName representing the name of this InterfaceFault
getMessageContentModel
public java.lang.String getMessageContentModel()
- Description copied from interface:
InterfaceFault
- Returns a String representing the {message content model} property of this
InterfaceFault. This specifies a token indicating the type of message content.
'#any' means any single element, '#none' means no message content,
'#other' means non-XML extension type system and '#element' means
XML Schema global element definition.
TODO CR138 adds this property, so check Spec when its updated to ensure javadoc is accurate
- Specified by:
getMessageContentModel
in interface InterfaceFault
- Returns:
- String representing the type of message content
getElementDeclaration
public ElementDeclaration getElementDeclaration()
- Description copied from interface:
InterfaceFault
- Returns the ElementDeclaration representing the {element declaration} property
of this InterfaceFault. This describes the content or "payload" of the fault.
- Specified by:
getElementDeclaration
in interface InterfaceFault
- Returns:
- the ElementDeclaration that describes the fault content.
toElement
public InterfaceFaultElement toElement()
- Description copied from interface:
InterfaceFault
- Returns a WSDLElement that represents the element information item from the WSDL 2.0
infoset that maps to this WSDLComponent.
- Specified by:
toElement
in interface InterfaceFault
- Returns:
- the InterfaceFaultElement that maps to this InterfaceFault
setName
public void setName(NCName name)
- Description copied from interface:
InterfaceFaultElement
- Set the name of this InterfaceFaultElement to the specified NCName.
This corresponds to the
name
attribute of the interface <fault> element.
- Specified by:
setName
in interface InterfaceFaultElement
- Parameters:
name
- the NCName that represents the local name of this interface fault
setElement
public void setElement(QNameTokenUnion qnameTokenUnion)
- Description copied from interface:
InterfaceFaultElement
- Specify the union of the xs:token and xs:QName of the global schema element declaration referred to by this
InterfaceFaultElement.
The specified QName corresponds to the
element
attribute of the interface
<fault> element.
- Specified by:
setElement
in interface InterfaceFaultElement
- Parameters:
qnameTokenUnion
- the QNameTokenUnion of the element declaration
getElement
public QNameTokenUnion getElement()
- Description copied from interface:
InterfaceFaultElement
- Return the union of the xs:token and xs:QName of the global schema element declaration referred to by this
InterfaceFaultElement.
This corresponds to the
element
attribute of the interface
<fault> element.
- Specified by:
getElement
in interface InterfaceFaultElement
- Returns:
- the QNameTokenUnion of the element declaration
getXmlSchemaElement
public org.apache.ws.commons.schema.XmlSchemaElement getXmlSchemaElement()
- Description copied from interface:
InterfaceFaultElement
- Return the XmlSchemaElement representing the global schema element declaration
referred to by this InterfaceFaultElement.
This equates to the <xs:element> element referred to by the
element
attribute of the interface <fault> element.
If this reference cannot be resolved to an element declaration in a schema that
is visible to the enclosing <description>, this method will return null.
To be visible, the schema must have been correctly imported or inlined within
the <types> element.
- Specified by:
getXmlSchemaElement
in interface InterfaceFaultElement
- Returns:
- the XmlSchemaElement
getFragmentIdentifier
public FragmentIdentifier getFragmentIdentifier()
- Description copied from interface:
WSDLComponent
- Returns the fragment identifier for this WSDL 2.0 component.
- Specified by:
getFragmentIdentifier
in interface WSDLComponent
- Returns:
- a FragmentIdentifier for this WSDL 2.0 component.
Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.