java.lang.Object | |
↳ | com.microstrategy.web.app.maps.ShapeHierarchy |
The shape hierarchy class parses the hierarchy info file and generate two map objects (child to parent and parent to child relationship). The hierarchy info is cached as well.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | ShapeHierarchy.HierarchyStructure | A inner class used to store the child:parent relationship objects |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ShapeHierarchy(String pathFolder)
Class Constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Set<String> |
getChildParentKeys()
Get all the shape Ids inside the hierarchy structure.
| ||||||||||
List<String> |
getChildParentPairForType(String type)
Get all the childShapeId:parentShapeId values for a given childShapeType:parentShapeType key.
| ||||||||||
Set<String> |
getChildren(String parentId, String type)
Get all the children of a shapeId with a specific shapeType
| ||||||||||
Set<String> |
getParents(String childId, String type)
Get all the parents of a shapeId with a specific shapeType
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static ShapeHierarchy.HierarchyStructure |
parseShapeHierachy(String filePath)
Read the shape hierarchy files from given path and build a
ShapeHierarchy.HierarchyStructure object and caches it. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Class Constructor
pathFolder | The folder path to the hierarchy files |
---|
Get all the shape Ids inside the hierarchy structure.
Get all the childShapeId:parentShapeId values for a given childShapeType:parentShapeType key.
type | The key in the childShapeType:parentShapeType format. |
---|
Get all the children of a shapeId with a specific shapeType
type | The shape type |
---|
Get all the parents of a shapeId with a specific shapeType
childId | The shape id |
---|---|
type | The shape type |
Read the shape hierarchy files from given path and build a ShapeHierarchy.HierarchyStructure
object and caches it.
filePath | The path to the shape hierarchy files. |
---|
ShapeHierarchy.HierarchyStructure
object.