Package org.yamcs.xtce.util
Class ReferenceFinder
- java.lang.Object
-
- org.yamcs.xtce.util.ReferenceFinder
-
public class ReferenceFinder extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReferenceFinder.FoundReference
-
Constructor Summary
Constructors Constructor Description ReferenceFinder(Consumer<String> logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferenceFinder.FoundReferencefindAliasReference(SpaceSystem rootSs, NameReference nr, SpaceSystem startSs)searches for aliases in the parent hierarchyReferenceFinder.FoundReferencefindReference(SpaceSystem rootSs, NameReference nr, SpaceSystem ss)find the reference nr mentioned in the space system ss by looking either in root (if absolute reference) or in the parent hierarchy if relative referencestatic intfindSeparator(String s)static PathElement[]parseReference(String name)static booleanverifyPath(ParameterType parameterType, PathElement[] path)
-
-
-
Method Detail
-
findReference
public ReferenceFinder.FoundReference findReference(SpaceSystem rootSs, NameReference nr, SpaceSystem ss)
find the reference nr mentioned in the space system ss by looking either in root (if absolute reference) or in the parent hierarchy if relative reference- Parameters:
rootSs-nr-ss-- Returns:
-
findAliasReference
public ReferenceFinder.FoundReference findAliasReference(SpaceSystem rootSs, NameReference nr, SpaceSystem startSs)
searches for aliases in the parent hierarchy- Parameters:
rootSs-nr-startSs-- Returns:
-
parseReference
public static PathElement[] parseReference(String name)
-
verifyPath
public static boolean verifyPath(ParameterType parameterType, PathElement[] path)
-
findSeparator
public static int findSeparator(String s)
-
-