|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.processor.xml.ProcessorInstruction
com.metamatrix.query.processor.xml.AbortProcessingInstruction
public class AbortProcessingInstruction
This instruction, intended to be reached conditionally (only under certain
criteria) will throw a RuntimeException and cause query processing to
be aborted. The process(com.metamatrix.query.processor.xml.XMLProcessorEnvironment, com.metamatrix.query.processor.xml.XMLContext)
method automatically and always throws
a RuntimeException.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_MESSAGE
Default message included in the RuntimeException thrown from process(com.metamatrix.query.processor.xml.XMLProcessorEnvironment, com.metamatrix.query.processor.xml.XMLContext) |
Constructor Summary | |
---|---|
AbortProcessingInstruction()
Constructor for AbortProcessingInstruction. |
Method Summary | |
---|---|
java.util.Map |
getDescriptionProperties()
Get a description as a set of properties of primitive types such as String, Integer, etc. |
com.metamatrix.query.processor.xml.XMLContext |
process(XMLProcessorEnvironment env,
com.metamatrix.query.processor.xml.XMLContext context)
Allow this ProcessorInstruction to do whatever processing it needs, and to in turn manipulate the running program, (via the ProcessorEnvironment getProgramStack method.)
A typical instruction should simply increment
the program counter of the current program, but specialized instructions may add
sub programs to the stack or not increment the counter (so that they are
executed again.) |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_MESSAGE
process(com.metamatrix.query.processor.xml.XMLProcessorEnvironment, com.metamatrix.query.processor.xml.XMLContext)
Constructor Detail |
---|
public AbortProcessingInstruction()
Method Detail |
---|
public com.metamatrix.query.processor.xml.XMLContext process(XMLProcessorEnvironment env, com.metamatrix.query.processor.xml.XMLContext context) throws BlockedException, MetaMatrixComponentException, MetaMatrixProcessingException
ProcessorInstruction
getProgramStack
method.)
A typical instruction should simply increment
the program counter of the current program, but specialized instructions may add
sub programs to the stack or not increment the counter (so that they are
executed again.)
process
in class ProcessorInstruction
env
- instance of ProcessorEnvironment which is being used for the processing
of the XML document model query
MetaMatrixComponentException
- always
BlockedException
- if data is not available now but may be at a later time
MetaMatrixProcessingException
- for business exception due to user input or modelProcessorInstruction#process(ProcessorEnvironment)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map getDescriptionProperties()
Describable
getDescriptionProperties
in interface Describable
getDescriptionProperties
in class ProcessorInstruction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |