Package org.ehrbase.aql.containment
Class IdentifierMapper
- java.lang.Object
-
- org.ehrbase.aql.containment.IdentifierMapper
-
public class IdentifierMapper extends Object
Map identifiers in an AQL expression with their container and query strategy.The query strategy specifies whether an identifier is associated to an ARCHETYPED structure or is bound to "static" data (such as a composition composer)
Created by christian on 4/12/2016.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classIdentifierMapper.Mapper
-
Field Summary
Fields Modifier and Type Field Description static StringCOMPOSITIONstatic StringSYMBOL_ALREADY_EXISTS
-
Constructor Summary
Constructors Constructor Description IdentifierMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Object definition)Stringdump()StringgetArchetypeId(String symbol)StringgetClassName(String symbol)ObjectgetContainer(String symbol)FromEhrDefinition.EhrPredicategetEhrContainer()Set<String>getPath(String template, String symbol)ClassgetQueryStrategy(String symbol)ContainmentgetRootContainment()booleanhasEhrContainer()booleanhasPathExpression()Set<String>identifiers()booleanrequiresTemplateWhereClause()voidsetPath(String template, String symbol, Set<String> path)voidsetQueryStrategy(String symbol, Class queryImplementation)
-
-
-
Field Detail
-
SYMBOL_ALREADY_EXISTS
public static final String SYMBOL_ALREADY_EXISTS
- See Also:
- Constant Field Values
-
COMPOSITION
public static final String COMPOSITION
- See Also:
- Constant Field Values
-
-
Method Detail
-
add
public void add(Object definition)
-
getRootContainment
public Containment getRootContainment()
-
getEhrContainer
public FromEhrDefinition.EhrPredicate getEhrContainer()
-
hasPathExpression
public boolean hasPathExpression()
-
hasEhrContainer
public boolean hasEhrContainer()
-
dump
public String dump()
-
requiresTemplateWhereClause
public boolean requiresTemplateWhereClause()
-
-