Package org.apache.wsil.util
Class WSDLDocumentIdentifier
java.lang.Object
org.apache.wsil.util.WSDLDocumentIdentifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
WSDLDocumentIdentifier
public WSDLDocumentIdentifier()
-
-
Method Details
-
isInterfaceDocument
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
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
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
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
-