Package org.yamcs.xtce.util
Class AggregateTypeUtil
- java.lang.Object
-
- org.yamcs.xtce.util.AggregateTypeUtil
-
public class AggregateTypeUtil extends Object
operations to aggregates or arrays
-
-
Constructor Summary
Constructors Constructor Description AggregateTypeUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intfindSeparator(String s)finds the first occurrence of . or [ after the last /static ParameterTypegetMemberType(ParameterType parameterType, PathElement[] path)static PathElement[]parseReference(String name)parses a reference of shapestatic StringtoString(PathElement[] path)static booleanverifyPath(ParameterType parameterType, PathElement[] path)Verify that the path exists in the parameter type
-
-
-
Method Detail
-
findSeparator
public static int findSeparator(String s)
finds the first occurrence of . or [ after the last /- Parameters:
s-- Returns:
- the position of the first occurrence of . or [ after the last slash; returns -1 if not found
-
parseReference
public static PathElement[] parseReference(String name)
parses a reference of shapex.y[3][4].z
into an array of PathElement- Parameters:
name-- Returns:
-
verifyPath
public static boolean verifyPath(ParameterType parameterType, PathElement[] path)
Verify that the path exists in the parameter type- Parameters:
parameterType-path-- Returns:
-
getMemberType
public static ParameterType getMemberType(ParameterType parameterType, PathElement[] path)
-
toString
public static String toString(PathElement[] path)
-
-