Search in sources :

Example 6 with org.openxmlformats.schemas.spreadsheetml.x2006.main

use of org.openxmlformats.schemas.spreadsheetml.x2006.main in project poi by apache.

the class XSSFDataValidation method getConstraint.

private static XSSFDataValidationConstraint getConstraint(CTDataValidation ctDataValidation) {
    String formula1 = ctDataValidation.getFormula1();
    String formula2 = ctDataValidation.getFormula2();
    Enum operator = ctDataValidation.getOperator();
    org.openxmlformats.schemas.spreadsheetml.x2006.main.STDataValidationType.Enum type = ctDataValidation.getType();
    Integer validationType = XSSFDataValidation.validationTypeReverseMappings.get(type);
    Integer operatorType = XSSFDataValidation.operatorTypeReverseMappings.get(operator);
    return new XSSFDataValidationConstraint(validationType, operatorType, formula1, formula2);
}
Also used : Enum(org.openxmlformats.schemas.spreadsheetml.x2006.main.STDataValidationOperator.Enum) STDataValidationType(org.openxmlformats.schemas.spreadsheetml.x2006.main.STDataValidationType)

Example 7 with org.openxmlformats.schemas.spreadsheetml.x2006.main

use of org.openxmlformats.schemas.spreadsheetml.x2006.main in project universa by UniversaBlockchain.

the class CLIMainTest method createLocalNetwork.

public static void createLocalNetwork() throws Exception {
    for (int i = 0; i < 3; i++) localNodes.add(createMain("node" + (i + 1), false));
    Main main = localNodes.get(0);
    assertEquals("http://localhost:8080", main.myInfo.internalUrlString());
    assertEquals("http://localhost:8080", main.myInfo.publicUrlString());
    assertEquals(main.cache, main.node.getCache());
}
Also used : Main(com.icodici.universa.node2.Main)

Aggregations

Main (com.icodici.universa.node2.Main)2 AreaReference (org.apache.poi.ss.util.AreaReference)2 CellReference (org.apache.poi.ss.util.CellReference)2 XSSFWorkbook (org.apache.poi.xssf.usermodel.XSSFWorkbook)2 java.io (java.io)1 File (java.io.File)1 FileInputStream (java.io.FileInputStream)1 FileOutputStream (java.io.FileOutputStream)1 InputStream (java.io.InputStream)1 ArrayList (java.util.ArrayList)1 org.apache.poi.ss.usermodel (org.apache.poi.ss.usermodel)1 Workbook (org.apache.poi.ss.usermodel.Workbook)1 CellRangeAddress (org.apache.poi.ss.util.CellRangeAddress)1 ReadOnlySharedStringsTable (org.apache.poi.xssf.eventusermodel.ReadOnlySharedStringsTable)1 XSSFSheetXMLHandler (org.apache.poi.xssf.eventusermodel.XSSFSheetXMLHandler)1 SXSSFWorkbook (org.apache.poi.xssf.streaming.SXSSFWorkbook)1 org.apache.poi.xssf.usermodel (org.apache.poi.xssf.usermodel)1 XSSFCell (org.apache.poi.xssf.usermodel.XSSFCell)1 XSSFRow (org.apache.poi.xssf.usermodel.XSSFRow)1 XSSFSheet (org.apache.poi.xssf.usermodel.XSSFSheet)1