Class FactElementDecorator

java.lang.Object
com.polarion.qcentre.factbase.impl.BaseElementDecorator
com.polarion.qcentre.factbase.impl.FactElementDecorator
All Implemented Interfaces:
IBaseElement, IFactElement
Direct Known Subclasses:
ValueFactElementDecorator, ViolationFactElementDecorator

public class FactElementDecorator extends BaseElementDecorator implements IFactElement
  • Constructor Details

    • FactElementDecorator

      public FactElementDecorator(IFactElement factElement)
  • Method Details

    • getFactElement

      public IFactElement getFactElement()
    • listFacts

      public IFactElement[] listFacts()
      Specified by:
      listFacts in interface IFactElement
    • listFactsOfType

      public IFactElement[] listFactsOfType(int level, String type, Class factClass)
      Specified by:
      listFactsOfType in interface IFactElement
      Parameters:
      level - = 0 current, -1 infinite, 1,2,3 recursive depth
      type - = desired fact.getType, null any
      factClass - = instance of facts user is interested to find, null any
      Returns:
      facts stored in this fact base that have desired type and class recursively if depth >0 or -1