com.eviware.soapui.impl.wadl.inference.support
Class AllowAll

java.lang.Object
  extended by com.eviware.soapui.impl.wadl.inference.support.AllowAll
All Implemented Interfaces:
ConflictHandler

public class AllowAll
extends java.lang.Object
implements ConflictHandler

ConflictHandler that allows any changes that need to be made to the schema in order to validate against given XML document.

Author:
Dain Nilsson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.impl.wadl.inference.ConflictHandler
ConflictHandler.Event, ConflictHandler.Type
 
Constructor Summary
AllowAll()
          Constructs a new AllowAll instance.
 
Method Summary
 boolean callback(ConflictHandler.Event event, ConflictHandler.Type type, javax.xml.namespace.QName name, java.lang.String path, java.lang.String message)
          Callback method for deciding whether given Xml document is valid or not, and if so, to expand the schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllowAll

public AllowAll()
Constructs a new AllowAll instance.

Method Detail

callback

public boolean callback(ConflictHandler.Event event,
                        ConflictHandler.Type type,
                        javax.xml.namespace.QName name,
                        java.lang.String path,
                        java.lang.String message)
Description copied from interface: ConflictHandler
Callback method for deciding whether given Xml document is valid or not, and if so, to expand the schema. The function should return true if the contents at the cursor is valid in respect to the message provided, false if not.

Specified by:
callback in interface ConflictHandler
Parameters:
event - What type of event this is, creation or modification.
type - The type of particle that this is in regards to.
name - The QName for the particle that is being modified.
path - The path to the element that is being changed (or contains the attribute/has the type that is beng changed).
message - A short message describing the change.
Returns:
True to accept the schema modification and continue validation, false to trigger validation failure.


Copyright © 2005-2009 eviware.com. All Rights Reserved.