org.apache.wsil.util
Class WSDLDocumentIdentifier

java.lang.Object
  extended by org.apache.wsil.util.WSDLDocumentIdentifier

public class WSDLDocumentIdentifier
extends java.lang.Object


Constructor Summary
WSDLDocumentIdentifier()
           
 
Method Summary
static boolean isBindingInterfaceDocument(WSDLDocument wsdlDocument)
          Determine whether the document meets the criteria for an Interface document * that has bindings only.
static boolean isCompleteDocument(WSDLDocument wsdlDocument)
          Determine whether the document meets the criteria for a Complete document.
static boolean isImplementationDocument(WSDLDocument wsdlDocument)
          Determine whether the document meets the criteria for an Implementation document.
static boolean isInterfaceDocument(WSDLDocument wsdlDocument)
          Determine whether the document meets the criteria for an Interface document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLDocumentIdentifier

public WSDLDocumentIdentifier()
Method Detail

isInterfaceDocument

public static boolean isInterfaceDocument(WSDLDocument wsdlDocument)
Determine whether the document meets the criteria for an Interface document. The document must contain Message, PortType and Binding elements.

Parameters:
wsdlDocument - the document to be evaluated
Returns:
true if Message, PortType and Binding elements are found; false otherwise

isBindingInterfaceDocument

public static boolean isBindingInterfaceDocument(WSDLDocument wsdlDocument)
Determine whether the document meets the criteria for an Interface document * that has bindings only. The document must contain Binding elements.

Parameters:
wsdlDocument - the document to be evaluated
Returns:
true if Binding element is found; false otherwise

isImplementationDocument

public static boolean isImplementationDocument(WSDLDocument wsdlDocument)
Determine whether the document meets the criteria for an Implementation document. The document must contain at least one Import and one Service element. We do not make any effort to verify the content of any import documents.

Parameters:
wsdlDocument - the document to be evaluated
Returns:
true if at least one Import and one Service element are found; false otherwise

isCompleteDocument

public static boolean isCompleteDocument(WSDLDocument wsdlDocument)
Determine whether the document meets the criteria for a Complete document. The document must contain Message, PortType, Binding and Service elements.

Parameters:
wsdlDocument - the document to be evaluated
Returns:
true if Message, PortType, Binding and Service elements are found; false otherwise


Copyright ? 2001 International Business Machines Corporation. All Rights Reserved.