Class EntityNode

java.lang.Object
com.aquima.interactions.rule.graph.EntityNode
All Implemented Interfaces:
IEntityNode

public class EntityNode extends Object implements IEntityNode
The entity node class of a rule graph is used to represent a single entity type. A single entity defined in the meta model may be represented by multiple entity nodes when the entity defined in the meta model extends another entity.
Since:
5.0
Author:
O. Kerpershoek
  • Constructor Details

    • EntityNode

      public EntityNode(IEntityDefinition definition, EntityNode parent)
      Constructs an entity node with the required parameters. This constructor will also initialize attribute nodes for each attribute defined in the entity.
      Parameters:
      definition - The entity definition for which the node should be created.
      parent - The entity node of the base entity (optional).
  • Method Details

    • aquireAttributeNode

      protected AttributeNode aquireAttributeNode(String attributeName)
    • getAttributeNode

      public IAttributeNode getAttributeNode(String attributeName)
      Description copied from interface: IEntityNode
      This method returns the attribute node of the rule graph representing the specified attribute in this entity node.
      Specified by:
      getAttributeNode in interface IEntityNode
      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.
    • getDefinition

      public IEntityDefinition getDefinition()
      Description copied from interface: IEntityNode
      This method returns the entity definition of the entity the node represents.
      Specified by:
      getDefinition in interface IEntityNode
      Returns:
      the entity definition of the entity the node represents.
    • getEntityName

      public String getEntityName()
      This method returns the entity name of the node.
      Returns:
      the entity name of the node.
    • getParentNode

      public IEntityNode getParentNode()
      Description copied from interface: IEntityNode
      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.
      Specified by:
      getParentNode in interface IEntityNode
      Returns:
      The entity node of the super-type entity.
    • getBusinessRules

      public IBusinessRule[] getBusinessRules(RuleType type)
      Description copied from interface: IEntityNode
      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..)
      Specified by:
      getBusinessRules in interface IEntityNode
      Parameters:
      type - The type of business rules that is requested.
      Returns:
      IBusinessRule[] Array of business rules of the specified type.