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

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

public class DenyAll
extends java.lang.Object
implements ConflictHandler

A ConflictHandler that denies any attempt to change the inferred schema.

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
DenyAll()
          Constructs a new DenyAll 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

DenyAll

public DenyAll()
Constructs a new DenyAll 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.