target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test public void convertToBoolean() { Boolean t = Boolean.TRUE; Boolean f = Boolean.FALSE; Boolean t2 = converter.toBoolean(t, null, null); Boolean f2 = converter.toBoolean(f, null, null); assertNotNull(t2); assertEquals(t2, t); assertTrue(t2); assertNotNull(f2); assertEquals(f2, f); assertFalse(f2); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BOOLEAN) public Boolean toBoolean(Boolean value, String sourceFormat, String targetFormat) { return value != null ? Boolean.valueOf(value) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BOOLEAN) public Boolean toBoolean(Boolean value, String sourceFormat, String targetFormat) { return value != null ? Boolean.valueOf(value) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BOOLEAN) public Boolean toBoolean(Boolean value, String sourceFormat, String targetFormat) { return value != null ? Boolean.valueOf(value) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BOOLEAN) public Boolean toBoolean(Boolean value, String sourceFormat, String targetFormat) { return value != null ? Boolean.valueOf(value) : null; } @AtlasConversionInfo(sourceType = FieldT...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BOOLEAN) public Boolean toBoolean(Boolean value, String sourceFormat, String targetFormat) { return value != null ? Boolean.valueOf(value) : null; } @AtlasConversionInfo(sourceType = FieldT...
@Test public void convertToBooleanNull() { Boolean t = null; Boolean t2 = converter.toBoolean(t, null, null); assertNull(t2); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BOOLEAN) public Boolean toBoolean(Boolean value, String sourceFormat, String targetFormat) { return value != null ? Boolean.valueOf(value) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BOOLEAN) public Boolean toBoolean(Boolean value, String sourceFormat, String targetFormat) { return value != null ? Boolean.valueOf(value) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BOOLEAN) public Boolean toBoolean(Boolean value, String sourceFormat, String targetFormat) { return value != null ? Boolean.valueOf(value) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BOOLEAN) public Boolean toBoolean(Boolean value, String sourceFormat, String targetFormat) { return value != null ? Boolean.valueOf(value) : null; } @AtlasConversionInfo(sourceType = FieldT...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BOOLEAN) public Boolean toBoolean(Boolean value, String sourceFormat, String targetFormat) { return value != null ? Boolean.valueOf(value) : null; } @AtlasConversionInfo(sourceType = FieldT...
@Test public void convertToByte() { Byte trueValue = (byte) 1; assertEquals(trueValue, converter.toByte(Boolean.TRUE)); Byte falseValue = (byte) 0; assertEquals(falseValue, converter.toByte(Boolean.FALSE)); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BYTE) public Byte toByte(Boolean value) { return value != null ? (byte) (value ? 1 : 0) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BYTE) public Byte toByte(Boolean value) { return value != null ? (byte) (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BYTE) public Byte toByte(Boolean value) { return value != null ? (byte) (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BYTE) public Byte toByte(Boolean value) { return value != null ? (byte) (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigDec...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BYTE) public Byte toByte(Boolean value) { return value != null ? (byte) (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigDec...
@Test public void testValidJsonData() { assertTrue(jsonService.validJsonData("{ \"foo\":\"bar\" }")); assertTrue(jsonService.validJsonData("[ { \"foo\":\"bar\" }, { \"meow\":\"blah\" } ]")); assertFalse(jsonService.validJsonData(" [ { \"foo\":\"bar\" }, { \"meow\":\"blah\" } ]")); assertFalse(jsonService.validJsonData(...
protected boolean validJsonData(String jsonData) { if (jsonData == null || jsonData.isEmpty()) { return false; } return jsonData.startsWith("{") || jsonData.startsWith("["); }
JsonService { protected boolean validJsonData(String jsonData) { if (jsonData == null || jsonData.isEmpty()) { return false; } return jsonData.startsWith("{") || jsonData.startsWith("["); } }
JsonService { protected boolean validJsonData(String jsonData) { if (jsonData == null || jsonData.isEmpty()) { return false; } return jsonData.startsWith("{") || jsonData.startsWith("["); } }
JsonService { protected boolean validJsonData(String jsonData) { if (jsonData == null || jsonData.isEmpty()) { return false; } return jsonData.startsWith("{") || jsonData.startsWith("["); } @GET @Path("/simple") @Produces(MediaType.TEXT_PLAIN) @Operation(summary ="Simple", description = "Simple hello service") @ApiRes...
JsonService { protected boolean validJsonData(String jsonData) { if (jsonData == null || jsonData.isEmpty()) { return false; } return jsonData.startsWith("{") || jsonData.startsWith("["); } @GET @Path("/simple") @Produces(MediaType.TEXT_PLAIN) @Operation(summary ="Simple", description = "Simple hello service") @ApiRes...
@Test public void convertToByteNull() { assertNull(converter.toByte(null)); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BYTE) public Byte toByte(Boolean value) { return value != null ? (byte) (value ? 1 : 0) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BYTE) public Byte toByte(Boolean value) { return value != null ? (byte) (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BYTE) public Byte toByte(Boolean value) { return value != null ? (byte) (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BYTE) public Byte toByte(Boolean value) { return value != null ? (byte) (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigDec...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.BYTE) public Byte toByte(Boolean value) { return value != null ? (byte) (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigDec...
@Test public void convertToCharacter() { Boolean t = Boolean.TRUE; Boolean f = Boolean.FALSE; Character c = converter.toCharacter(t); assertNotNull(c); assertEquals(1, c.charValue()); c = converter.toCharacter(f); assertNotNull(c); assertEquals(0, c.charValue()); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.CHAR) public Character toCharacter(Boolean value) { return value != null ? (char) (value ? 1 : 0) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.CHAR) public Character toCharacter(Boolean value) { return value != null ? (char) (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.CHAR) public Character toCharacter(Boolean value) { return value != null ? (char) (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.CHAR) public Character toCharacter(Boolean value) { return value != null ? (char) (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIM...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.CHAR) public Character toCharacter(Boolean value) { return value != null ? (char) (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIM...
@Test public void convertToCharacterNull() { Boolean t = null; Character c = converter.toCharacter(t); assertNull(c); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.CHAR) public Character toCharacter(Boolean value) { return value != null ? (char) (value ? 1 : 0) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.CHAR) public Character toCharacter(Boolean value) { return value != null ? (char) (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.CHAR) public Character toCharacter(Boolean value) { return value != null ? (char) (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.CHAR) public Character toCharacter(Boolean value) { return value != null ? (char) (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIM...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.CHAR) public Character toCharacter(Boolean value) { return value != null ? (char) (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIM...
@Test public void convertToDouble() { Boolean t = Boolean.TRUE; Boolean f = Boolean.FALSE; Double d = converter.toDouble(t); assertNotNull(d); assertEquals(1, d, 0.0d); d = converter.toDouble(f); assertNotNull(d); assertEquals(0, d, 0.0d); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DOUBLE) public Double toDouble(Boolean value) { return value != null ? value ? 1.0d : 0.0d : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DOUBLE) public Double toDouble(Boolean value) { return value != null ? value ? 1.0d : 0.0d : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DOUBLE) public Double toDouble(Boolean value) { return value != null ? value ? 1.0d : 0.0d : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DOUBLE) public Double toDouble(Boolean value) { return value != null ? value ? 1.0d : 0.0d : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) Big...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DOUBLE) public Double toDouble(Boolean value) { return value != null ? value ? 1.0d : 0.0d : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) Big...
@Test public void convertToDoubleNull() { Boolean t = null; Double d = converter.toDouble(t); assertNull(d); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DOUBLE) public Double toDouble(Boolean value) { return value != null ? value ? 1.0d : 0.0d : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DOUBLE) public Double toDouble(Boolean value) { return value != null ? value ? 1.0d : 0.0d : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DOUBLE) public Double toDouble(Boolean value) { return value != null ? value ? 1.0d : 0.0d : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DOUBLE) public Double toDouble(Boolean value) { return value != null ? value ? 1.0d : 0.0d : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) Big...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DOUBLE) public Double toDouble(Boolean value) { return value != null ? value ? 1.0d : 0.0d : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) Big...
@Test public void convertToFloat() { Boolean t = Boolean.TRUE; Boolean f = Boolean.FALSE; Float aFloat = converter.toFloat(t); assertNotNull(aFloat); assertEquals(1, aFloat, 0.0f); aFloat = converter.toFloat(f); assertNotNull(aFloat); assertEquals(0, aFloat, 0.0f); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.FLOAT) public Float toFloat(Boolean value) { return value != null ? (value ? 1.0f : 0.0f) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.FLOAT) public Float toFloat(Boolean value) { return value != null ? (value ? 1.0f : 0.0f) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.FLOAT) public Float toFloat(Boolean value) { return value != null ? (value ? 1.0f : 0.0f) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.FLOAT) public Float toFloat(Boolean value) { return value != null ? (value ? 1.0f : 0.0f) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigD...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.FLOAT) public Float toFloat(Boolean value) { return value != null ? (value ? 1.0f : 0.0f) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigD...
@Test public void convertToFloatNull() { Boolean t = null; Float f = converter.toFloat(t); assertNull(f); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.FLOAT) public Float toFloat(Boolean value) { return value != null ? (value ? 1.0f : 0.0f) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.FLOAT) public Float toFloat(Boolean value) { return value != null ? (value ? 1.0f : 0.0f) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.FLOAT) public Float toFloat(Boolean value) { return value != null ? (value ? 1.0f : 0.0f) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.FLOAT) public Float toFloat(Boolean value) { return value != null ? (value ? 1.0f : 0.0f) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigD...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.FLOAT) public Float toFloat(Boolean value) { return value != null ? (value ? 1.0f : 0.0f) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigD...
@Test public void convertToInteger() { Boolean t = Boolean.TRUE; Boolean f = Boolean.FALSE; Integer i = converter.toInteger(t); assertNotNull(i); assertEquals(1, i.intValue()); i = converter.toInteger(f); assertNotNull(i); assertEquals(0, i.intValue()); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.INTEGER) public Integer toInteger(Boolean value) { return value != null ? (value ? 1 : 0) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.INTEGER) public Integer toInteger(Boolean value) { return value != null ? (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.INTEGER) public Integer toInteger(Boolean value) { return value != null ? (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.INTEGER) public Integer toInteger(Boolean value) { return value != null ? (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigD...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.INTEGER) public Integer toInteger(Boolean value) { return value != null ? (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigD...
@Test public void convertToIntegerNull() { Boolean t = null; Integer i = converter.toInteger(t); assertNull(i); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.INTEGER) public Integer toInteger(Boolean value) { return value != null ? (value ? 1 : 0) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.INTEGER) public Integer toInteger(Boolean value) { return value != null ? (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.INTEGER) public Integer toInteger(Boolean value) { return value != null ? (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.INTEGER) public Integer toInteger(Boolean value) { return value != null ? (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigD...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.INTEGER) public Integer toInteger(Boolean value) { return value != null ? (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigD...
@Test public void convertToLong() { Boolean t = Boolean.TRUE; Boolean f = Boolean.FALSE; Long l = converter.toLong(t); assertNotNull(l); assertEquals(1, l.longValue()); l = converter.toLong(f); assertNotNull(l); assertEquals(0, l.longValue()); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.LONG) public Long toLong(Boolean value) { return value != null ? (value ? 1L : 0L) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.LONG) public Long toLong(Boolean value) { return value != null ? (value ? 1L : 0L) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.LONG) public Long toLong(Boolean value) { return value != null ? (value ? 1L : 0L) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.LONG) public Long toLong(Boolean value) { return value != null ? (value ? 1L : 0L) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigDecimal ...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.LONG) public Long toLong(Boolean value) { return value != null ? (value ? 1L : 0L) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigDecimal ...
@Test public void testIsSupportedField() { assertTrue(module.isSupportedField(new JsonField())); assertFalse(module.isSupportedField(new PropertyField())); assertFalse(module.isSupportedField(new ConstantField())); assertTrue(module.isSupportedField(new SimpleField())); }
@Override public Boolean isSupportedField(Field field) { if (super.isSupportedField(field)) { return true; } return field instanceof JsonField; }
JsonModule extends BaseAtlasModule { @Override public Boolean isSupportedField(Field field) { if (super.isSupportedField(field)) { return true; } return field instanceof JsonField; } }
JsonModule extends BaseAtlasModule { @Override public Boolean isSupportedField(Field field) { if (super.isSupportedField(field)) { return true; } return field instanceof JsonField; } }
JsonModule extends BaseAtlasModule { @Override public Boolean isSupportedField(Field field) { if (super.isSupportedField(field)) { return true; } return field instanceof JsonField; } @Override void processPreValidation(AtlasInternalSession atlasSession); @Override void processPreSourceExecution(AtlasInternalSession se...
JsonModule extends BaseAtlasModule { @Override public Boolean isSupportedField(Field field) { if (super.isSupportedField(field)) { return true; } return field instanceof JsonField; } @Override void processPreValidation(AtlasInternalSession atlasSession); @Override void processPreSourceExecution(AtlasInternalSession se...
@Test public void testGetClass() throws Exception { Response res = javaService.getClass(JavaService.class.getName()); Object entity = res.getEntity(); assertEquals(byte[].class, entity.getClass()); JavaClass javaClass = Json.mapper().readValue((byte[]) entity, JavaClass.class); assertEquals(JavaService.class.getName(),...
@GET @Path("/class") @Produces(MediaType.APPLICATION_JSON) @Operation(summary = "Inspect Class", description ="Inspect a Java Class with specified fully qualified class name and return a Document object") @ApiResponses(@ApiResponse(responseCode = "200", content = @Content(schema = @Schema(implementation = JavaClass.cla...
JavaService { @GET @Path("/class") @Produces(MediaType.APPLICATION_JSON) @Operation(summary = "Inspect Class", description ="Inspect a Java Class with specified fully qualified class name and return a Document object") @ApiResponses(@ApiResponse(responseCode = "200", content = @Content(schema = @Schema(implementation =...
JavaService { @GET @Path("/class") @Produces(MediaType.APPLICATION_JSON) @Operation(summary = "Inspect Class", description ="Inspect a Java Class with specified fully qualified class name and return a Document object") @ApiResponses(@ApiResponse(responseCode = "200", content = @Content(schema = @Schema(implementation =...
JavaService { @GET @Path("/class") @Produces(MediaType.APPLICATION_JSON) @Operation(summary = "Inspect Class", description ="Inspect a Java Class with specified fully qualified class name and return a Document object") @ApiResponses(@ApiResponse(responseCode = "200", content = @Content(schema = @Schema(implementation =...
JavaService { @GET @Path("/class") @Produces(MediaType.APPLICATION_JSON) @Operation(summary = "Inspect Class", description ="Inspect a Java Class with specified fully qualified class name and return a Document object") @ApiResponses(@ApiResponse(responseCode = "200", content = @Content(schema = @Schema(implementation =...
@Test public void convertToLongNull() { Boolean t = null; Long l = converter.toLong(t); assertNull(l); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.LONG) public Long toLong(Boolean value) { return value != null ? (value ? 1L : 0L) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.LONG) public Long toLong(Boolean value) { return value != null ? (value ? 1L : 0L) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.LONG) public Long toLong(Boolean value) { return value != null ? (value ? 1L : 0L) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.LONG) public Long toLong(Boolean value) { return value != null ? (value ? 1L : 0L) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigDecimal ...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.LONG) public Long toLong(Boolean value) { return value != null ? (value ? 1L : 0L) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) BigDecimal ...
@Test public void convertToShort() { Boolean t = Boolean.TRUE; Boolean f = Boolean.FALSE; Short s = converter.toShort(t); assertNotNull(s); assertEquals(1, s.shortValue()); s = converter.toShort(f); assertNotNull(s); assertEquals(0, s.shortValue()); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.SHORT) public Short toShort(Boolean value) { return value != null ? (short) (value ? 1 : 0) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.SHORT) public Short toShort(Boolean value) { return value != null ? (short) (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.SHORT) public Short toShort(Boolean value) { return value != null ? (short) (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.SHORT) public Short toShort(Boolean value) { return value != null ? (short) (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) Bi...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.SHORT) public Short toShort(Boolean value) { return value != null ? (short) (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) Bi...
@Test public void convertToShortNull() { Boolean t = null; Short s = converter.toShort(t); assertNull(s); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.SHORT) public Short toShort(Boolean value) { return value != null ? (short) (value ? 1 : 0) : null; }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.SHORT) public Short toShort(Boolean value) { return value != null ? (short) (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.SHORT) public Short toShort(Boolean value) { return value != null ? (short) (value ? 1 : 0) : null; } }
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.SHORT) public Short toShort(Boolean value) { return value != null ? (short) (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) Bi...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.SHORT) public Short toShort(Boolean value) { return value != null ? (short) (value ? 1 : 0) : null; } @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.DECIMAL) Bi...
@Test public void convertToString() { Boolean t = Boolean.TRUE; Boolean f = Boolean.FALSE; String s = converter.toString(t, null, null); assertNotNull(s); assertTrue("true".equals(s)); s = converter.toString(f, null, null); assertNotNull(s); assertTrue("false".equals(s)); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.STRING, concerns = { AtlasConversionConcern.CONVENTION }) public String toString(Boolean value, String sourceFormat, String targetFormat) { if (value == null) { return null; } String format = targetFormat != null && !"".equals(targetFormat) ? t...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.STRING, concerns = { AtlasConversionConcern.CONVENTION }) public String toString(Boolean value, String sourceFormat, String targetFormat) { if (value == null) { return null; } String format ...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.STRING, concerns = { AtlasConversionConcern.CONVENTION }) public String toString(Boolean value, String sourceFormat, String targetFormat) { if (value == null) { return null; } String format ...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.STRING, concerns = { AtlasConversionConcern.CONVENTION }) public String toString(Boolean value, String sourceFormat, String targetFormat) { if (value == null) { return null; } String format ...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.STRING, concerns = { AtlasConversionConcern.CONVENTION }) public String toString(Boolean value, String sourceFormat, String targetFormat) { if (value == null) { return null; } String format ...
@Test public void convertToStringNull() { Boolean t = null; String s = converter.toString(t, null, null); assertNull(s); }
@AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.STRING, concerns = { AtlasConversionConcern.CONVENTION }) public String toString(Boolean value, String sourceFormat, String targetFormat) { if (value == null) { return null; } String format = targetFormat != null && !"".equals(targetFormat) ? t...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.STRING, concerns = { AtlasConversionConcern.CONVENTION }) public String toString(Boolean value, String sourceFormat, String targetFormat) { if (value == null) { return null; } String format ...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.STRING, concerns = { AtlasConversionConcern.CONVENTION }) public String toString(Boolean value, String sourceFormat, String targetFormat) { if (value == null) { return null; } String format ...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.STRING, concerns = { AtlasConversionConcern.CONVENTION }) public String toString(Boolean value, String sourceFormat, String targetFormat) { if (value == null) { return null; } String format ...
BooleanConverter implements AtlasConverter<Boolean> { @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.STRING, concerns = { AtlasConversionConcern.CONVENTION }) public String toString(Boolean value, String sourceFormat, String targetFormat) { if (value == null) { return null; } String format ...
@Test public void convertToBoolean() { String f = "0"; String t = "1"; String capitalT = "T"; String capitalF = "F"; String smallT = "t"; String smallF = "f"; String strTrue = "true"; String strFalse = "false"; Boolean b = converter.toBoolean(t, null, null); assertNotNull(b); assertTrue(b); b = converter.toBoolean(f, n...
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if (sourceFormat != null && !sourceFormat.isEmpty()) {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if...
@Test public void convertToBooleanNull() { Boolean b = converter.toBoolean(null, null, null); assertNull(b); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if (sourceFormat != null && !sourceFormat.isEmpty()) {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if...
@Test public void convertToBooleanFallback() { String s = ""; Boolean b = converter.toBoolean(s, null, null); assertFalse(b); b = converter.toBoolean("junk", null, null); assertFalse(b); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if (sourceFormat != null && !sourceFormat.isEmpty()) {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BOOLEAN, concerns = AtlasConversionConcern.CONVENTION) public Boolean toBoolean(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } Pattern pattern; if...
@Test public void convertToByte() throws Exception { String s = "0"; Byte value = (byte) 0; assertEquals(value, converter.toByte(s)); s = "+127"; value = (byte) 127; assertEquals(value, converter.toByte(s)); s = "-128"; value = (byte) -128; assertEquals(value, converter.toByte(s)); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (value == null) { return null; } try { return Byte.par...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
@Test public void convertToByteNull() throws Exception { assertNull(converter.toByte(null)); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (value == null) { return null; } try { return Byte.par...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
@Test(expected = AtlasException.class) public void testWriteNullField() throws Exception { write(null); }
@Override public void write(AtlasInternalSession session) throws AtlasException { Field targetField = session.head().getTargetField(); if (targetField == null) { throw new AtlasException(new IllegalArgumentException("Argument 'jsonField' cannot be null")); } if (LOG.isDebugEnabled()) { LOG.debug("Field: " + AtlasModelF...
JsonFieldWriter implements AtlasFieldWriter { @Override public void write(AtlasInternalSession session) throws AtlasException { Field targetField = session.head().getTargetField(); if (targetField == null) { throw new AtlasException(new IllegalArgumentException("Argument 'jsonField' cannot be null")); } if (LOG.isDebug...
JsonFieldWriter implements AtlasFieldWriter { @Override public void write(AtlasInternalSession session) throws AtlasException { Field targetField = session.head().getTargetField(); if (targetField == null) { throw new AtlasException(new IllegalArgumentException("Argument 'jsonField' cannot be null")); } if (LOG.isDebug...
JsonFieldWriter implements AtlasFieldWriter { @Override public void write(AtlasInternalSession session) throws AtlasException { Field targetField = session.head().getTargetField(); if (targetField == null) { throw new AtlasException(new IllegalArgumentException("Argument 'jsonField' cannot be null")); } if (LOG.isDebug...
JsonFieldWriter implements AtlasFieldWriter { @Override public void write(AtlasInternalSession session) throws AtlasException { Field targetField = session.head().getTargetField(); if (targetField == null) { throw new AtlasException(new IllegalArgumentException("Argument 'jsonField' cannot be null")); } if (LOG.isDebug...
@Test public void convertToByteMAX() throws Exception { String s = String.valueOf(Byte.MAX_VALUE); Byte l = converter.toByte(s); assertNotNull(l); assertEquals(Byte.MAX_VALUE, l, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (value == null) { return null; } try { return Byte.par...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
@Test public void convertToByteMIN() throws Exception { String s = String.valueOf(Byte.MIN_VALUE); Byte l = converter.toByte(s); assertNotNull(l); assertEquals(Byte.MIN_VALUE, l, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (value == null) { return null; } try { return Byte.par...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
@Test(expected = AtlasConversionException.class) public void convertToByteGreaterThanMAX() throws Exception { String s = "128"; converter.toByte(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (value == null) { return null; } try { return Byte.par...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
@Test(expected = AtlasConversionException.class) public void convertToByteLessThanMIN() throws Exception { String s = "-129"; converter.toByte(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (value == null) { return null; } try { return Byte.par...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.FORMAT, AtlasConversionConcern.FRACTIONAL_PART}) public Byte toByte(String value) throws AtlasConversionException { if (v...
@Test public void convertToCharacter() throws Exception { String s = "0"; Character c = converter.toCharacter(s); assertNotNull(c); assertEquals(48, c.charValue()); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.length() > 1) { throw new AtlasConversionException( Stri...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
@Test public void convertToCharacterNull() throws Exception { Character c = converter.toCharacter(null); assertNull(c); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.length() > 1) { throw new AtlasConversionException( Stri...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
@Test(expected = AtlasConversionException.class) public void convertToCharacterEmptyString() throws Exception { String s = ""; converter.toCharacter(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.length() > 1) { throw new AtlasConversionException( Stri...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
@Test public void convertToCharacterStringSpace() throws Exception { String s = " "; Character c = converter.toCharacter(s); assertNotNull(c); assertEquals(32, c.charValue()); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.length() > 1) { throw new AtlasConversionException( Stri...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.CHAR, concerns = AtlasConversionConcern.RANGE) public Character toCharacter(String value) throws AtlasConversionException { if (value == null) { return null; } if (value.isEmpty() || value.leng...
@Test public void convertToDouble() throws Exception { String s = "0.0"; Double d = converter.toDouble(s); assertNotNull(d); assertEquals(0.0, d, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } try { Double.parseDouble(value); } catch (NumberFormat...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
@Test public void convertToDoubleNull() throws Exception { Double d = converter.toDouble(null); assertNull(d); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } try { Double.parseDouble(value); } catch (NumberFormat...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
@Test public void testSimpleRepeated() throws Exception { writeString("/orders[0]/orderid", "orderid1"); writeString("/orders[1]/orderid", "orderid2"); Assert.assertThat(writer.getRootNode().toString(), Is.is("{\"orders\":[{\"orderid\":\"orderid1\"},{\"orderid\":\"orderid2\"}]}")); }
public ContainerNode<?> getRootNode() { return rootNode; }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } JsonFieldWriter(); JsonFieldWriter(ObjectMapper objectMapper); }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } JsonFieldWriter(); JsonFieldWriter(ObjectMapper objectMapper); ContainerNode<?> getRootNode(); ObjectMapper getObjectMapper(); @Override void write(AtlasInternalSession session); }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } JsonFieldWriter(); JsonFieldWriter(ObjectMapper objectMapper); ContainerNode<?> getRootNode(); ObjectMapper getObjectMapper(); @Override void write(AtlasInternalSession session); }
@Test public void convertToDoubleMAX() throws Exception { String s = String.valueOf(Double.MAX_VALUE); Double d = converter.toDouble(s); assertNotNull(d); assertEquals(Double.MAX_VALUE, d, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } try { Double.parseDouble(value); } catch (NumberFormat...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
@Test(expected = AtlasConversionException.class) public void convertToDoubleGreaterThanMAX() throws Exception { String s = "1.7976931348623157E400"; converter.toDouble(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } try { Double.parseDouble(value); } catch (NumberFormat...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
@Test public void convertToDoubleLessThanMIN() throws Exception { String s = "-4.9E-325"; Double d = converter.toDouble(s); assertNotNull(d); assertEquals(0.0, d, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } try { Double.parseDouble(value); } catch (NumberFormat...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
@Test(expected = AtlasConversionException.class) public void convertToDoubleUnparseable() throws Exception { String s = "1.2efff"; converter.toDouble(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } try { Double.parseDouble(value); } catch (NumberFormat...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.DOUBLE, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Double toDouble(String value) throws AtlasConversionException { if (value == null) { return null; } tr...
@Test public void convertToFloat() throws Exception { String s = "0"; Float f = converter.toFloat(s); assertNotNull(f); assertEquals(0.0, f, 0.0); s = "1"; f = converter.toFloat(s); assertNotNull(f); assertEquals(1.0, f, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try { Float.parseFloat(value); } catch (NumberFormatExcep...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
@Test public void convertToFloatNull() throws Exception { assertNull(converter.toFloat(null)); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try { Float.parseFloat(value); } catch (NumberFormatExcep...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
@Test public void convertToFloatMAX() throws Exception { String s = "3.4028235E38"; Float f = converter.toFloat(s); assertNotNull(f); assertEquals(Float.MAX_VALUE, f, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try { Float.parseFloat(value); } catch (NumberFormatExcep...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
@Test public void convertToFloatMIN() throws Exception { String s = "1.401298464324817E-45"; Float f = converter.toFloat(s); assertNotNull(f); assertEquals(Float.MIN_VALUE, f, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try { Float.parseFloat(value); } catch (NumberFormatExcep...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
@Test(expected = AtlasConversionException.class) public void convertToFloatUnparsable() throws Exception { String s = "QWERTY"; converter.toFloat(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try { Float.parseFloat(value); } catch (NumberFormatExcep...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
@Test(expected = AtlasConversionException.class) public void convertToFloatGreaterThanMAX() throws Exception { String s = "3.4028235E39"; converter.toFloat(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try { Float.parseFloat(value); } catch (NumberFormatExcep...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
@Test public void testWriteComplexObjectUnrooted() throws Exception { writeComplexTestData("", ""); Assert.assertThat(writer.getRootNode().toString(), Is.is( "{\"address\":{\"addressLine1\":\"123 Main St\",\"addressLine2\":\"Suite 42b\",\"city\":\"Anytown\",\"state\":\"NY\",\"zipCode\":\"90210\"},\"contact\":{\"firstNa...
public ContainerNode<?> getRootNode() { return rootNode; }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } JsonFieldWriter(); JsonFieldWriter(ObjectMapper objectMapper); }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } JsonFieldWriter(); JsonFieldWriter(ObjectMapper objectMapper); ContainerNode<?> getRootNode(); ObjectMapper getObjectMapper(); @Override void write(AtlasInternalSession session); }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } JsonFieldWriter(); JsonFieldWriter(ObjectMapper objectMapper); ContainerNode<?> getRootNode(); ObjectMapper getObjectMapper(); @Override void write(AtlasInternalSession session); }
@Test public void convertToFloatLessThanMIN() throws Exception { String s = "1.4E-49"; Float f = converter.toFloat(s); assertNotNull(f); assertEquals(0.0, f, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try { Float.parseFloat(value); } catch (NumberFormatExcep...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.FLOAT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE }) public Float toFloat(String value) throws AtlasConversionException { if (value == null) { return null; } try {...
@Test public void convertToInteger() throws Exception { String s = "0"; Integer i = converter.toInteger(s); assertNotNull(i); assertEquals(0, i, 0.0); s = "3.5"; i = converter.toInteger(s); assertNotNull(i); assertEquals(3, i, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionException { if (value == null) { return null; } Integer i =...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
@Test public void convertToIntegerNull() throws Exception { Integer i = converter.toInteger(null); assertNull(i); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionException { if (value == null) { return null; } Integer i =...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
@Test(expected = AtlasConversionException.class) public void convertToIntegerLessThanMIN() throws Exception { String s = "-21474836495554545"; converter.toInteger(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionException { if (value == null) { return null; } Integer i =...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
@Test(expected = AtlasConversionException.class) public void convertToIntegerGreaterThanMAX() throws Exception { String s = "214748364755545422145221"; converter.toInteger(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionException { if (value == null) { return null; } Integer i =...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
@Test(expected = AtlasConversionException.class) public void convertToIntegerUnparseable() throws Exception { String s = "2147483648qwerty"; converter.toInteger(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionException { if (value == null) { return null; } Integer i =...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.INTEGER, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Integer toInteger(String value) throws AtlasConversionExcepti...
@Test public void convertToLong() throws Exception { String s = "1"; Long l = converter.toLong(s); assertNotNull(l); assertEquals(1, l, 0.0); s = "3.5"; l = converter.toLong(s); assertNotNull(l); assertEquals(3, l, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (value == null) { return null; } Long l = null; try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
@Test public void convertToLongNull() throws Exception { Long l = converter.toLong(null); assertNull(l); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (value == null) { return null; } Long l = null; try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
@Test public void convertToLongMAX() throws Exception { String s = String.valueOf(Long.MAX_VALUE); Long l = converter.toLong(s); assertNotNull(l); assertEquals(Long.MAX_VALUE, l, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (value == null) { return null; } Long l = null; try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
@Test public void convertToLongMIN() throws Exception { String s = String.valueOf(Long.MIN_VALUE); Long l = converter.toLong(s); assertNotNull(l); assertEquals(Long.MIN_VALUE, l, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (value == null) { return null; } Long l = null; try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
@Test public void testWriteComplexObjectRooted() throws Exception { writeComplexTestData("/order", ""); final String instance = new String( Files.readAllBytes(Paths.get("src/test/resources/complex-rooted-result.json"))); Assert.assertNotNull(instance); Assert.assertThat(prettyPrintJson(writer.getRootNode().toString()),...
public ContainerNode<?> getRootNode() { return rootNode; }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } JsonFieldWriter(); JsonFieldWriter(ObjectMapper objectMapper); }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } JsonFieldWriter(); JsonFieldWriter(ObjectMapper objectMapper); ContainerNode<?> getRootNode(); ObjectMapper getObjectMapper(); @Override void write(AtlasInternalSession session); }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } JsonFieldWriter(); JsonFieldWriter(ObjectMapper objectMapper); ContainerNode<?> getRootNode(); ObjectMapper getObjectMapper(); @Override void write(AtlasInternalSession session); }
@Test(expected = AtlasConversionException.class) public void convertToLongGreaterThanMAX() throws Exception { String s = "9223372036854775808"; converter.toLong(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (value == null) { return null; } Long l = null; try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
@Test(expected = AtlasConversionException.class) public void convertToLongLessThanMIN() throws Exception { String s = "-9223372036854775809"; converter.toLong(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (value == null) { return null; } Long l = null; try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
@Test(expected = AtlasConversionException.class) public void convertToLongUnparsable() throws Exception { String s = "QWERTY"; converter.toLong(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (value == null) { return null; } Long l = null; try {...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.LONG, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Long toLong(String value) throws AtlasConversionException { if (...
@Test public void convertToShort() throws Exception { String aString = "0"; Short s = converter.toShort(aString); assertNotNull(s); assertEquals(0, s, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { if (value == null) { return null; } Short shortty = n...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
@Test public void convertToShortNull() throws Exception { Short s = converter.toShort(null); assertNull(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { if (value == null) { return null; } Short shortty = n...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
@Test public void convertToShortMAX() throws Exception { String s = String.valueOf(Short.MAX_VALUE); Short l = converter.toShort(s); assertNotNull(l); assertEquals(Short.MAX_VALUE, l, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { if (value == null) { return null; } Short shortty = n...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
@Test public void convertToShortMIN() throws Exception { String s = String.valueOf(Short.MIN_VALUE); Short l = converter.toShort(s); assertNotNull(l); assertEquals(Short.MIN_VALUE, l, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { if (value == null) { return null; } Short shortty = n...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
@Test(expected = AtlasConversionException.class) public void convertToShortGreaterThanMAX() throws Exception { String s = "9223372036854775808"; converter.toShort(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { if (value == null) { return null; } Short shortty = n...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
@Test(expected = AtlasConversionException.class) public void convertToShortLessThanMIN() throws Exception { String s = "-9223372036854775809"; converter.toShort(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { if (value == null) { return null; } Short shortty = n...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
@Test(expected = AtlasConversionException.class) public void convertToShortUnparsable() throws Exception { String s = "QWERTY"; converter.toShort(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { if (value == null) { return null; } Short shortty = n...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.SHORT, concerns = { AtlasConversionConcern.FORMAT, AtlasConversionConcern.RANGE, AtlasConversionConcern.FRACTIONAL_PART }) public Short toShort(String value) throws AtlasConversionException { i...
@Test public void testWriteComplexObjectRepeated() throws Exception { for (int i = 0; i < 5; i++) { String prefix = "/SourceOrderList/orders[" + i + "]"; String valueSuffix = " (" + (i + 1) + ")"; writeComplexTestData(prefix, valueSuffix); } writeInteger("/SourceOrderList/orderBatchNumber", 4123562); writeInteger("/Sou...
public ContainerNode<?> getRootNode() { return rootNode; }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } JsonFieldWriter(); JsonFieldWriter(ObjectMapper objectMapper); }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } JsonFieldWriter(); JsonFieldWriter(ObjectMapper objectMapper); ContainerNode<?> getRootNode(); ObjectMapper getObjectMapper(); @Override void write(AtlasInternalSession session); }
JsonFieldWriter implements AtlasFieldWriter { public ContainerNode<?> getRootNode() { return rootNode; } JsonFieldWriter(); JsonFieldWriter(ObjectMapper objectMapper); ContainerNode<?> getRootNode(); ObjectMapper getObjectMapper(); @Override void write(AtlasInternalSession session); }
@Test public void convertToString() { String zero = "0"; String converted = converter.toString(zero, null, null); assertNotNull(converted); assertNotSame(converted, zero); assertTrue("0".equals(converted)); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.STRING) public String toString(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } return new String(value); }
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.STRING) public String toString(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } return new String(value); } }
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.STRING) public String toString(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } return new String(value); } }
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.STRING) public String toString(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } return new String(value); } @AtlasConversionInfo(sourceType = Field...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.STRING) public String toString(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } return new String(value); } @AtlasConversionInfo(sourceType = Field...
@Test public void convertToStringNull() { String s = converter.toString(null, null, null); assertNull(s); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.STRING) public String toString(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } return new String(value); }
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.STRING) public String toString(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } return new String(value); } }
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.STRING) public String toString(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } return new String(value); } }
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.STRING) public String toString(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } return new String(value); } @AtlasConversionInfo(sourceType = Field...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.STRING) public String toString(String value, String sourceFormat, String targetFormat) { if (value == null) { return null; } return new String(value); } @AtlasConversionInfo(sourceType = Field...
@Test public void testConvertToNumber() throws AtlasConversionException { StringConverter converter = new StringConverter(); assertNull(converter.toNumber(null)); assertNull(converter.toNumber(" ")); assertNotNull(converter.toNumber("1")); assertNotNull(converter.toNumber("1.99")); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.NUMBER, concerns = { AtlasConversionConcern.FORMAT }) public Number toNumber(String value) throws AtlasConversionException { if (value == null || value.trim().isEmpty()) { return null; } if (value.matches("\\d+")) { return new BigInteger(value);...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.NUMBER, concerns = { AtlasConversionConcern.FORMAT }) public Number toNumber(String value) throws AtlasConversionException { if (value == null || value.trim().isEmpty()) { return null; } if (va...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.NUMBER, concerns = { AtlasConversionConcern.FORMAT }) public Number toNumber(String value) throws AtlasConversionException { if (value == null || value.trim().isEmpty()) { return null; } if (va...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.NUMBER, concerns = { AtlasConversionConcern.FORMAT }) public Number toNumber(String value) throws AtlasConversionException { if (value == null || value.trim().isEmpty()) { return null; } if (va...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.NUMBER, concerns = { AtlasConversionConcern.FORMAT }) public Number toNumber(String value) throws AtlasConversionException { if (value == null || value.trim().isEmpty()) { return null; } if (va...
@Test(expected = AtlasConversionException.class) public void testConvertToNumberAtlasConversionException() throws AtlasConversionException { StringConverter converter = new StringConverter(); assertNull(converter.toNumber("abc")); }
@AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.NUMBER, concerns = { AtlasConversionConcern.FORMAT }) public Number toNumber(String value) throws AtlasConversionException { if (value == null || value.trim().isEmpty()) { return null; } if (value.matches("\\d+")) { return new BigInteger(value);...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.NUMBER, concerns = { AtlasConversionConcern.FORMAT }) public Number toNumber(String value) throws AtlasConversionException { if (value == null || value.trim().isEmpty()) { return null; } if (va...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.NUMBER, concerns = { AtlasConversionConcern.FORMAT }) public Number toNumber(String value) throws AtlasConversionException { if (value == null || value.trim().isEmpty()) { return null; } if (va...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.NUMBER, concerns = { AtlasConversionConcern.FORMAT }) public Number toNumber(String value) throws AtlasConversionException { if (value == null || value.trim().isEmpty()) { return null; } if (va...
StringConverter implements AtlasConverter<String> { @AtlasConversionInfo(sourceType = FieldType.STRING, targetType = FieldType.NUMBER, concerns = { AtlasConversionConcern.FORMAT }) public Number toNumber(String value) throws AtlasConversionException { if (value == null || value.trim().isEmpty()) { return null; } if (va...
@Test public void toDate() { Date date = converter.toDate(LocalDate.now()); assertNotNull(date); }
@AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME) public Date toDate(LocalDate value) { return value != null ? new Date(getStartEpochMilli(value)) : null; }
LocalDateConverter implements AtlasConverter<LocalDate> { @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME) public Date toDate(LocalDate value) { return value != null ? new Date(getStartEpochMilli(value)) : null; } }
LocalDateConverter implements AtlasConverter<LocalDate> { @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME) public Date toDate(LocalDate value) { return value != null ? new Date(getStartEpochMilli(value)) : null; } }
LocalDateConverter implements AtlasConverter<LocalDate> { @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME) public Date toDate(LocalDate value) { return value != null ? new Date(getStartEpochMilli(value)) : null; } @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldTy...
LocalDateConverter implements AtlasConverter<LocalDate> { @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME) public Date toDate(LocalDate value) { return value != null ? new Date(getStartEpochMilli(value)) : null; } @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldTy...
@Test public void toZonedDateTime() { ZonedDateTime zonedDateTime = converter.toZonedDateTime(LocalDate.now()); assertNotNull(zonedDateTime); assertTrue(zonedDateTime.getZone().getId().equals(ZoneId.systemDefault().getId())); }
@AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME_TZ) public ZonedDateTime toZonedDateTime(LocalDate value) { return value != null ? value.atStartOfDay(ZoneId.systemDefault()) : null; }
LocalDateConverter implements AtlasConverter<LocalDate> { @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME_TZ) public ZonedDateTime toZonedDateTime(LocalDate value) { return value != null ? value.atStartOfDay(ZoneId.systemDefault()) : null; } }
LocalDateConverter implements AtlasConverter<LocalDate> { @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME_TZ) public ZonedDateTime toZonedDateTime(LocalDate value) { return value != null ? value.atStartOfDay(ZoneId.systemDefault()) : null; } }
LocalDateConverter implements AtlasConverter<LocalDate> { @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME_TZ) public ZonedDateTime toZonedDateTime(LocalDate value) { return value != null ? value.atStartOfDay(ZoneId.systemDefault()) : null; } @AtlasConversionInfo(sourceType = FieldTyp...
LocalDateConverter implements AtlasConverter<LocalDate> { @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME_TZ) public ZonedDateTime toZonedDateTime(LocalDate value) { return value != null ? value.atStartOfDay(ZoneId.systemDefault()) : null; } @AtlasConversionInfo(sourceType = FieldTyp...
@Test public void toZonedDateTimeWithZoneId() { ZonedDateTime zonedDateTime = DateTimeHelper.toZonedDateTime(new Date(), "America/New_York"); assertNotNull(zonedDateTime); assertTrue(zonedDateTime.getZone().getId().equals("America/New_York")); }
@AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME_TZ) public ZonedDateTime toZonedDateTime(LocalDate value) { return value != null ? value.atStartOfDay(ZoneId.systemDefault()) : null; }
LocalDateConverter implements AtlasConverter<LocalDate> { @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME_TZ) public ZonedDateTime toZonedDateTime(LocalDate value) { return value != null ? value.atStartOfDay(ZoneId.systemDefault()) : null; } }
LocalDateConverter implements AtlasConverter<LocalDate> { @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME_TZ) public ZonedDateTime toZonedDateTime(LocalDate value) { return value != null ? value.atStartOfDay(ZoneId.systemDefault()) : null; } }
LocalDateConverter implements AtlasConverter<LocalDate> { @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME_TZ) public ZonedDateTime toZonedDateTime(LocalDate value) { return value != null ? value.atStartOfDay(ZoneId.systemDefault()) : null; } @AtlasConversionInfo(sourceType = FieldTyp...
LocalDateConverter implements AtlasConverter<LocalDate> { @AtlasConversionInfo(sourceType = FieldType.DATE, targetType = FieldType.DATE_TIME_TZ) public ZonedDateTime toZonedDateTime(LocalDate value) { return value != null ? value.atStartOfDay(ZoneId.systemDefault()) : null; } @AtlasConversionInfo(sourceType = FieldTyp...
@Test public void convertToBoolean() { Float df = 0.0f; Float dt = 1.0f; Boolean b = converter.toBoolean(dt); assertNotNull(b); assertTrue(b); b = converter.toBoolean(df); assertNotNull(b); assertFalse(b); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TRUE; }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TR...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TR...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TR...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TR...
@Test public void convertToBooleanNull() { Float df = null; Boolean b = converter.toBoolean(df); assertNull(b); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TRUE; }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TR...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TR...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TR...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TR...
@Test public void convertToBooleanNegative() { Float dt = -1.0f; Boolean b = converter.toBoolean(dt); assertTrue(b); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TRUE; }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TR...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TR...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TR...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BOOLEAN, concerns = { AtlasConversionConcern.CONVENTION }) public Boolean toBoolean(Float value) { if (value == null) { return null; } if (value == 0.0) { return Boolean.FALSE; } return Boolean.TR...
@Test public void testJsonFieldBooleanString() throws Exception { Path path = Paths.get("target" + File.separator + "test-write-field-byte-string.json"); String fieldPath = "/primitiveValue"; Object testObject = "abcd"; FieldType inputFieldType = FieldType.STRING; FieldType outputFieldType = FieldType.BOOLEAN; write(pa...
@Override public void write(AtlasInternalSession session) throws AtlasException { Field targetField = session.head().getTargetField(); if (targetField == null) { throw new AtlasException(new IllegalArgumentException("Argument 'jsonField' cannot be null")); } if (LOG.isDebugEnabled()) { LOG.debug("Field: " + AtlasModelF...
JsonFieldWriter implements AtlasFieldWriter { @Override public void write(AtlasInternalSession session) throws AtlasException { Field targetField = session.head().getTargetField(); if (targetField == null) { throw new AtlasException(new IllegalArgumentException("Argument 'jsonField' cannot be null")); } if (LOG.isDebug...
JsonFieldWriter implements AtlasFieldWriter { @Override public void write(AtlasInternalSession session) throws AtlasException { Field targetField = session.head().getTargetField(); if (targetField == null) { throw new AtlasException(new IllegalArgumentException("Argument 'jsonField' cannot be null")); } if (LOG.isDebug...
JsonFieldWriter implements AtlasFieldWriter { @Override public void write(AtlasInternalSession session) throws AtlasException { Field targetField = session.head().getTargetField(); if (targetField == null) { throw new AtlasException(new IllegalArgumentException("Argument 'jsonField' cannot be null")); } if (LOG.isDebug...
JsonFieldWriter implements AtlasFieldWriter { @Override public void write(AtlasInternalSession session) throws AtlasException { Field targetField = session.head().getTargetField(); if (targetField == null) { throw new AtlasException(new IllegalArgumentException("Argument 'jsonField' cannot be null")); } if (LOG.isDebug...
@Test public void convertToByte() throws Exception { Float df = 0.0f; Byte value = (byte) 0; assertEquals(value, converter.toByte(df)); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VALUE && value <= Byte.MAX_VALUE) { return value.byte...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VAL...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VAL...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VAL...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VAL...
@Test(expected = AtlasConversionException.class) public void convertToByteOutOfRange() throws Exception { Float df = Float.MAX_VALUE; converter.toByte(df); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VALUE && value <= Byte.MAX_VALUE) { return value.byte...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VAL...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VAL...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VAL...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VAL...
@Test public void convertToByteNull() throws Exception { assertNull(converter.toByte(null)); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VALUE && value <= Byte.MAX_VALUE) { return value.byte...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VAL...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VAL...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VAL...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.BYTE, concerns = { AtlasConversionConcern.RANGE }) public Byte toByte(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value % 1 == 0 && value >= Byte.MIN_VAL...
@Test public void convertToCharacter() throws Exception { Float df = 0.0f; Character c = converter.toCharacter(df); assertNotNull(c); assertEquals(0, c.charValue()); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Character.MIN_VALUE || value > Chara...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
@Test public void convertToCharacterNull() throws Exception { Float df = null; Character c = converter.toCharacter(df); assertNull(c); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Character.MIN_VALUE || value > Chara...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
@Test(expected = AtlasConversionException.class) public void convertToCharacterMAX() throws Exception { Float df = Float.MAX_VALUE; converter.toCharacter(df); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Character.MIN_VALUE || value > Chara...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
@Test(expected = AtlasConversionException.class) public void convertToCharacterMIN() throws Exception { Float df = -1.00f; converter.toCharacter(df); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Character.MIN_VALUE || value > Chara...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.CHAR, concerns = { AtlasConversionConcern.RANGE, AtlasConversionConcern.CONVENTION }) public Character toCharacter(Float value) throws AtlasConversionException { if (value == null) { return null; ...
@Test public void convertToDouble() { Float df = 0.0f; Double d = converter.toDouble(df); assertNotNull(d); assertNotSame(df, d); assertEquals(0.0, d.floatValue(), 0.0); df = 1.0f; d = converter.toDouble(df); assertNotNull(d); assertNotSame(df, d); assertEquals(1.0, d.floatValue(), 0.0); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DOUBLE) public Double toDouble(Float value) { if (value == null) { return null; } return value.doubleValue(); }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DOUBLE) public Double toDouble(Float value) { if (value == null) { return null; } return value.doubleValue(); } }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DOUBLE) public Double toDouble(Float value) { if (value == null) { return null; } return value.doubleValue(); } }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DOUBLE) public Double toDouble(Float value) { if (value == null) { return null; } return value.doubleValue(); } @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DECIMAL) ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DOUBLE) public Double toDouble(Float value) { if (value == null) { return null; } return value.doubleValue(); } @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DECIMAL) ...
@Test public void convertToDoubleNull() { Float df = null; Double d = converter.toDouble(df); assertNull(d); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DOUBLE) public Double toDouble(Float value) { if (value == null) { return null; } return value.doubleValue(); }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DOUBLE) public Double toDouble(Float value) { if (value == null) { return null; } return value.doubleValue(); } }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DOUBLE) public Double toDouble(Float value) { if (value == null) { return null; } return value.doubleValue(); } }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DOUBLE) public Double toDouble(Float value) { if (value == null) { return null; } return value.doubleValue(); } @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DECIMAL) ...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DOUBLE) public Double toDouble(Float value) { if (value == null) { return null; } return value.doubleValue(); } @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DECIMAL) ...
@Test public void convertToFloat() { Float df = 0.0f; Float d = converter.toFloat(df); assertNotNull(d); assertNotSame(df, d); assertEquals(0.0, d, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.FLOAT) public Float toFloat(Float value) { if (value == null) { return null; } return value.floatValue(); }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.FLOAT) public Float toFloat(Float value) { if (value == null) { return null; } return value.floatValue(); } }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.FLOAT) public Float toFloat(Float value) { if (value == null) { return null; } return value.floatValue(); } }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.FLOAT) public Float toFloat(Float value) { if (value == null) { return null; } return value.floatValue(); } @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DECIMAL) BigD...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.FLOAT) public Float toFloat(Float value) { if (value == null) { return null; } return value.floatValue(); } @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DECIMAL) BigD...
@Test public void testCreateXmlDocument() { XmlDocument xmlDoc = AtlasXmlModelFactory.createXmlDocument(); assertNotNull(xmlDoc); assertNotNull(xmlDoc.getFields()); assertNotNull(xmlDoc.getFields().getField()); assertEquals(new Integer(0), new Integer(xmlDoc.getFields().getField().size())); }
public static XmlDocument createXmlDocument() { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.setFields(new Fields()); return xmlDocument; }
AtlasXmlModelFactory { public static XmlDocument createXmlDocument() { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.setFields(new Fields()); return xmlDocument; } }
AtlasXmlModelFactory { public static XmlDocument createXmlDocument() { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.setFields(new Fields()); return xmlDocument; } }
AtlasXmlModelFactory { public static XmlDocument createXmlDocument() { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.setFields(new Fields()); return xmlDocument; } static XmlDocument createXmlDocument(); static XmlField createXmlField(); static XmlField cloneField(XmlField field, boolean withActions); stati...
AtlasXmlModelFactory { public static XmlDocument createXmlDocument() { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.setFields(new Fields()); return xmlDocument; } static XmlDocument createXmlDocument(); static XmlField createXmlField(); static XmlField cloneField(XmlField field, boolean withActions); stati...
@Test public void convertToFloatNull() { Float df = null; Float d = converter.toFloat(df); assertNull(d); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.FLOAT) public Float toFloat(Float value) { if (value == null) { return null; } return value.floatValue(); }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.FLOAT) public Float toFloat(Float value) { if (value == null) { return null; } return value.floatValue(); } }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.FLOAT) public Float toFloat(Float value) { if (value == null) { return null; } return value.floatValue(); } }
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.FLOAT) public Float toFloat(Float value) { if (value == null) { return null; } return value.floatValue(); } @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DECIMAL) BigD...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.FLOAT) public Float toFloat(Float value) { if (value == null) { return null; } return value.floatValue(); } @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.DECIMAL) BigD...
@Test public void convertToInteger() throws Exception { Float df = 0.15f; Integer i = converter.toInteger(df); assertNotNull(i); assertEquals(0, i, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value > Integer.MAX_VALUE) { throw new AtlasConversionE...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value...
@Test public void convertToIntegerNull() throws Exception { Float df = null; Integer i = converter.toInteger(df); assertNull(i); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value > Integer.MAX_VALUE) { throw new AtlasConversionE...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value...
@Test(expected = AtlasConversionException.class) public void convertToIntegerExceptionMAX() throws Exception { Float df = Float.MAX_VALUE; converter.toInteger(df); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value > Integer.MAX_VALUE) { throw new AtlasConversionE...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.INTEGER, concerns = AtlasConversionConcern.RANGE) public Integer toInteger(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value < Integer.MIN_VALUE || value...
@Test public void convertToLong() throws Exception { Float df = 0.0f; Long l = converter.toLong(df); assertNotNull(l); assertEquals(0, l, 0.0); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_VALUE) { throw new AtlasConversionException( Strin...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_...
@Test public void convertToLongNull() throws Exception { Float df = null; Long l = converter.toLong(df); assertNull(l); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_VALUE) { throw new AtlasConversionException( Strin...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_...
@Test(expected = AtlasConversionException.class) public void convertToLongExceptionMAX() throws Exception { Float df = Float.MAX_VALUE; converter.toLong(df); }
@AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_VALUE) { throw new AtlasConversionException( Strin...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_...
FloatConverter implements AtlasConverter<Float> { @AtlasConversionInfo(sourceType = FieldType.FLOAT, targetType = FieldType.LONG, concerns = AtlasConversionConcern.RANGE) public Long toLong(Float value) throws AtlasConversionException { if (value == null) { return null; } if (value > Long.MAX_VALUE || value < Long.MIN_...