com.eviware.soapui.impl.rest.panels.request.inspectors.schema
Class InferredSchemaInspector.Handler

java.lang.Object
  extended by com.eviware.soapui.impl.rest.panels.request.inspectors.schema.InferredSchemaInspector.Handler
All Implemented Interfaces:
ConflictHandler, java.lang.Runnable
Enclosing class:
InferredSchemaInspector

public class InferredSchemaInspector.Handler
extends java.lang.Object
implements ConflictHandler, java.lang.Runnable


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.impl.wadl.inference.ConflictHandler
ConflictHandler.Event, ConflictHandler.Type
 
Constructor Summary
InferredSchemaInspector.Handler(com.eviware.soapui.impl.rest.panels.request.inspectors.schema.InferredSchemaInspector.SchemaTabs panel, org.apache.xmlbeans.XmlObject xml)
           
 
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.
 void go()
           
 void kill()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InferredSchemaInspector.Handler

public InferredSchemaInspector.Handler(com.eviware.soapui.impl.rest.panels.request.inspectors.schema.InferredSchemaInspector.SchemaTabs panel,
                                       org.apache.xmlbeans.XmlObject xml)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

go

public void go()

kill

public void kill()

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.