net.sourceforge.nrl.parser.ast
Interface ISingleContextDeclaration

All Superinterfaces:
IDeclaration, INRLAstNode
All Known Subinterfaces:
IActionRuleDeclaration, IConstraintRuleDeclaration, IRuleDeclaration
All Known Implementing Classes:
ActionRuleDeclarationImpl, ConstraintRuleDeclarationImpl, SingleContextDeclarationImpl

public interface ISingleContextDeclaration
extends IDeclaration

A SingleContextDeclaration is a declaration with a unique context, for example a validation or action rule. The declaration can still hold auxiliary parameters, however the rule only applies if the main context is present.

Author:
Christian Nentwich

Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 List<String> getAdditionalParameterNames()
          Get the list of additional parameters available.
 IModelElement getAdditionalParameterType(String parameterName)
          Given an additional parameter name, return its resolved type.
 IModelElement getContext()
          Get the referenced model element
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.IDeclaration
getId
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
accept, dump, getColumn, getLine, getUserData, setUserData
 

Method Detail

getContext

IModelElement getContext()
Get the referenced model element

Returns:
the element

getAdditionalParameterNames

List<String> getAdditionalParameterNames()
Get the list of additional parameters available.

Returns:
the parameter names
Since:
1.4.6

getAdditionalParameterType

IModelElement getAdditionalParameterType(String parameterName)
Given an additional parameter name, return its resolved type. This returns null if the parameter name is invalid.

Parameters:
name - the name
Returns:
the type or null
Since:
1.4.6


Copyright © 2006-2013. All Rights Reserved.