net.sourceforge.nrl.parser.ast.action
Interface IRemoveAction

All Superinterfaces:
IAction, INRLAstNode, ISimpleAction

public interface IRemoveAction
extends ISimpleAction

An action that deletes an attribute or deletes any object that matches a set of criteria.

This action combines two quite different activities: to null out an attribute in an object; and to query for any object that match the criteria supplied in a where clause, and delete them.


Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 IModelReference getTarget()
          The target of the deletion.
 IVariable getVariable()
          Return the variable that is being provided with the where clause.
 IConstraint getWhere()
          Return a where clause if there is one.
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
accept, dump, getColumn, getLine, getUserData, setUserData
 

Method Detail

getTarget

IModelReference getTarget()
The target of the deletion. This will either be an attribute-relative reference, or an element reference. Use IModelReference.getReferenceType() to determine which type applies.

Returns:
the target

getVariable

IVariable getVariable()
Return the variable that is being provided with the where clause. This will return null if there is no where clause, otherwise it will always return a variable.

Returns:
the variable

getWhere

IConstraint getWhere()
Return a where clause if there is one. This can only return a non-null value if the target is an element (rather than an attribute).

Returns:
the where clause or null


Copyright © 2006-2010 Christian Nentwich and others