Class TagPathUtils
java.lang.Object
com.inductiveautomation.ignition.common.TagPathUtils
Created by colby.clegg on 7/14/2015.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TagPath
Deprecated.Deprecated.static ArrayIndex
getArrayIndex
(TagPath path) Returns the array index contained in the tag, or null if it's not an array path.static TagPath
getArrayPath
(TagPath tagPath, ArrayIndex arrayIndex) Given a path and an ArrayIndex, returns a version that contains the array's row index appended to the end.static TagPath
getNonArrayPath
(TagPath path) Deprecated.use getNonSubIndexPath going forward.static TagPath
getNonSubIndexPath
(TagPath path) getSubIndex
(TagPath path) static TagPath
getSubIndexPath
(TagPath tagPath, SubIndex subIndex) protected static String
getSubIndexString
(TagPath path) static boolean
isArrayPath
(TagPath path) Returns whether the tag path is sub indexed into an array.
Important: The broader concept of "SubIndex" was introduced in 8.1.static boolean
isSubIndexPath
(TagPath path) static boolean
isValueOrNullProp
(TagPath path) static boolean
isWildcardPath
(TagPath path) static String
sanitizeName
(String tagName) This function removes any characters from a tag name that might cause problems as part of a full path.static TagPath
upgradeToList
(Collection<TagPath> paths) static Property<?>
valuePropIfNull
(TagPath path)
-
Constructor Details
-
TagPathUtils
public TagPathUtils()
-
-
Method Details
-
downgrade
Deprecated. -
downgrade
Deprecated. -
upgrade
-
upgrade
-
upgradeToList
-
upgrade
-
getNonArrayPath
Deprecated.use getNonSubIndexPath going forward.Given a path, returns a version that does not include array subset information. Works fine if the source path is not an array path to begin with. -
getNonSubIndexPath
-
getArrayPath
Given a path and an ArrayIndex, returns a version that contains the array's row index appended to the end. Returns an unchanged path if the path already contains an array index, or the array's row index is not set. -
getSubIndexPath
-
isArrayPath
Returns whether the tag path is sub indexed into an array.
Important: The broader concept of "SubIndex" was introduced in 8.1. In most cases, those functions should be used (isSubIndexPath, getSubIndex), as they will be more flexible. Some areas of the code specifically want to only deal with ArrayIndex, so these still exist, and have been updated to ONLY support array indexes. -
getSubIndexString
-
isSubIndexPath
-
getArrayIndex
Returns the array index contained in the tag, or null if it's not an array path. -
getSubIndex
- Throws:
IllegalArgumentException
-
isWildcardPath
-
sanitizeName
This function removes any characters from a tag name that might cause problems as part of a full path. -
isValueOrNullProp
-
valuePropIfNull
-