Examples of VariableXPath


Examples of org.dbwiki.data.query.xpath.VariableXPath

  public VariableXPath getTargetPath(SchemaNode entity, VersionIndex versionIndex, Iterator<XAQLToken> pathTokens) throws org.dbwiki.exception.WikiException {

    String variableName = pathTokens.next().value();
   
    if (pathTokens.hasNext()) {
      return new VariableXPath(variableName, entity, new RelativeTargetPathGenerator().getTargetPath(entity, versionIndex, pathTokens));
    } else {
      return new VariableXPath(variableName, entity);
    }
  }
View Full Code Here

Examples of org.dbwiki.data.query.xpath.VariableXPath

    Vector<XAQLToken> fromClauseTokens = token.children();
    int iToken = 0;
   
      String variableName = fromClauseTokens.get(iToken++).value();
    QueryVariable rootParent = variables.get(fromClauseTokens.get(iToken).children().firstElement().value());
    VariableXPath variableTargetPath = new VariableTargetPathGenerator().getTargetPath(rootParent.targetEntity(), versionIndex, fromClauseTokens.get(iToken++).children().iterator());

      QueryVariable rootVariable = new QueryVariable(variableName, variableTargetPath);
      QueryVariableListing variableListing = new QueryVariableListing(rootVariable);
     
      while (iToken < fromClauseTokens.size()) {
View Full Code Here

Examples of org.dbwiki.data.query.xpath.VariableXPath

    String variableName = statementTokens.firstElement().children().firstElement().value();
    QueryVariable variable = variables.get(variableName);
    if (variable == null) {
      throw new WikiFatalException("Unknown variable $" + variableName);
    }
    VariableXPath targetPath = new VariableTargetPathGenerator().getTargetPath(variable.targetEntity(), versionIndex, statementTokens.firstElement().children().iterator());
   
    String label = null;
    if (statementTokens.size() > 1) {
      label = statementTokens.get(1).value();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.