public class MapPathSpecifier
extends java.lang.Object
Constructor and Description |
---|
MapPathSpecifier()
Constructor for an empty MapPathSpecifier object.
|
MapPathSpecifier(MapAttribute startAttr)
A constructor for a path specifier that takes a starting attribute for the path.
|
MapPathSpecifier(oracle.odi.domain.mapping.MapComponent startComponent)
Constructor for path specifier that specifies a starting component for the path.
|
MapPathSpecifier(MapConnectorPoint point)
Constructor for a MapPathSpecifier object, that specifies the starting connector point for the path.
|
MapPathSpecifier(MapPathSpecifier pathSpec) |
Modifier and Type | Method and Description |
---|---|
void |
addPoint(MapConnectorPoint point)
Add a point to the path.
|
boolean |
containsPoint(MapConnectorPoint point)
Return true if this path spec contains the specified point.
|
boolean |
equals(java.lang.Object otherObj) |
MapConnectorPoint |
getComponentInputPointOnPath(IMapComponent comp)
If the full path contains an input point that is owned by the specified component, return it, else return null.
|
MapConnectorPoint |
getDownstreamCP(MapConnectorPoint sourceCP)
Return the target connector point on this path, given the specified source connector point.
|
MapConnectorPoint |
getFinalInputPoint()
If the last point in the path point list is an input point, return it, else null.
|
MapConnectorPoint |
getFirstPathPoint()
Get the first point in the path point list.
|
MapConnectorPoint |
getLastPathOutputPoint()
Get the last point in the path point list that is an output point.
|
MapConnectorPoint |
getLastPathPoint()
Get the most downstream path point in the path.
|
static MapPathSpecifier |
getMatchingPath(java.util.List fullPathList,
MapPathSpecifier path)
Return a matching path if one exists in the specified set of paths.
|
static MapPathSpecifier |
getMatchingPath(java.util.List fullPathList,
MapPathSpecifier path,
boolean exactMatchRequired)
Return a matching path if one exists in the specified set of paths.
|
java.util.List |
getMinimizedPath()
Get a minimized set of path points that specify this path with no ambiguity.
|
java.util.List |
getMinimizedPath(boolean isFullyConnected)
Get a minimized set of path points, that specify the path with no ambiguity.
|
java.util.List |
getMinimizedPath(boolean isFullyConnected,
boolean splitMergeInputsOnly)
Get a minimized set of path points that specify this path with no ambiguity.
|
java.lang.String |
getMinimizedPathString()
Get a displayable, minimized string representation of the path.
|
java.lang.String |
getMinimizedPathString(boolean isFullyConnected)
Get a displayable, minimized string representation of the path.
|
java.util.List |
getPath()
Get the list of path points that are stored by this path specifier.
|
int |
getPathCount()
Get the number of points in the stored path point list for this path specifier.
|
int |
getPathLength()
Get the number of points in the stored path point list for this path specifier.
|
MapPathSpecifier |
getPathPortion(MapConnectorPoint newEndPoint,
boolean includeEndPoint)
Return a new path specifier that represents just the portion of this path specifier that
is upstream of the specified point.
|
java.lang.String |
getPathString(boolean fullPath)
Get a string representation of this path, that contains all specified path information, including CP names.
|
MapConnectorPoint |
getPoint(int index)
Return the point on the stored path point list corresponding to the specified index.
|
java.lang.String |
getSimplifiedPathString()
Get a displayable string representation of this path.
|
MapConnectorPoint |
getSource()
Get the first source connector point for this path.
|
MapAttribute |
getStartAttribute()
Get the starting attribute for this path, or null if none is defined.
|
IMapComponent |
getStartComponent()
Get the starting component for this path, or null if none is defined.
|
java.lang.String |
getStartingPointName()
Return the name of the source connector point or new connector point name.
|
int |
hashCode() |
int |
indexOfPoint(MapConnectorPoint point)
Get the index of the specified point in this path specifier.
|
void |
insertPointAtStart(MapConnectorPoint point)
Insert a new path point at the start of the stored path point list for this path specifier.
|
boolean |
isAttributePath()
If true, then this path specifies a starting attribute.
|
static boolean |
isCommonSourcePointFound(MapConnectorPoint point1,
MapConnectorPoint point2,
MapPathSpecifier path)
Return true if the 2 points have a common in-scope projector source and common point is in path.
|
boolean |
isEmptyPath() |
boolean |
isMatchingPath(MapPathSpecifier otherPath)
Return true if this path matches the specified path.
|
boolean |
isMatchingPath(MapPathSpecifier otherPath,
boolean exactMatchRequired)
Return true if this path matches the specified path.
|
boolean |
isPointOnPath(MapConnectorPoint point)
Return true if the specified point is on the path specified by this object.
|
boolean |
isSinglePointSpecifier()
Return true if this path specifier specifies a single point, with no connection.
|
static boolean |
isSplitMergeInputPoint(MapConnectorPoint inputPoint) |
static boolean |
isSplitMergeInputPoint(MapConnectorPoint inputPoint,
MapPathSpecifier path) |
void |
setPathList(java.util.List pathList) |
void |
setStartAttribute(MapAttribute startAttr)
Set the start attribute for this path specifier.
|
void |
terminatePathAt(MapConnectorPoint point)
Terminate this path at the specified point.
|
java.lang.String |
toString()
Get a displayable string representation of this path.
|
public MapPathSpecifier(MapConnectorPoint point)
point
- The starting point of the path.public MapPathSpecifier()
public MapPathSpecifier(MapAttribute startAttr)
startAttr
- The starting attribute for the path specifier.public MapPathSpecifier(oracle.odi.domain.mapping.MapComponent startComponent)
startComponent
- The start component for the path specifier.public MapPathSpecifier(MapPathSpecifier pathSpec)
public boolean isSinglePointSpecifier()
public boolean isAttributePath()
public void setStartAttribute(MapAttribute startAttr)
public MapAttribute getStartAttribute()
public IMapComponent getStartComponent()
public void addPoint(MapConnectorPoint point)
point
- The point to add.public void setPathList(java.util.List pathList)
public void insertPointAtStart(MapConnectorPoint point)
point
- The point to insert at the start of the path point list.public java.util.List getPath()
public int getPathLength()
public MapConnectorPoint getSource()
public MapConnectorPoint getPoint(int index)
index
- public MapConnectorPoint getLastPathPoint()
public MapConnectorPoint getLastPathOutputPoint()
public MapConnectorPoint getFinalInputPoint()
public MapConnectorPoint getComponentInputPointOnPath(IMapComponent comp) throws MappingException
comp
- The component for which to find an input point on this path.MappingException
public java.lang.String getStartingPointName()
public MapConnectorPoint getFirstPathPoint()
public boolean containsPoint(MapConnectorPoint point)
public boolean isPointOnPath(MapConnectorPoint point) throws MappingException
MappingException
public int indexOfPoint(MapConnectorPoint point)
public int getPathCount()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getSimplifiedPathString()
public java.lang.String getPathString(boolean fullPath)
fullPath
- If true, include all intermediate points in the path, even if they are not explicitly
specified.public java.util.List getMinimizedPath() throws MappingException
oracle.odi.domain.mapping.exception.MapComponentException
MappingException
public java.util.List getMinimizedPath(boolean isFullyConnected) throws MappingException
isFullyConnected
- If true, the map has been fully connected. If false, the map is being constructed
and the path may specify a potential to-be-connected path.oracle.odi.domain.mapping.exception.MapComponentException
MappingException
public java.util.List getMinimizedPath(boolean isFullyConnected, boolean splitMergeInputsOnly) throws MappingException
isFullyConnected
- If true, the map has been fully connected. If false, the map is being constructed
and the path may specify a potential to-be-connected path.splitMergeInputsOnly
- If true, return only the list of critical split merge input points.oracle.odi.domain.mapping.exception.MapComponentException
MappingException
public static boolean isSplitMergeInputPoint(MapConnectorPoint inputPoint) throws AdapterException, MappingException
AdapterException
MappingException
public static boolean isSplitMergeInputPoint(MapConnectorPoint inputPoint, MapPathSpecifier path) throws AdapterException, MappingException
AdapterException
MappingException
public static boolean isCommonSourcePointFound(MapConnectorPoint point1, MapConnectorPoint point2, MapPathSpecifier path) throws AdapterException, MappingException
point1
- point2
- path
- MappingException
AdapterException
public java.lang.String getMinimizedPathString()
MappingException
oracle.odi.domain.mapping.exception.MapComponentException
public java.lang.String getMinimizedPathString(boolean isFullyConnected)
isFullyConnected
- If true, the map has been fully connected. If false, the map is being constructed
and the path may specify a potential to-be-connected path.MappingException
oracle.odi.domain.mapping.exception.MapComponentException
public boolean isMatchingPath(MapPathSpecifier otherPath) throws MappingException
MappingException
public boolean isMatchingPath(MapPathSpecifier otherPath, boolean exactMatchRequired) throws MappingException
exactMatchRequired
- If true, then the path targets must match, as well as all the split merge points.MappingException
public boolean isEmptyPath()
public static MapPathSpecifier getMatchingPath(java.util.List fullPathList, MapPathSpecifier path) throws MappingException
fullPathList
- The full path list in which to check for a matching path.path
- The path to check for.MappingException
public static MapPathSpecifier getMatchingPath(java.util.List fullPathList, MapPathSpecifier path, boolean exactMatchRequired) throws MappingException
fullPathList
- The full path list in which to check for a matching path.path
- The path to check for.exactMatchRequired
- If true, then the path targets must match as well as all the split merge points.MappingException
public void terminatePathAt(MapConnectorPoint point) throws MappingException
point
- MappingException
public boolean equals(java.lang.Object otherObj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public MapConnectorPoint getDownstreamCP(MapConnectorPoint sourceCP) throws MappingException
sourceCP
- MappingException
public MapPathSpecifier getPathPortion(MapConnectorPoint newEndPoint, boolean includeEndPoint) throws MappingException
newEndPoint
- The end point of the new path specifier.includeEndPoint
- If true, include the specified new end point as the end point of the new path. Else do not include it.oracle.odi.domain.mapping.exception.MapComponentException
MappingException