Package com.polarion.qcentre.factbase
Interface IFactBase
public interface IFactBase
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(IFactBaseVisitor visitor) findElement
(String id) Find element by idBuild artifact (for example, project) idgetId()
Return the root structure element.getTag()
Factbase tag, for example, timestampimportElement
(IBaseElement element, boolean deep) listFactsOfType
(String type) void
boolean
merge
(IFactElement fact) void
void
setFactbaseId
(String factbaseId) void
setLastModificationTime
(Date lastModTime) void
boolean
traverseChildren
(IFactBaseVisitor visitor) void
-
Field Details
-
ROOT_ELEMENT_TYPE
- See Also:
-
-
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
-
getId
String getId()- Returns:
- factbase id
-
setFactbaseId
-
getLastModificationTime
Date getLastModificationTime()- Returns:
- last mod time
-
setLastModificationTime
-
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
- Returns:
- facts stored in this factbase that have desired type
-
findElement
Find element by id- Parameters:
id
-- Returns:
- found element or null
-
find
-
merge
-
mergeWithStructure
-
merge
-
importElement
-
accept
-
traverseChildren
-
updateDerivedValues
void updateDerivedValues()
-