XTAS Project (0.6 beta)

xtas
Class ResourceInstruction

java.lang.Object
  |
  +--xtas.Instruction
        |
        +--xtas.ResourceInstruction

public class ResourceInstruction
extends Instruction

Resource processing based instruction

Version:
$Id: ResourceInstruction.java,v 1.3 2003/05/28 15:51:46 geaz Exp $

Constructor Summary
ResourceInstruction(Instruction instr)
          Copy constructor
ResourceInstruction(java.lang.String type, java.lang.String match, UniFormTree newValue)
           
 
Method Summary
 void compile()
          Compiles instruction (does nothing for ResourceInstruction)
 UniFormTree execute(UniFormTree input)
          Executes instruction
 java.lang.String getAsString()
          Gets instruction as String
 void setContext(java.lang.Object context)
          Sets context
 
Methods inherited from class xtas.Instruction
getMatch, getNewValue, getType, isAtResource, isAtXml, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceInstruction

public ResourceInstruction(Instruction instr)
Copy constructor

ResourceInstruction

public ResourceInstruction(java.lang.String type,
                           java.lang.String match,
                           UniFormTree newValue)
                    throws InvalidStatementException
Method Detail

getAsString

public java.lang.String getAsString()
Description copied from class: Instruction
Gets instruction as String
Overrides:
getAsString in class Instruction

compile

public void compile()
             throws InvalidStatementException
Compiles instruction (does nothing for ResourceInstruction)
Overrides:
compile in class Instruction

execute

public UniFormTree execute(UniFormTree input)
                    throws InvalidSourceException,
                           QueryRunTimeException
Executes instruction
Overrides:
execute in class Instruction

setContext

public void setContext(java.lang.Object context)
Description copied from class: Instruction
Sets context
Overrides:
setContext in class Instruction

XTAS Project (0.6 beta)