Class BaseElementDecorator
java.lang.Object
com.polarion.qcentre.factbase.impl.BaseElementDecorator
- All Implemented Interfaces:
IBaseElement
- Direct Known Subclasses:
FactElementDecorator
,StructureElementDecorator
-
Constructor Summary
-
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)
-
Constructor Details
-
BaseElementDecorator
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceIBaseElement
- Returns:
- unique element identifier, not null
-
getType
- Specified by:
getType
in interfaceIBaseElement
- Returns:
- element type, not null
-
getTag
- Specified by:
getTag
in interfaceIBaseElement
- Returns:
- element tag, not null
-
getProvider
- Specified by:
getProvider
in interfaceIBaseElement
- Returns:
- element provider (creator), not null
-
getFactBase
Description copied from interface:IBaseElement
Return the factbase, main container of base elements.- Specified by:
getFactBase
in interfaceIBaseElement
- Returns:
- factbase
-
getParent
Description copied from interface:IBaseElement
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).- Specified by:
getParent
in interfaceIBaseElement
- Returns:
- parent
-
getStructuralParent
- Specified by:
getStructuralParent
in interfaceIBaseElement
-
getChildren
- Specified by:
getChildren
in interfaceIBaseElement
-
getProperties
- Specified by:
getProperties
in interfaceIBaseElement
-
addProperties
- Specified by:
addProperties
in interfaceIBaseElement
-
addProperty
- Specified by:
addProperty
in interfaceIBaseElement
-
hasProperties
public boolean hasProperties()- Specified by:
hasProperties
in interfaceIBaseElement
-
getPropertyValue
- Specified by:
getPropertyValue
in interfaceIBaseElement
-
setProperty
- Specified by:
setProperty
in interfaceIBaseElement
-
removeProperty
- Specified by:
removeProperty
in interfaceIBaseElement
-
getProperty
- Specified by:
getProperty
in interfaceIBaseElement
-
getPropertyValue
- Specified by:
getPropertyValue
in interfaceIBaseElement
-
accept
- Specified by:
accept
in interfaceIBaseElement
-
traverseChildren
- Specified by:
traverseChildren
in interfaceIBaseElement
-
getBaseElement
-
dispose
public void dispose()- Specified by:
dispose
in interfaceIBaseElement
-
findByFPath
- Specified by:
findByFPath
in interfaceIBaseElement
-
isDisposed
public boolean isDisposed()- Specified by:
isDisposed
in interfaceIBaseElement
-
addLink
- Specified by:
addLink
in interfaceIBaseElement
-
getLinkedElementIds
- Specified by:
getLinkedElementIds
in interfaceIBaseElement
-
find
- Specified by:
find
in interfaceIBaseElement
-
clone
- Specified by:
clone
in interfaceIBaseElement
-