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);
}
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());
}
Aggregations