org.apache.woden.wsdl20.fragids
Class EndpointPart

java.lang.Object
  extended by org.apache.woden.wsdl20.fragids.EndpointPart
All Implemented Interfaces:
ComponentPart, PointerPart

public class EndpointPart
extends java.lang.Object
implements ComponentPart

EndpointPart is a Endpoint Pointer Part for the Endpoint WSDL 2.0 component. See the specification at http://www.w3.org/TR/wsdl20/#wsdl.endpoint

Author:
Dan Harvey (danharvey42@gmail.com)

Constructor Summary
EndpointPart(NCName service, NCName endpoint)
          Constructs an EndpointPart class from the values given.
 
Method Summary
 ComponentPart prefixNamespaces(FragmentIdentifier fragmentIdentifier)
          Checks that the namespace prefixes used in this PointerPart are consistent with those in the WSDL Fragment Identifier.
 java.lang.String toString()
          Returns a String of the serialised Endpoint Pointer Part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EndpointPart

public EndpointPart(NCName service,
                    NCName endpoint)
Constructs an EndpointPart class from the values given.

Parameters:
service - the local name of the parent Service component.
endpoint - the name of the Endpoint component.
Throws:
java.lang.IllegalArgumentException - if service or endpoint are null.
Method Detail

toString

public java.lang.String toString()
Returns a String of the serialised Endpoint Pointer Part.

Specified by:
toString in interface PointerPart
Overrides:
toString in class java.lang.Object
Returns:
a String the serialised Endpoint Pointer Part.

prefixNamespaces

public ComponentPart prefixNamespaces(FragmentIdentifier fragmentIdentifier)
Description copied from interface: ComponentPart
Checks that the namespace prefixes used in this PointerPart are consistent with those in the WSDL Fragment Identifier. It returns a identical copy of this object with the required changes. This method is called by the add method on WSDL Fragment Identifier when PointerParts are added to it.

Specified by:
prefixNamespaces in interface ComponentPart
Parameters:
fragmentIdentifier - a Fragment Identifier which the namespace prefixes are checked against.
Returns:
a ComponentPart which has been checked with changed namespaces if needed.


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.