Class AdaptedQualifiedPath
java.lang.Object
com.inductiveautomation.ignition.common.QualifiedPath
com.inductiveautomation.ignition.common.AdaptedQualifiedPath
- All Implemented Interfaces:
Path,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for AdaptedQualifiedPath.Nested classes/interfaces inherited from class com.inductiveautomation.ignition.common.QualifiedPath
QualifiedPath.Part, QualifiedPath.QualifiedPathSimpleTypeAdapter -
Field Summary
Fields inherited from class com.inductiveautomation.ignition.common.QualifiedPath
COMPONENTID_SEPERATOR, PART_SEPERATOR, parts, SUBPART_SEPERATORFields inherited from interface com.inductiveautomation.ignition.common.Path
SERIALIZATION_WHITELIST -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the deepest original path, unwrapping any nestedAdaptedQualifiedPathinstances.Gets the original, non-normalized path.booleanChecks if this path has been adapted (i.e., if it's different from the original path).static AdaptedQualifiedPath.BuilderCreates a builder for AdaptedQualifiedPath.static AdaptedQualifiedPathpair(QualifiedPath adaptedPath, QualifiedPath originalPath) Creates a new AdaptedQualifiedPath.static AdaptedQualifiedPathstatic AdaptedQualifiedPathMethods inherited from class com.inductiveautomation.ignition.common.QualifiedPath
equals, extend, extend, from, getFirstPathComponent, getFirstPathComponentId, getLastPathComponent, getLastPathComponentId, getParentPath, getPart, getPartsFor, getPathComponent, getPathComponent, getPathComponentOrElse, getPathLength, hasAnyPathComponent, hashCode, hasPathComponent, indexOf, insert, insertAfter, isAncestorOf, of, parseSubParts, prepend, remove, replace, strip, subpath, subpath, subpath, subpath, toString, toStringSimple
-
Method Details
-
pair
Creates a new AdaptedQualifiedPath.- Parameters:
adaptedPath- The adapted QualifiedPathoriginalPath- The original QualifiedPath- Returns:
- A new AdaptedQualifiedPath instance
- Throws:
IllegalStateException- if the originalPath chain exceedsMAX_NESTING_DEPTH
-
getOriginalPath
Gets the original, non-normalized path. This returns the immediate original path, which may itself be anAdaptedQualifiedPathif multiple normalizations occurred.- Returns:
- The original QualifiedPath (may be an AdaptedQualifiedPath if nested)
- See Also:
-
getDeepestOriginalPath
Gets the deepest original path, unwrapping any nestedAdaptedQualifiedPathinstances. This returns the true user-provided path before any normalization occurred.Use this method when you need the original path as the user specified it, regardless of how many normalization steps have been applied.
- Returns:
- The deepest original QualifiedPath (always a plain QualifiedPath, never an AdaptedQualifiedPath)
- Throws:
IllegalStateException- if nesting depth exceedsMAX_NESTING_DEPTH, indicating excessive nesting- See Also:
-
isAdaptedPath
public boolean isAdaptedPath()Checks if this path has been adapted (i.e., if it's different from the original path).- Returns:
- true if the path has been adapted, false otherwise
-
clone
- Overrides:
clonein classQualifiedPath
-
toStringFullSimple
-
toStringFull
-
newBuilder
Creates a builder for AdaptedQualifiedPath.- Returns:
- A new Builder instance
-
parse
- Throws:
IOException
-
parseSafe
-