Package com.ptc.core.percol
Class PersistedCollectionMemberGraphImpl.PersistedCollectionMemberNodeImpl
java.lang.Object
com.ptc.core.percol.PersistedCollectionMemberGraphImpl.PersistedCollectionMemberNodeImpl
- All Implemented Interfaces:
Serializable,PersistedCollectionMemberGraph.PersistedCollectionMemberNode
- Enclosing class:
- PersistedCollectionMemberGraphImpl
public static class PersistedCollectionMemberGraphImpl.PersistedCollectionMemberNodeImpl
extends Object
implements PersistedCollectionMemberGraph.PersistedCollectionMemberNode, Serializable
Graph node representing a single member of a persisted collection.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidClear the visited state of this member node.Get children of this member node.Get custom object for this member node.Get the filtered message.intGet the maximum depth level of this node in the graph (seeds are level 1).Return member reference of this node.Get parents of this member node.booleanReturn filtered out status.booleanGet the visited state of this member node.voidPrevent iterator methods from deflating the member reference of this node.setCustomObject(Object customObject) Set custom object for this member node.voidSet the visited state of this member node.
-
Method Details
-
getMemberRef
Return member reference of this node.
Supported API: true- Specified by:
getMemberRefin interfacePersistedCollectionMemberGraph.PersistedCollectionMemberNode- Returns:
- ObjectReference to PersistedCollectable member.
-
isFilteredOut
public boolean isFilteredOut()Return filtered out status.
Supported API: true- Specified by:
isFilteredOutin interfacePersistedCollectionMemberGraph.PersistedCollectionMemberNode- Returns:
- True if member is filtered out.
-
getFilteredMessage
Get the filtered message. This is the message displayed in the "Filtered" column of a customized package contents table view.
Supported API: true- Specified by:
getFilteredMessagein interfacePersistedCollectionMemberGraph.PersistedCollectionMemberNode- Returns:
- Filtered message, or null if no message.
-
getMaxLevel
public int getMaxLevel()Get the maximum depth level of this node in the graph (seeds are level 1). If member is collected from multiple parents then this value is maximum depth level from all parents.
Supported API: true- Specified by:
getMaxLevelin interfacePersistedCollectionMemberGraph.PersistedCollectionMemberNode- Returns:
- Maximum depth level (always >= 1).
-
getParentNodes
public Map<PersistedCollectionMemberGraph.PersistedCollectionMemberNode,Collection<String>> getParentNodes()Get parents of this member node.
Supported API: true- Specified by:
getParentNodesin interfacePersistedCollectionMemberGraph.PersistedCollectionMemberNode- Returns:
- Map of parent nodes to their relationship roles (null if no parent nodes).
-
getChildNodes
public Map<PersistedCollectionMemberGraph.PersistedCollectionMemberNode,Collection<String>> getChildNodes()Get children of this member node.
Supported API: true- Specified by:
getChildNodesin interfacePersistedCollectionMemberGraph.PersistedCollectionMemberNode- Returns:
- Map of child nodes to their relationship roles (null if no child nodes).
-
isVisited
public boolean isVisited()Get the visited state of this member node.
Supported API: true- Specified by:
isVisitedin interfacePersistedCollectionMemberGraph.PersistedCollectionMemberNode- Returns:
- True if the visited state of this node is set.
-
setVisited
public void setVisited()Set the visited state of this member node.
Supported API: true- Specified by:
setVisitedin interfacePersistedCollectionMemberGraph.PersistedCollectionMemberNode
-
clearVisited
public void clearVisited()Clear the visited state of this member node.
Supported API: true- Specified by:
clearVisitedin interfacePersistedCollectionMemberGraph.PersistedCollectionMemberNode
-
keepInflated
public void keepInflated()Prevent iterator methods from deflating the member reference of this node.
Supported API: true- Specified by:
keepInflatedin interfacePersistedCollectionMemberGraph.PersistedCollectionMemberNode
-
getCustomObject
Get custom object for this member node. Used to associated application specific data with the node.
Supported API: true- Specified by:
getCustomObjectin interfacePersistedCollectionMemberGraph.PersistedCollectionMemberNode- Returns:
- Custom object (null if none set prior to call).
-
setCustomObject
Set custom object for this member node. Used to associated application specific data with the node.
Supported API: true- Specified by:
setCustomObjectin interfacePersistedCollectionMemberGraph.PersistedCollectionMemberNode- Parameters:
customObject- Custom object to set on this node (may be null).- Returns:
- Old custom object being replaced (null if none set prior to call).
-