org.apache.woden.internal.wsdl20.extensions.http
Class HTTPHeaderImpl

java.lang.Object
  extended by org.apache.woden.internal.wsdl20.extensions.http.HTTPHeaderImpl
All Implemented Interfaces:
AttributeExtensible, ElementExtensible, ExtensionElement, HTTPHeader, HTTPHeaderElement

public class HTTPHeaderImpl
extends java.lang.Object
implements HTTPHeader, HTTPHeaderElement

This class represents the HTTPHeader Component and the <whttp:header> extension element that can appear within a Binding Fault or Binding Message Reference.

Author:
John Kaputin (jkaputin@apache.org)

Constructor Summary
HTTPHeaderImpl()
           
 
Method Summary
 void addDocumentationElement(DocumentationElement docEl)
           
 void addExtensionElement(ExtensionElement extEl)
           
 DocumentationElement[] getDocumentationElements()
           
 XMLAttr getExtensionAttribute(QName attrType)
          Return the extension attribute with this QName.
 XMLAttr[] getExtensionAttributes()
          Return all extension attributes.
 XMLAttr[] getExtensionAttributesForNamespace(java.net.URI namespace)
          Return the extension attributes from this namespace.
 ExtensionElement[] getExtensionElements()
           
 ExtensionElement[] getExtensionElementsOfType(QName extType)
           
 QName getExtensionType()
           
 java.lang.String getName()
           
 WSDLComponent getParent()
           
 WSDLElement getParentElement()
           
 org.apache.ws.commons.schema.XmlSchemaType getType()
           
 TypeDefinition getTypeDefinition()
           
 QName getTypeName()
           
 boolean hasExtensionAttributesForNamespace(java.net.URI namespace)
          Return true if the implementor has extension attributes belonging to this namespace, otherwise false.
 boolean hasExtensionElementsForNamespace(java.net.URI namespace)
          Return true if the implementor has extension elements belonging to this namespace, otherwise false.
 java.lang.Boolean isRequired()
           
 void removeExtensionElement(ExtensionElement extEl)
           
 void setExtensionAttribute(QName attrType, XMLAttr attr)
          Store the extension attribute object identified by the QName.
 void setExtensionType(QName qname)
           
 void setName(java.lang.String name)
           
 void setParentElement(WSDLElement wsdlEl)
           
 void setRequired(java.lang.Boolean required)
           
 void setTypeName(QName qname)
           
 HTTPHeaderElement toElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPHeaderImpl

public HTTPHeaderImpl()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface HTTPHeader
Specified by:
getName in interface HTTPHeaderElement

getTypeDefinition

public TypeDefinition getTypeDefinition()
Specified by:
getTypeDefinition in interface HTTPHeader

isRequired

public java.lang.Boolean isRequired()
Specified by:
isRequired in interface ExtensionElement
Specified by:
isRequired in interface HTTPHeader

getParent

public WSDLComponent getParent()
Specified by:
getParent in interface HTTPHeader

toElement

public HTTPHeaderElement toElement()
Specified by:
toElement in interface HTTPHeader

setName

public void setName(java.lang.String name)
Specified by:
setName in interface HTTPHeaderElement

setTypeName

public void setTypeName(QName qname)
Specified by:
setTypeName in interface HTTPHeaderElement

getTypeName

public QName getTypeName()
Specified by:
getTypeName in interface HTTPHeaderElement

getType

public org.apache.ws.commons.schema.XmlSchemaType getType()
Specified by:
getType in interface HTTPHeaderElement

setParentElement

public void setParentElement(WSDLElement wsdlEl)
Specified by:
setParentElement in interface HTTPHeaderElement

getParentElement

public WSDLElement getParentElement()
Specified by:
getParentElement in interface HTTPHeaderElement

addDocumentationElement

public void addDocumentationElement(DocumentationElement docEl)
Specified by:
addDocumentationElement in interface HTTPHeaderElement

getDocumentationElements

public DocumentationElement[] getDocumentationElements()
Specified by:
getDocumentationElements in interface HTTPHeaderElement

setExtensionType

public void setExtensionType(QName qname)
Specified by:
setExtensionType in interface ExtensionElement

getExtensionType

public QName getExtensionType()
Specified by:
getExtensionType in interface ExtensionElement

setRequired

public void setRequired(java.lang.Boolean required)
Specified by:
setRequired in interface ExtensionElement

setExtensionAttribute

public void setExtensionAttribute(QName attrType,
                                  XMLAttr attr)
Description copied from interface: AttributeExtensible
Store the extension attribute object identified by the QName. If the attribute argument is null, remove the extension attribute identified by the specified QName argument. TODO ? @throws IllegalArgumentException if the QName is null

Specified by:
setExtensionAttribute in interface AttributeExtensible

getExtensionAttribute

public XMLAttr getExtensionAttribute(QName attrType)
Description copied from interface: AttributeExtensible
Return the extension attribute with this QName.

Specified by:
getExtensionAttribute in interface AttributeExtensible

getExtensionAttributesForNamespace

public XMLAttr[] getExtensionAttributesForNamespace(java.net.URI namespace)
Description copied from interface: AttributeExtensible
Return the extension attributes from this namespace.

Specified by:
getExtensionAttributesForNamespace in interface AttributeExtensible

getExtensionAttributes

public XMLAttr[] getExtensionAttributes()
Description copied from interface: AttributeExtensible
Return all extension attributes.

Specified by:
getExtensionAttributes in interface AttributeExtensible

hasExtensionAttributesForNamespace

public boolean hasExtensionAttributesForNamespace(java.net.URI namespace)
Description copied from interface: AttributeExtensible
Return true if the implementor has extension attributes belonging to this namespace, otherwise false.

Specified by:
hasExtensionAttributesForNamespace in interface AttributeExtensible

addExtensionElement

public void addExtensionElement(ExtensionElement extEl)
Specified by:
addExtensionElement in interface ElementExtensible

removeExtensionElement

public void removeExtensionElement(ExtensionElement extEl)
Specified by:
removeExtensionElement in interface ElementExtensible

getExtensionElements

public ExtensionElement[] getExtensionElements()
Specified by:
getExtensionElements in interface ElementExtensible

getExtensionElementsOfType

public ExtensionElement[] getExtensionElementsOfType(QName extType)
Specified by:
getExtensionElementsOfType in interface ElementExtensible

hasExtensionElementsForNamespace

public boolean hasExtensionElementsForNamespace(java.net.URI namespace)
Description copied from interface: ElementExtensible
Return true if the implementor has extension elements belonging to this namespace, otherwise false.

Specified by:
hasExtensionElementsForNamespace in interface ElementExtensible


Copyright © 2007. All Rights Reserved.