org.apache.woden.internal.wsdl20
Class InterfaceMessageReferenceImpl

java.lang.Object
  extended by org.apache.woden.internal.wsdl20.WSDLElementImpl
      extended by org.apache.woden.internal.wsdl20.DocumentableImpl
          extended by org.apache.woden.internal.wsdl20.WSDLComponentImpl
              extended by org.apache.woden.internal.wsdl20.NestedImpl
                  extended by org.apache.woden.internal.wsdl20.InterfaceMessageReferenceImpl
All Implemented Interfaces:
AttributeExtensible, ElementExtensible, PropertyExtensible, InterfaceMessageReference, NestedComponent, WSDLComponent, DocumentableElement, InterfaceMessageReferenceElement, NestedElement, WSDLElement

public class InterfaceMessageReferenceImpl
extends NestedImpl
implements InterfaceMessageReference, InterfaceMessageReferenceElement

This class represents the <input> and <output> child elements of interface operation.

Author:
jkaputin@apache.org

Constructor Summary
InterfaceMessageReferenceImpl()
           
 
Method Summary
 Direction getDirection()
          Returns an enumerated type, Direction, that indicates the direction of this message.
 QNameTokenUnion getElement()
          Return the union of the xs:token and xs:QName of the global schema element declaration referred to by this InterfaceMessageReferenceElement.
 ElementDeclaration getElementDeclaration()
          Returns the ElementDeclaration representing the {element declaration} property of this InterfaceMessageReference.
 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 InterfaceMessageReference.
 NCName getMessageLabel()
          Returns an NCName representing the {message label} property of this InterfaceMessageReference.
 org.apache.ws.commons.schema.XmlSchemaElement getXmlSchemaElement()
          Return the XmlSchemaElement representing the global schema element declaration referred to by this InterfaceMessageReferenceElement.
 void setDirection(Direction dir)
          Set the message direction using the specified enumerated type, Direction, which indicates the direction of the message.
 void setElement(QNameTokenUnion element)
          Specify the union of the xs:token and xs:QName of the global schema element declaration referred to by this InterfaceMessageReferenceElement.
 void setMessageLabel(NCName msgLabel)
          Set the message label to the specified NCName.
 InterfaceMessageReferenceElement 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
 
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLComponentImpl
containsComponent, equals, getComponentExtensionContext, getExtensionProperties, getExtensionProperties, getExtensionProperty, setComponentExtensionContext, toString
 
Methods inherited from class org.apache.woden.internal.wsdl20.DocumentableImpl
addDocumentationElement, getDocumentationElements
 
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
 
Methods inherited from interface org.apache.woden.wsdl20.NestedComponent
getParent
 
Methods inherited from interface org.apache.woden.wsdl20.WSDLComponent
equals, getComponentExtensionContext, setComponentExtensionContext, toString
 
Methods inherited from interface org.apache.woden.wsdl20.extensions.PropertyExtensible
getExtensionProperties, getExtensionProperties, getExtensionProperty
 
Methods inherited from interface org.apache.woden.wsdl20.xml.DocumentableElement
addDocumentationElement, getDocumentationElements
 
Methods inherited from interface org.apache.woden.wsdl20.xml.WSDLElement
addNamespace, getDeclaredNamespaces, getInScopeNamespaces, getNamespacePrefix, getNamespaceURI, removeNamespace
 
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
 
Methods inherited from interface org.apache.woden.wsdl20.xml.NestedElement
getParentElement
 
Methods inherited from interface org.apache.woden.wsdl20.xml.WSDLElement
addNamespace, getDeclaredNamespaces, getInScopeNamespaces, getNamespacePrefix, getNamespaceURI, removeNamespace
 
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

InterfaceMessageReferenceImpl

public InterfaceMessageReferenceImpl()
Method Detail

getMessageLabel

public NCName getMessageLabel()
Description copied from interface: InterfaceMessageReference
Returns an NCName representing the {message label} property of this InterfaceMessageReference. This associates the message with a placeholder message in the message exchange pattern specified by the parent interface operation.

Specified by:
getMessageLabel in interface InterfaceMessageReference
Specified by:
getMessageLabel in interface InterfaceMessageReferenceElement
Returns:
an NCName representing the message label

getDirection

public Direction getDirection()
Description copied from interface: InterfaceMessageReference
Returns an enumerated type, Direction, that indicates the direction of this message. Direction.IN corresponds to an input message. Direction.OUT corresponds to an output message.

Specified by:
getDirection in interface InterfaceMessageReference
Specified by:
getDirection in interface InterfaceMessageReferenceElement
Returns:
the Direction of this message

getMessageContentModel

public java.lang.String getMessageContentModel()
Description copied from interface: InterfaceMessageReference
Returns a String representing the {message content model} property of this InterfaceMessageReference. 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.

Specified by:
getMessageContentModel in interface InterfaceMessageReference
Returns:
String representing the type of message content

getElementDeclaration

public ElementDeclaration getElementDeclaration()
Description copied from interface: InterfaceMessageReference
Returns the ElementDeclaration representing the {element declaration} property of this InterfaceMessageReference. This describes the content or "payload" of the message.

Specified by:
getElementDeclaration in interface InterfaceMessageReference
Returns:
the ElementDeclaration that describes the message content.

toElement

public InterfaceMessageReferenceElement toElement()
Description copied from interface: InterfaceMessageReference
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 InterfaceMessageReference
Returns:
the InterfaceMessageReferenceElement that maps to this InterfaceMessageReference

setMessageLabel

public void setMessageLabel(NCName msgLabel)
Description copied from interface: InterfaceMessageReferenceElement
Set the message label to the specified NCName. This corresponds to the messageLabel attribute of the interface operation <input> and <output> elements. It represents a placeholder message in the message exchange pattern specified by the parent interface <operation> element.

Specified by:
setMessageLabel in interface InterfaceMessageReferenceElement
Parameters:
msgLabel - the NCName representing the message label

setElement

public void setElement(QNameTokenUnion element)
Description copied from interface: InterfaceMessageReferenceElement
Specify the union of the xs:token and xs:QName of the global schema element declaration referred to by this InterfaceMessageReferenceElement. The specified QNameTokenEnum corresponds to the element attribute of the interface operation <input> or <output> element.

Specified by:
setElement in interface InterfaceMessageReferenceElement
Parameters:
element - the QNameTokenEnum of the element declaration.

getElement

public QNameTokenUnion getElement()
Description copied from interface: InterfaceMessageReferenceElement
Return the union of the xs:token and xs:QName of the global schema element declaration referred to by this InterfaceMessageReferenceElement. This corresponds to the element attribute of the interface operation <input> or <output> element.

Specified by:
getElement in interface InterfaceMessageReferenceElement
Returns:
the QNameTokenEnum of the element declaration

getXmlSchemaElement

public org.apache.ws.commons.schema.XmlSchemaElement getXmlSchemaElement()
Description copied from interface: InterfaceMessageReferenceElement
Return the XmlSchemaElement representing the global schema element declaration referred to by this InterfaceMessageReferenceElement. This equates to the <xs:element> element referred to by the element attribute of the interface operation <input> or <output> 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 InterfaceMessageReferenceElement
Returns:
the XmlSchemaElement

setDirection

public void setDirection(Direction dir)
Description copied from interface: InterfaceMessageReferenceElement
Set the message direction using the specified enumerated type, Direction, which indicates the direction of the message. Direction.IN corresponds to the interface operation <input> element. Direction.OUT corresponds to the interface operation <output> element.

Specified by:
setDirection in interface InterfaceMessageReferenceElement
Parameters:
dir - the Direction of the message

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.