Package com.ptc.windchill.baseserver
Interface BasePath
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
AssociativePath
- All Known Implementing Classes:
com.ptc.windchill.associativity.AbstractAssociativePath,com.ptc.windchill.baseserver.AbstractBasePath,PartAssociativePath
A run time representation of a path. It follows the
Supported API: true
Extendable: false
PartPathOccurrence model to represent path as recursive
model, but stores more information in terms of references to the Part, usage, occurrence (optional). This is used in
services around associative structure transformationSupported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionReturns all the masters in the path in no order
Supported API: trueReturns list of persistables from leaf to root in order of associative - occ (optional, only if not null) - usage - associative ...REturns all the elements in the path as a set.getChild()The child of theinvalid reference
usage
Supported API: true
getNumberPath(boolean isRootToLeaf) Returns part number from root to leaf separated by '|' Example: for associative path [WC000123; usage_link] -> WC000457 it returns WC000457|WC000123
Supported API: truegetRoot()Returns the absolute root in current path
Supported API: true
Returns theBasePathmodel containing information about parent child in the structure.Returns unique id path from root to leaf.getUsage()
-
Method Details
-
getNumberPath
Returns part number from root to leaf separated by '|' Example: for associative path [WC000123; usage_link] -> WC000457 it returns WC000457|WC000123
Supported API: true- Parameters:
isRootToLeaf-
-
getAllPathElements
List<Persistable> getAllPathElements()Returns list of persistables from leaf to root in order of associative - occ (optional, only if not null) - usage - associative ...
Supported API: true- Returns:
- list of persistables
-
getAllPathElementSet
Set<Persistable> getAllPathElementSet()REturns all the elements in the path as a set. So no order here. Used mainly for performance use cases where lookup within path is needed
Supported API: true- Returns:
-
getAllMasteredSet
Returns all the masters in the path in no order
Supported API: true- Returns:
-
getChild
Workable getChild()The child of theinvalid reference
usage
Supported API: true
- Returns:
- the
Workable
-
getUsage
UsageLink getUsage()- Returns:
- the
UsageLink
-
getSubPath
BasePath getSubPath()Returns theBasePathmodel containing information about parent child in the structure. In case the previous child doesn't exist i.e. we have aBasePathmodel for root then the method returnsnull.
Supported API: true
- Returns:
- the sub-path of the current path
-
getRoot
Workable getRoot()Returns the absolute root in current path
Supported API: true
- Returns:
- the root associative
-
getUniqueIdPath
String getUniqueIdPath()Returns unique id path from root to leaf. It returns occurrence id path for occurrence path and component id path for usage path. In case of mixed path it returns path with occurrence id and component id mix
Supported API: true- Returns:
-