gpt4 book ai didi

org.openl.rules.lang.xls.XlsNodeTypes.toString()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 06:43:05 29 4
gpt4 key购买 nike

本文整理了Java中org.openl.rules.lang.xls.XlsNodeTypes.toString()方法的一些代码示例,展示了XlsNodeTypes.toString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XlsNodeTypes.toString()方法的具体详情如下:
包路径:org.openl.rules.lang.xls.XlsNodeTypes
类名称:XlsNodeTypes
方法名:toString

XlsNodeTypes.toString介绍

暂无

代码示例

代码示例来源:origin: openl-tablets/openl-tablets

public WorkbookSyntaxNode(WorksheetSyntaxNode[] nodes,
    TableSyntaxNode[] mergedTableParts,
    XlsWorkbookSourceCodeModule module) {
  super(XlsNodeTypes.XLS_WORKBOOK.toString(), null, nodes, module);
  this.mergedTableParts = mergedTableParts;
}

代码示例来源:origin: openl-tablets/openl-tablets

public XlsModuleSyntaxNode(WorkbookSyntaxNode[] nodes,
    IOpenSourceCodeModule module,
    OpenlSyntaxNode openlNode,
    Collection<String> imports) {
  super(XlsNodeTypes.XLS_MODULE.toString(), null, nodes, module);
  this.openlNode = openlNode;
  this.imports.addAll(imports);
  this.libraries.addAll(libraries);
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio.java

public boolean isServiceTable() {
  String tableType = table.getType();
  if (XlsNodeTypes.XLS_ENVIRONMENT.toString().equals(tableType)
      || XlsNodeTypes.XLS_OTHER.toString().equals(tableType)
      || XlsNodeTypes.XLS_PROPERTIES.toString().equals(tableType)) {
    return true;
  }
  return false;
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio.java

/**
 * {@inheritDoc}
 */
@Override
public boolean isUnique(TableSyntaxNode tsn) {
  if (XlsNodeTypes.XLS_PROPERTIES.toString().equals(tsn.getType()) 
      || XlsNodeTypes.XLS_DATATYPE.toString().equals(tsn.getType())
      || XlsNodeTypes.XLS_ENVIRONMENT.toString().equals(tsn.getType())) {
    return true;
  }
  return false;
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio

/**
 * {@inheritDoc}
 */
@Override
public boolean isUnique(TableSyntaxNode tsn) {
  return XlsNodeTypes.XLS_PROPERTIES.toString().equals(tsn.getType())
      || XlsNodeTypes.XLS_DATATYPE.toString().equals(tsn.getType())
      || XlsNodeTypes.XLS_DATA.toString().equals(tsn.getType())
      || XlsNodeTypes.XLS_TEST_METHOD.toString().equals(tsn.getType())
      || XlsNodeTypes.XLS_ENVIRONMENT.toString().equals(tsn.getType())
      || XlsNodeTypes.XLS_OTHER.toString().equals(tsn.getType()) // These tables don't have versions and can't be grouped
      || tsn.getMember() == null; // When table contains syntax errors and can't be grouped with other tables.
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio

@Override
public boolean isBuilderApplicableForObject(TableSyntaxNode tableSyntaxNode) {
  if (XlsNodeTypes.XLS_PROPERTIES.toString().equals(tableSyntaxNode.getType())
      && ModulePropertiesTableNodeBuilder.isModulePropertyTable(tableSyntaxNode)) {
    //category tree builder skips module properties 
    return false;
  }
  return true;
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio.java

@Override
public boolean isBuilderApplicableForObject(TableSyntaxNode tableSyntaxNode) {
  if (XlsNodeTypes.XLS_PROPERTIES.toString().equals(tableSyntaxNode.getType()) && isCategoryPropertyTable(tableSyntaxNode)) {
    return true;
  }
  return false;
}

代码示例来源:origin: openl-tablets/openl-tablets

public int getNumberOfTables() {
  int count = 0;
  TableSyntaxNode[] tables = getTableSyntaxNodes();
  for (TableSyntaxNode table : tables) {
    if (!XlsNodeTypes.XLS_OTHER.toString().equals(table.getType())) {
      count++;
    }
  }
  return count;
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio

@Override
public boolean isBuilderApplicableForObject(TableSyntaxNode tableSyntaxNode) {
  if (XlsNodeTypes.XLS_PROPERTIES.toString().equals(tableSyntaxNode.getType()) && isModulePropertyTable(tableSyntaxNode)) {
    return true;
  }
  return false;
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio

public int getNumberOfTables() {
  int count = 0;
  TableSyntaxNode[] tables = getTableSyntaxNodes();
  for (TableSyntaxNode table : tables) {
    if (!XlsNodeTypes.XLS_OTHER.toString().equals(table.getType())) {
      count++;
    }
  }
  return count;
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio

@Override
public boolean isBuilderApplicableForObject(TableSyntaxNode tableSyntaxNode) {
  if (XlsNodeTypes.XLS_PROPERTIES.toString().equals(tableSyntaxNode.getType()) && isCategoryPropertyTable(tableSyntaxNode)) {
    return true;
  }
  return false;
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio.java

@Override
public boolean isBuilderApplicableForObject(TableSyntaxNode tableSyntaxNode) {
  if (XlsNodeTypes.XLS_PROPERTIES.toString().equals(tableSyntaxNode.getType())
      && ModulePropertiesTableNodeBuilder.isModulePropertyTable(tableSyntaxNode)) {
    //category tree builder skips module properties 
    return false;
  }
  return true;
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio.java

@Override
public boolean isBuilderApplicableForObject(TableSyntaxNode tableSyntaxNode) {
  if (XlsNodeTypes.XLS_PROPERTIES.toString().equals(tableSyntaxNode.getType()) && isModulePropertyTable(tableSyntaxNode)) {
    return true;
  }
  return false;
}

代码示例来源:origin: openl-tablets/openl-tablets

@Override
public boolean isBuilderApplicableForObject(TableSyntaxNode tableSyntaxNode) {
  if (XlsNodeTypes.XLS_PROPERTIES.toString().equals(tableSyntaxNode.getType())
      && ModulePropertiesTableNodeBuilder.isModulePropertyTable(tableSyntaxNode)) {
    //category tree builder skips module properties 
    return false;
  }
  return true;
}

代码示例来源:origin: openl-tablets/openl-tablets

@Override
public boolean isBuilderApplicableForObject(TableSyntaxNode tableSyntaxNode) {
  if (XlsNodeTypes.XLS_PROPERTIES.toString().equals(tableSyntaxNode.getType()) && isCategoryPropertyTable(tableSyntaxNode)) {
    return true;
  }
  return false;
}

代码示例来源:origin: openl-tablets/openl-tablets

@Override
public boolean isBuilderApplicableForObject(TableSyntaxNode tableSyntaxNode) {
  if (XlsNodeTypes.XLS_PROPERTIES.toString().equals(tableSyntaxNode.getType()) && isModulePropertyTable(tableSyntaxNode)) {
    return true;
  }
  return false;
}

代码示例来源:origin: org.openl/org.openl.conf.ant

public static boolean shouldBeGenerated(IOpenField field, String[] fieldToGenerate, boolean ignoreNonJavaTypes,
    boolean ignoreTestMethods) {
  if (ignoreTestMethods && field instanceof DataOpenField) {
    ITable table = ((DataOpenField) field).getTable();
    if (table != null && table.getTableSyntaxNode().getType().equals(XlsNodeTypes.XLS_TEST_METHOD.toString())) {
      return false;
    }
  }
  return shouldBeGenerated(field, fieldToGenerate, ignoreNonJavaTypes);
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio.java

public boolean isCopyable() {
  ProjectModel projectModel = WebStudioUtils.getProjectModel();
  return projectModel.isEditable() && !isServiceTable()  && !XlsNodeTypes.XLS_DATATYPE.toString().equals(table.getType()) 
    && !isDispatcherValidationNode();
}

代码示例来源:origin: org.openl.rules/org.openl.rules.webstudio.java

public TableSyntaxNode findAnyTableNodeByLocation(XlsUrlParser p1) {        
  TableSyntaxNode[] nodes = getTableSyntaxNodes();
  for (int i = 0; i < nodes.length; i++) {
    if (nodes[i].getType().equals(XlsNodeTypes.XLS_DT.toString())
        && XlsUrlUtils.intersectsByLocation(p1, nodes[i].getGridTable().getUri())) {
      return nodes[i];
    }
  }
  return null;
}

代码示例来源:origin: openl-tablets/openl-tablets

public TestSuiteMethod(IOpenMethod testedMethod, IOpenMethodHeader header, TestMethodBoundNode boundNode) {
  super(header, boundNode);
  db = boundNode.getDataBase();
  this.testedMethod = testedMethod;
  initProperties(getSyntaxNode().getTableProperties());
  runmethod = XlsNodeTypes.XLS_RUN_METHOD.toString().equals(getSyntaxNode().getType());
}

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com