Package org.yamcs.xtce
Class PathElement
java.lang.Object
org.yamcs.xtce.PathElement
- All Implemented Interfaces:
Serializable
Describes an element from an aggregate/array member access path For example, the third element from this path :
a/c[2]/d[0][5]/x
is:
name = "d"
index = [0, 5]
a/c[2]/d[0][5]/x
is:
name = "d"
index = [0, 5]
both name and index can be null
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathElement
fromString
(String s) Creates a path element from a string likeint[]
getIndex()
getName()
static String
pathToString
(PathElement[] path) Transforms the path into a string like
a/c[2]/d[0][5]/xtoString()
Encodes the path element into a string like
-
Constructor Details
-
PathElement
-
-
Method Details
-
toString
Encodes the path element into a string likename[idx_1][idx_2]..[idx_n]
-
fromString
Creates a path element from a string likename[idx_1][idx_2]..[idx_n]
-
getName
-
getIndex
public int[] getIndex() -
pathToString
Transforms the path into a string like
a/c[2]/d[0][5]/x- Parameters:
path
-- Returns:
-