Package org.apache.wsil.util
Class WSDLDocumentIdentifier
- java.lang.Object
-
- org.apache.wsil.util.WSDLDocumentIdentifier
-
public class WSDLDocumentIdentifier extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WSDLDocumentIdentifier()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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
-
-