Package com.aquima.interactions.rule
Interface IEntityNode
- All Known Implementing Classes:
EntityNode
public interface IEntityNode
Interface for objects representing an entity in the rule graph.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeNode
(String attributeName) This method returns the attribute node of the rule graph representing the specified attribute in this entity node.getBusinessRules
(RuleType type) This method returns the business rules that are directly coupled to this entity node.This method returns the entity definition of the entity the node represents.This method returns the node representing super type of the current entity.
-
Method Details
-
getDefinition
IEntityDefinition getDefinition()This method returns the entity definition of the entity the node represents.- Returns:
- the entity definition of the entity the node represents.
-
getParentNode
IEntityNode getParentNode()This method returns the node representing super type of the current entity. If this entity does not have a super-type, then the method will return a null value.- Returns:
- The entity node of the super-type entity.
-
getAttributeNode
This method returns the attribute node of the rule graph representing the specified attribute in this entity node.- Parameters:
attributeName
- The name of the attribute for which the attribute node is requested.- Returns:
- The attribute node of the rule graph representing the specified attribute.
- Throws:
UnknownAttributeException
- This exception is thrown when the specified attribute is unknown.
-
getBusinessRules
This method returns the business rules that are directly coupled to this entity node. The resulting array is not sorted in any way, and may contain business objects of various types (source, validation, etc..)- Parameters:
type
- The type of business rules that is requested.- Returns:
- IBusinessRule[] Array of business rules of the specified type.
-