@groovy.transform.CompileStatic class RpmVisualizerRelInfo extends VisualizerRelInfo
Provides information to visualize a source rpm class, a target rpm class and their relationship.
Modifiers | Name | Description |
---|---|---|
protected RpmVisualizerHelper |
helper |
|
protected java.lang.String |
sourceFieldRpmType |
|
protected java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.Object>> |
sourceTraits |
|
protected java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.Object>> |
targetTraits |
Fields inherited from class | Fields |
---|---|
class VisualizerRelInfo |
appId, availableScopeValues, availableTargetScope, cellInfo, cubeLoaded, loadAgain, nodeDetailsMessages, nodeLabelPrefix, runtimeClient, scopeCubeNames, showCellValues, showCellValuesLink, showingHidingCellValues, sourceCube, sourceFieldName, sourceId, sourceScope, sourceTrail, targetCube, targetId, targetLevel, targetScope, typesToAdd |
Type | Name and description |
---|---|
static com.cedarsoftware.util.SafeSimpleDateFormat |
DATE_TIME_FORMAT |
Constructor and description |
---|
protected RpmVisualizerRelInfo
() |
protected RpmVisualizerRelInfo
(NCubeRuntimeClient runtimeClient, ApplicationID appId) |
Type Params | Return Type | Name and description |
---|---|---|
|
private void |
addBackToAvailableTargetScope(VisualizerInfo visInfo) |
|
private void |
addClassTraits(java.lang.StringBuilder sb) |
|
private void |
addFieldDetails(java.lang.StringBuilder sb) |
|
private void |
addScopeDefault(java.util.Map<java.lang.String, java.lang.Object> scopeDefaults, java.lang.String scopeKey, java.lang.Object value) |
|
private void |
addTraits(java.lang.StringBuilder sb, java.lang.String fieldName) |
|
private boolean |
canLoadTarget() |
|
protected java.util.Map<java.lang.String, java.lang.Object> |
createEdge(java.lang.Long edgeId) |
|
protected java.util.Map<java.lang.String, java.lang.Object> |
createNode(VisualizerInfo visInfo, java.lang.String group = null) |
|
private static void |
cullScope(java.util.Set<java.lang.String> scopeKeys, java.util.Set scopeCollector) |
|
private java.lang.String |
getCannotLoadTargetMessage(java.lang.String type) |
|
protected java.lang.String |
getCubeDetailsTitle1() |
|
protected java.lang.String |
getCubeDetailsTitle2(java.lang.String label) |
|
protected java.lang.String |
getCubeDisplayName(java.lang.String cubeName) |
|
protected java.lang.String |
getDetails(VisualizerInfo visInfo) |
|
protected java.lang.String |
getGroupName(VisualizerInfo visInfo, java.lang.String cubeName = targetCube.name) |
|
protected java.lang.String |
getLabel(java.lang.String cubeName) |
|
protected java.lang.String |
getNextTargetCubeName(java.lang.String targetFieldName) |
|
protected java.util.Set<java.lang.String> |
getRequiredScope() |
|
protected java.lang.String |
getSourceDescription() |
|
private java.lang.String |
getTargetScopedName() |
|
private void |
handleCoordinateNotFoundException(CoordinateNotFoundException e, VisualizerInfo visInfo) |
|
private void |
handleException(java.lang.Throwable e, VisualizerInfo visInfo) |
|
private void |
handleInvalidCoordinateException(InvalidCoordinateException e, VisualizerInfo visInfo) |
|
private void |
handleUnboundScope(VisualizerInfo visInfo, RuleInfo ruleInfo) |
|
private static boolean |
hasScopedNameTrait(NCube cube) |
|
protected java.lang.Object |
initSelectedNode(VisualizerInfo visInfo, java.util.Map selectedNode) |
|
protected boolean |
isDerivedScopeKey(VisualizerInfo visInfo, java.lang.String scopeKey) |
|
protected boolean |
loadCube(VisualizerInfo visInfo, java.util.Map output = new CaseInsensitiveMap() Loads fields and traits on the class into the targetTraits map. |
|
protected void |
populateScopeDefaults(VisualizerInfo visInfo) |
|
protected void |
populateScopeRelativeToSource(java.lang.String sourceFieldRpmType, java.lang.String targetFieldName, java.util.Map scope) Sets the basic nodeScope required to load a target class based on scoped source class, source field name, target class name, and current nodeScope. |
|
private void |
removeNotExistsFields() |
|
protected void |
setLoadAgain(VisualizerInfo visInfo, java.lang.String scopeKey) |
|
private void |
setTargetScope(VisualizerInfo visInfo, java.util.Map output) |
Methods inherited from class | Name |
---|---|
class VisualizerRelInfo |
addAvailableValues, addCellValueSection, addCubeNames, addCubeNamesList, addNodeScope, addRequiredScopeKeys, createEdge, createNode, createNodeDetailsScopeMessage, getAllColumnValues, getCellValues, getClassForValue, getColumnValues, getCubeDetailsTitle1, getCubeDetailsTitle2, getCubeDisplayName, getCubeNamesTitle, getDetails, getDetailsMap, getDetailsSet, getDotPrefix, getDotSuffix, getGroupName, getLabel, getNodeDetailsMessageSet, getNodeScopeMessage, getRequiredScope, getScopeMessage, getSourceDescription, getValue, init, initSelectedNode, isDerivedScopeKey, loadCube, populateScopeDefaults, setLoadAgain |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Loads fields and traits on the class into the targetTraits map. If the current node is the selected node and an invalid, missing or unbound scope key is encountered, checks if the inputScope contains the key. If yes, loads again using the key provided in inputScope.
Sets the basic nodeScope required to load a target class based on scoped source class, source field name, target class name, and current nodeScope. Retains all other nodeScope.
targetCube
- String target cubesourceFieldRpmType
- String source field typesourceFieldName
- String source field namescope
- MapGroovy Documentation