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 hierarchystatic ReferenceFinder.FoundReferencefindArgumentReference(ArgumentReference argRef)static ReferenceFinder.FoundReferencefindParameterReference(SpaceSystem ss, String name)static ReferenceFinder.FoundReferencefindReference(SpaceSystem startSs, NameReference nr)find reference starting at startSs and looking through the SpaceSystem pathReferenceFinder.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(DataType dataType, 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- Returns:
- null if the reference has not been found
-
findAliasReference
public ReferenceFinder.FoundReference findAliasReference(SpaceSystem rootSs, NameReference nr, SpaceSystem startSs)
searches for aliases in the parent hierarchy- Parameters:
rootSs-nr-startSs-- Returns:
-
findReference
public static ReferenceFinder.FoundReference findReference(SpaceSystem startSs, NameReference nr)
find reference starting at startSs and looking through the SpaceSystem path- Parameters:
startSs-nr-- Returns:
-
findParameterReference
public static ReferenceFinder.FoundReference findParameterReference(SpaceSystem ss, String name)
-
findArgumentReference
public static ReferenceFinder.FoundReference findArgumentReference(ArgumentReference argRef)
-
parseReference
public static PathElement[] parseReference(String name)
-
verifyPath
public static boolean verifyPath(DataType dataType, PathElement[] path)
-
findSeparator
public static int findSeparator(String s)
-
-