org.apache.woden.internal.wsdl20
Class InterfaceFaultImpl

java.lang.Object
  extended by org.apache.woden.internal.wsdl20.WSDLElementImpl
      extended by org.apache.woden.internal.wsdl20.WSDLObjectImpl
          extended by org.apache.woden.internal.wsdl20.DocumentableImpl
              extended by org.apache.woden.internal.wsdl20.NestedImpl
                  extended by org.apache.woden.internal.wsdl20.InterfaceFaultImpl
All Implemented Interfaces:
AttributeExtensible, ElementExtensible, 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

Constructor Summary
InterfaceFaultImpl()
           
 
Method Summary
 org.apache.ws.commons.schema.XmlSchemaElement getElement()
          Return the XmlSchemaElement representing the global schema element declaration referred to by this InterfaceFaultElement.
 ElementDeclaration getElementDeclaration()
          Returns the ElementDeclaration representing the {element declaration} property of this InterfaceFault.
 QName getElementName()
          Return the name of the global schema element declaration referred to by this InterfaceFaultElement.
 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.
 void setElementName(QName qname)
          Specify the name 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.NestedImpl
getParent, getParentElement, setParentElement
 
Methods inherited from class org.apache.woden.internal.wsdl20.DocumentableImpl
addDocumentationElement, getDocumentationElements
 
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLObjectImpl
containsComponent, equals, getComponentExtensionsForNamespace, setComponentExtensions
 
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLElementImpl
addExtensionElement, getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, getExtensionElements, getExtensionElementsOfType, hasExtensionAttributesForNamespace, hasExtensionElementsForNamespace, removeExtensionElement, setExtensionAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.woden.wsdl20.NestedComponent
getParent
 
Methods inherited from interface org.apache.woden.wsdl20.WSDLComponent
equals, getComponentExtensionsForNamespace
 
Methods inherited from interface org.apache.woden.wsdl20.xml.DocumentableElement
addDocumentationElement, getDocumentationElements
 
Methods inherited from interface org.apache.woden.wsdl20.xml.NestedElement
getParentElement, setParentElement
 
Methods inherited from interface org.apache.woden.wsdl20.extensions.AttributeExtensible
getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, hasExtensionAttributesForNamespace, setExtensionAttribute
 
Methods inherited from interface org.apache.woden.wsdl20.extensions.ElementExtensible
addExtensionElement, getExtensionElements, getExtensionElementsOfType, hasExtensionElementsForNamespace, removeExtensionElement
 

Constructor Detail

InterfaceFaultImpl

public InterfaceFaultImpl()
Method Detail

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

setElementName

public void setElementName(QName qname)
Description copied from interface: InterfaceFaultElement
Specify the name 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:
setElementName in interface InterfaceFaultElement
Parameters:
qname - the QName of the element declaration

getElementName

public QName getElementName()
Description copied from interface: InterfaceFaultElement
Return the name of the global schema element declaration referred to by this InterfaceFaultElement. This corresponds to the element attribute of the interface <fault> element.

Specified by:
getElementName in interface InterfaceFaultElement
Returns:
the QName of the element declaration

getElement

public org.apache.ws.commons.schema.XmlSchemaElement getElement()
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:
getElement in interface InterfaceFaultElement
Returns:
the XmlSchemaElement


Copyright © 2007. All Rights Reserved.