org.ow2.easywsdl.wsdl.impl.wsdl20
Class InterfaceTypeImpl

java.lang.Object
  extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl<E>
      extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractXMLElementImpl<E>
          extended by org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl<E>
              extended by org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractInterfaceTypeImpl<InterfaceType,Operation>
                  extended by org.ow2.easywsdl.wsdl.impl.wsdl20.InterfaceTypeImpl
All Implemented Interfaces:
java.io.Serializable, org.ow2.easywsdl.schema.api.SchemaElement, org.ow2.easywsdl.schema.api.XMLElement, AbsItfInterfaceType<Operation>, InterfaceType, WSDLElement

public class InterfaceTypeImpl
extends AbstractInterfaceTypeImpl<InterfaceType,Operation>
implements InterfaceType

Author:
Nicolas Salatge - eBM WebSourcing
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractInterfaceTypeImpl
desc, operations
 
Fields inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
documentation, model, parent
 
Constructor Summary
InterfaceTypeImpl(InterfaceType itf, DescriptionImpl desc)
           
 
Method Summary
 void addOperation(Operation op)
          Add an operation to this port type.
 Operation createOperation()
          create an operation to this port type.
 java.util.List<org.w3c.dom.Element> getOtherElements()
          Get all the extensibility elements defined here.
 javax.xml.namespace.QName getQName()
          Get the name of this port type.
 Operation removeOperation(java.lang.String name)
          Remove the specified operation.
static InterfaceType replaceDOMElementByInterfaceType(WSDLElement parent, org.w3c.dom.Element childToReplace, WSDLReaderImpl reader)
           
 void setQName(javax.xml.namespace.QName name)
          Set the name of this port type.
 
Methods inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractInterfaceTypeImpl
getDescription, getOperation, getOperations
 
Methods inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl
addOtherElements, createDocumentation, getDocumentation, getModel, getOtherAttributes, setDocumentation, toString
 
Methods inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
equals, getParent, getSchema, getTopParent, hashCode, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfInterfaceType
getOperation, getOperations
 
Methods inherited from interface org.ow2.easywsdl.schema.api.XMLElement
addOtherElements
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, equals, getDocumentation, getOtherAttributes, hashCode, setDocumentation
 

Constructor Detail

InterfaceTypeImpl

public InterfaceTypeImpl(InterfaceType itf,
                         DescriptionImpl desc)
Method Detail

getQName

public javax.xml.namespace.QName getQName()
Description copied from interface: AbsItfInterfaceType
Get the name of this port type.

Specified by:
getQName in interface AbsItfInterfaceType<Operation>
Returns:
the port type name

addOperation

public void addOperation(Operation op)
Description copied from interface: AbsItfInterfaceType
Add an operation to this port type.

Specified by:
addOperation in interface AbsItfInterfaceType<Operation>
Overrides:
addOperation in class AbstractInterfaceTypeImpl<InterfaceType,Operation>
Parameters:
op - the operation to be added

removeOperation

public Operation removeOperation(java.lang.String name)
Description copied from interface: AbsItfInterfaceType
Remove the specified operation. Note that operation names can be overloaded within a PortType.

Specified by:
removeOperation in interface AbsItfInterfaceType<Operation>
Parameters:
name - the name of the desired operation.
See Also:
#getOperation(String)

setQName

public void setQName(javax.xml.namespace.QName name)
Description copied from interface: AbsItfInterfaceType
Set the name of this port type.

Specified by:
setQName in interface AbsItfInterfaceType<Operation>
Parameters:
name - the desired name

getOtherElements

public java.util.List<org.w3c.dom.Element> getOtherElements()
                                                     throws org.ow2.easywsdl.schema.api.XmlException
Description copied from class: AbstractWSDLElementImpl
Get all the extensibility elements defined here.

Specified by:
getOtherElements in interface org.ow2.easywsdl.schema.api.XMLElement
Overrides:
getOtherElements in class AbstractWSDLElementImpl<InterfaceType>
Throws:
org.ow2.easywsdl.schema.api.XmlException

createOperation

public Operation createOperation()
Description copied from interface: AbsItfInterfaceType
create an operation to this port type.

Specified by:
createOperation in interface AbsItfInterfaceType<Operation>

replaceDOMElementByInterfaceType

public static InterfaceType replaceDOMElementByInterfaceType(WSDLElement parent,
                                                             org.w3c.dom.Element childToReplace,
                                                             WSDLReaderImpl reader)
                                                      throws WSDLException
Throws:
WSDLException


Copyright © 2008-2010 Petals Link (previously EBM WebSourcing). All Rights Reserved.