Package com.polarion.qcentre.factbase
Interface IBaseElement
- All Known Subinterfaces:
IDerivedValueFactElememt
,IFactElement
,IStructureElement
,ITrendValueFactElement
,IValueFactElement
,IViolationFactElement
- All Known Implementing Classes:
com.polarion.qcentre.internal.factbase.AbstractBaseElement
,BaseElementDecorator
,ExpressionBasedFactElement
,com.polarion.qcentre.internal.factbase.FactElement
,FactElementDecorator
,StructureElementDecorator
,com.polarion.qcentre.internal.factbase.ValueFactElement
,ValueFactElementDecorator
,ViolationFactElementDecorator
public interface IBaseElement
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(IFactBaseVisitor visitor) void
void
addProperties
(Property[] properties) void
addProperty
(Property property) clone
(IBaseElement parent, String idPrefix, boolean deep) void
dispose()
findByFPath
(String fpath) Return the factbase, main container of base elements.getId()
String[]
For structure elements it return parent structure element.Property[]
getProperty
(String name) getPropertyValue
(String key) getPropertyValue
(String key, Object defaultValue) getTag()
getType()
boolean
boolean
void
removeProperty
(String key) void
setProperty
(String key, Object value) boolean
traverseChildren
(IFactBaseVisitor visitor)
-
Method Details
-
getId
String getId()- Returns:
- unique element identifier, not null
-
getType
String getType()- Returns:
- element type, not null
-
getTag
String getTag()- Returns:
- element tag, not null
-
getProvider
String getProvider()- Returns:
- element provider (creator), not null
-
getFactBase
IFactBase getFactBase()Return the factbase, main container of base elements.- Returns:
- factbase
-
getParent
IBaseElement getParent()For structure elements it return parent structure element. For fact element it returns structure element that contains the fact element (root element for flat factbases).- Returns:
- parent
-
getStructuralParent
IStructureElement getStructuralParent() -
getChildren
IBaseElement[] getChildren() -
findByFPath
-
getProperties
Property[] getProperties() -
getProperty
-
getPropertyValue
-
getPropertyValue
-
setProperty
-
removeProperty
-
addProperty
-
addProperties
-
hasProperties
boolean hasProperties() -
getLinkedElementIds
String[] getLinkedElementIds() -
addLink
-
accept
-
traverseChildren
-
clone
-
dispose
void dispose() -
isDisposed
boolean isDisposed() -
find
-