@Test public void testConvertFlat01Invalid() { try { Cob2ObjectVisitor visitor = new Cob2ObjectVisitor( cobolContext, HexUtils.decodeHex("ABF0F1F0F4F3D5C1D4C5F0F0F0F0F4F3404040404040404040400215000F")); visitor.visit(new CobolFlat01Record()); fail(); } catch (FromCobolException e) { assertEquals( "Second nibble is not a digit." + " Error at offset 0 : [0xABF0F1F0F4F3<-D5C1D4C5F0F0F0F0F4F3404040404040]." + " COBOL variable path: FLAT01-RECORD/COM-NUMBER." + " COBOL type: CobolZonedDecimalType", e.getMessage()); } }
public void visit(CobolComplexType type) { final Map < String, Object > map = new LinkedHashMap < String, Object >(); super.visitComplexType(type, new ObjectComplexTypeChildHandler(map)); resultObject = map; }
Cob2ObjectVisitor extends FromCobolVisitor { public void visit(CobolComplexType type) { final Map < String, Object > map = new LinkedHashMap < String, Object >(); super.visitComplexType(type, new ObjectComplexTypeChildHandler(map)); resultObject = map; } }
Cob2ObjectVisitor extends FromCobolVisitor { public void visit(CobolComplexType type) { final Map < String, Object > map = new LinkedHashMap < String, Object >(); super.visitComplexType(type, new ObjectComplexTypeChildHandler(map)); resultObject = map; } Cob2ObjectVisitor(CobolContext cobolContext, byte[] hostData);  Cob2ObjectVisitor(CobolContext cobolContext, byte[] hostData,
            int start, int length);  Cob2ObjectVisitor(CobolContext cobolContext, byte[] hostData,
            int start, int length, FromCobolChoiceStrategy customChoiceStrategy);  Cob2ObjectVisitor(CobolContext cobolContext, byte[] hostData,
            int start, int length,
            FromCobolChoiceStrategy customChoiceStrategy,
            Set < String > customVariables); }
Cob2ObjectVisitor extends FromCobolVisitor { public void visit(CobolComplexType type) { final Map < String, Object > map = new LinkedHashMap < String, Object >(); super.visitComplexType(type, new ObjectComplexTypeChildHandler(map)); resultObject = map; } Cob2ObjectVisitor(CobolContext cobolContext, byte[] hostData);  Cob2ObjectVisitor(CobolContext cobolContext, byte[] hostData,
            int start, int length);  Cob2ObjectVisitor(CobolContext cobolContext, byte[] hostData,
            int start, int length, FromCobolChoiceStrategy customChoiceStrategy);  Cob2ObjectVisitor(CobolContext cobolContext, byte[] hostData,
            int start, int length,
            FromCobolChoiceStrategy customChoiceStrategy,
            Set < String > customVariables); void visit(CobolComplexType type); void visit(CobolArrayType type); void visit(CobolChoiceType type); void visit(CobolPrimitiveType < ? > type); Object getResultObject(); }
Cob2ObjectVisitor extends FromCobolVisitor { public void visit(CobolComplexType type) { final Map < String, Object > map = new LinkedHashMap < String, Object >(); super.visitComplexType(type, new ObjectComplexTypeChildHandler(map)); resultObject = map; } Cob2ObjectVisitor(CobolContext cobolContext, byte[] hostData);  Cob2ObjectVisitor(CobolContext cobolContext, byte[] hostData,
            int start, int length);  Cob2ObjectVisitor(CobolContext cobolContext, byte[] hostData,
            int start, int length, FromCobolChoiceStrategy customChoiceStrategy);  Cob2ObjectVisitor(CobolContext cobolContext, byte[] hostData,
            int start, int length,
            FromCobolChoiceStrategy customChoiceStrategy,
            Set < String > customVariables); void visit(CobolComplexType type); void visit(CobolArrayType type); void visit(CobolChoiceType type); void visit(CobolPrimitiveType < ? > type); Object getResultObject();  }