Interface IFactBase


public interface IFactBase
  • Field Details

  • Method Details

    • getArtifactId

      String getArtifactId()
      Build artifact (for example, project) id
      Returns:
      artifact id
    • getTag

      String getTag()
      Factbase tag, for example, timestamp
      Returns:
      tag
    • setTag

      void setTag(String tag)
    • getId

      String getId()
      Returns:
      factbase id
    • setFactbaseId

      void setFactbaseId(String factbaseId)
    • getLastModificationTime

      Date getLastModificationTime()
      Returns:
      last mod time
    • setLastModificationTime

      void setLastModificationTime(Date lastModTime)
    • getRootElement

      IStructureElement getRootElement()
      Return the root structure element. For plan factbases you can use listFacts methods to iterate over facts
      Returns:
      root element, not null
    • listFacts

      IFactElement[] listFacts()
      Returns:
      facts stored in this factbase
    • listFactsOfType

      IFactElement[] listFactsOfType(String type)
      Returns:
      facts stored in this factbase that have desired type
    • findElement

      IBaseElement findElement(String id)
      Find element by id
      Parameters:
      id -
      Returns:
      found element or null
    • find

      IBaseElement[] find(String path)
    • merge

      boolean merge(IFactElement fact)
    • mergeWithStructure

      void mergeWithStructure(IFactElement fact)
    • merge

      void merge(IFactBase factBase, boolean copyStructure)
    • importElement

      IBaseElement importElement(IBaseElement element, boolean deep)
    • accept

      boolean accept(IFactBaseVisitor visitor)
    • traverseChildren

      boolean traverseChildren(IFactBaseVisitor visitor)
    • updateDerivedValues

      void updateDerivedValues()