org.apache.woden.wsdl20.validation
Interface Assertion

All Known Implementing Classes:
Description1001, Description1002, Description1003, Interface1009, Interface1010

public interface Assertion

Represents an assertion about the WSDL document or component model. This assertion may be defined by the WSDL 2.0 specification or by a WSDL extension specification.

Author:
John Kaputin (jkaputin@apache.org)

Method Summary
 java.lang.String getId()
          Return the assertion identifier.
 void validate(java.lang.Object target, WodenContext wodenCtx)
          Validates the specified WSDL object against this assertion.
 

Method Detail

getId

java.lang.String getId()
Return the assertion identifier. For example, "Description-1001". The WSDL 2.0 specification defines assertion ids for the WSDL infoset and component model and for the extensions defined in Part 2: Adjuncts (wsdlx, wrpc, wsoap, whttp). Providers of other extensions must define unique identifiers for their assertions.

Returns:
the String representing the ID of this assertion.

validate

void validate(java.lang.Object target,
              WodenContext wodenCtx)
              throws WSDLException
Validates the specified WSDL object against this assertion.

Parameters:
target - the WSDL object that is the target of the assertion
wodenCtx - WodenContext containing helper objects useful to Assertion implementors
Throws:
WSDLException


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