net.sourceforge.nrl.parser.ast.constraints
Interface IValidationFragmentApplication

All Superinterfaces:
IConstraint, IExpression, INRLAstNode

public interface IValidationFragmentApplication
extends IExpression

A fragment application is used inside a rule to obtain the value of a fragment. It either applies to the current context, or optionally takes a model reference parameter.


Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 IValidationFragmentDeclaration getFragment()
          Return the fragment to check.
 String getFragmentName()
          Return the name of the fragment to check.
 int getNumParameters()
          Return the number of parameters passed to this property.
 IExpression getParameter(int index)
          Return a parameter.
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.constraints.IConstraint
getNRLDataType, setNRLDataType
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
accept, dump, getColumn, getLine, getUserData, setUserData
 

Method Detail

getFragmentName

String getFragmentName()
Return the name of the fragment to check. Use getFragment() to return the actual fragment.

Returns:
the fragment name

getFragment

IValidationFragmentDeclaration getFragment()
Return the fragment to check. Never returns null.

Returns:
the fragment

getParameter

IExpression getParameter(int index)
Return a parameter. The parameter index must be between 0 and getNumParameters()-1, or a runtime exception will occur.

Parameters:
index - the index
Returns:
the parameter, will not be null if the index was in bounds

getNumParameters

int getNumParameters()
Return the number of parameters passed to this property.



Copyright © 2006-2010 Christian Nentwich and others