public interface IRuleFile extends INRLAstNode
NEWLINE| Modifier and Type | Method and Description |
|---|---|
List<IDeclaration> |
getDeclarations()
Return a collection of the declarations in this file.
|
List<IVariableDeclaration> |
getGlobalVariableDeclarations()
Get the list of global variable declarations.
|
IModelFileReference[] |
getModelFileReferences()
Return the model file references, as they were declared in this rule file.
|
IOperatorFileReference[] |
getOperatorFileReferences()
Return an array of operator file references - can be empty.
|
IRuleDeclaration |
getRuleById(String id)
Look up a rule declaration by ID.
|
List<IRuleSetDeclaration> |
getRuleSetDeclarations()
Return a list of all rule set declarations.
|
accept, dump, getColumn, getLine, getUserData, setUserDataIModelFileReference[] getModelFileReferences()
IOperatorFileReference[] getOperatorFileReferences()
List<IDeclaration> getDeclarations()
IConstraintRuleDeclaration and IValidationFragmentDeclaration
objects.
Clients calling this method should be defensive and check each objects to ensure it is handled correctly.
IRuleDeclaration getRuleById(String id)
id - the rule idList<IRuleSetDeclaration> getRuleSetDeclarations()
IRuleSetDeclaration objects.List<IVariableDeclaration> getGlobalVariableDeclarations()
IVariableDeclaration objects with some special properties:
IVariableDeclaration.getExpression() is always an
ILiteralString, IDecimalNumber or IIntegerNumber,
but never a model reference.
IVariableDeclaration#getConstraint() is always null
Copyright © 2006-2013. All Rights Reserved.