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(expected = AtlasConversionException.class) public void testConvertTypeAtlasConversionException() throws AtlasConversionException { assertNotNull(service.convertType(new Object(), null, null)); }
@Override public Object convertType(Object sourceValue, FieldType origSourceType, FieldType targetType) throws AtlasConversionException { if (origSourceType == null || targetType == null) { throw new AtlasConversionException("FieldTypes must be specified on convertType method."); } if (isAssignableFieldType(origSourceT...
DefaultAtlasConversionService implements AtlasConversionService { @Override public Object convertType(Object sourceValue, FieldType origSourceType, FieldType targetType) throws AtlasConversionException { if (origSourceType == null || targetType == null) { throw new AtlasConversionException("FieldTypes must be specified...
DefaultAtlasConversionService implements AtlasConversionService { @Override public Object convertType(Object sourceValue, FieldType origSourceType, FieldType targetType) throws AtlasConversionException { if (origSourceType == null || targetType == null) { throw new AtlasConversionException("FieldTypes must be specified...
DefaultAtlasConversionService implements AtlasConversionService { @Override public Object convertType(Object sourceValue, FieldType origSourceType, FieldType targetType) throws AtlasConversionException { if (origSourceType == null || targetType == null) { throw new AtlasConversionException("FieldTypes must be specified...
DefaultAtlasConversionService implements AtlasConversionService { @Override public Object convertType(Object sourceValue, FieldType origSourceType, FieldType targetType) throws AtlasConversionException { if (origSourceType == null || targetType == null) { throw new AtlasConversionException("FieldTypes must be specified...
@Test public void testProcessPropertyFieldEnvironment() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propField.setName("PATH"); propStrategy.readProperty(null, propField); assertNotNull(propField); assertNotNull(propField.getValue()); assertTrue(propField.getValue() instanceof S...
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testProcessPropertyFieldNotFound() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propField.setName("XXXXXXXXXXXXXXXXXXXXX"); propStrategy.readProperty(null, propField); assertNotNull(propField); assertNull(propField.getValue()); }
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testIsSupportedField() { assertFalse(module.isSupportedField(new PropertyField())); assertFalse(module.isSupportedField(new ConstantField())); assertTrue(module.isSupportedField(new CsvField())); }
@Override public Boolean isSupportedField(Field field) { return field instanceof CsvField || field instanceof FieldGroup; }
CsvModule extends BaseAtlasModule { @Override public Boolean isSupportedField(Field field) { return field instanceof CsvField || field instanceof FieldGroup; } }
CsvModule extends BaseAtlasModule { @Override public Boolean isSupportedField(Field field) { return field instanceof CsvField || field instanceof FieldGroup; } }
CsvModule extends BaseAtlasModule { @Override public Boolean isSupportedField(Field field) { return field instanceof CsvField || field instanceof FieldGroup; } @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInternalSession session); @Override void proce...
CsvModule extends BaseAtlasModule { @Override public Boolean isSupportedField(Field field) { return field instanceof CsvField || field instanceof FieldGroup; } @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInternalSession session); @Override void proce...
@Test public void testProcessPropertyFieldJavaSystem() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propField.setName("java.specification.version"); propStrategy.readProperty(null, propField); assertNotNull(propField); assertNotNull(propField.getValue()); assertTrue(propField.ge...
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testProcessPropertyFieldDuplicateDefaultOrdering() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propField.setName("dupe-string"); propStrategy.readProperty(AtlasTestData.generateAtlasSession(), propField); assertNotNull(propField); assertNotNull(propField.getVa...
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testProcessPropertyFieldNull() throws Exception { propStrategy.readProperty(null, null); }
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testProcessPropertyFieldNullName() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propStrategy.readProperty(null, propField); }
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testProcessPropertyFieldEmptyName() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propField.setName(""); propStrategy.readProperty(null, propField); }
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testProcessPropertyFieldMappingDefined() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propField.setName("prop-int"); propStrategy.readProperty(AtlasTestData.generateAtlasSession(), propField); assertNotNull(propField); assertNotNull(propField.getValue()); asser...
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testProcessPropertyFieldMappingDefinedNullMapping() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propField.setName("prop-int"); AtlasMapping mapping = AtlasTestData.generateAtlasMapping(); mapping.setProperties(null); propStrategy.readProperty(null, propField);...
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testProcessPropertyFieldMappingDefinedNullProperties() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propField.setName("prop-int"); AtlasMapping mapping = AtlasTestData.generateAtlasMapping(); mapping.setProperties(null); propStrategy.readProperty(null, propFiel...
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testProcessPropertyFieldMappingDefinedEmptyProperties() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propField.setName("prop-int"); AtlasMapping mapping = AtlasTestData.generateAtlasMapping(); mapping.getProperties().getProperty().clear(); propStrategy.readProp...
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testProcessPropertyFieldMappingDefinedNullRuntime() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propField.setName("prop-int"); propStrategy.readProperty(AtlasTestData.generateAtlasSession(), propField); assertNotNull(propField); assertNotNull(propField.getValu...
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testSchema() throws Exception { final String source = "header1,header2,header3\n" + "l1r1,l1r2,l1r3\n" + "l2r1,l2r2,l2r3\n" + "l3r1,l3r2,l3r3\n"; DfdlInspectionRequest request = new DfdlInspectionRequest(); request.setType(InspectionType.SCHEMA); request.setDfdlSchemaName("csv"); request.getOptions()....
@POST @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) @Path("/inspect") @Operation(summary = "Inspect DFDL", description = "Inspect a DFDL schema or instance and return a Document object") @RequestBody(description = "DfdlInspectionRequest object", content = @Content(schema = @Schema(...
DfdlService { @POST @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) @Path("/inspect") @Operation(summary = "Inspect DFDL", description = "Inspect a DFDL schema or instance and return a Document object") @RequestBody(description = "DfdlInspectionRequest object", content = @Content(sch...
DfdlService { @POST @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) @Path("/inspect") @Operation(summary = "Inspect DFDL", description = "Inspect a DFDL schema or instance and return a Document object") @RequestBody(description = "DfdlInspectionRequest object", content = @Content(sch...
DfdlService { @POST @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) @Path("/inspect") @Operation(summary = "Inspect DFDL", description = "Inspect a DFDL schema or instance and return a Document object") @RequestBody(description = "DfdlInspectionRequest object", content = @Content(sch...
DfdlService { @POST @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) @Path("/inspect") @Operation(summary = "Inspect DFDL", description = "Inspect a DFDL schema or instance and return a Document object") @RequestBody(description = "DfdlInspectionRequest object", content = @Content(sch...
@Test public void testProcessPropertyFieldMappingDefinedEmptyRuntime() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propField.setName("prop-int"); propStrategy.readProperty(AtlasTestData.generateAtlasSession(), propField); assertNotNull(propField); assertNotNull(propField.getVal...
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testProcessPropertyFieldRuntime() throws Exception { PropertyField propField = AtlasModelFactory.createPropertyField(); propField.setName("key-float"); propStrategy.readProperty(AtlasTestData.generateAtlasSession(), propField); assertNotNull(propField); assertNotNull(propField.getValue()); assertTrue(...
@Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Null or ...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
DefaultAtlasPropertyStrategy implements AtlasPropertyStrategy { @Override public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException { if (propertyField == null || propertyField.getName() == null || propertyField.getName().trim().length() == 0)...
@Test public void testIsEmpty() { assertTrue(AtlasUtil.isEmpty(null)); assertTrue(AtlasUtil.isEmpty("")); assertTrue(AtlasUtil.isEmpty(" ")); assertTrue(AtlasUtil.isEmpty("\n\n")); assertTrue(AtlasUtil.isEmpty("\t\t")); assertTrue(AtlasUtil.isEmpty("\r\n")); assertTrue(AtlasUtil.isEmpty("\f\t\n\r")); assertFalse(AtlasU...
public static boolean isEmpty(String string) { return string == null || string.isEmpty() || string.matches("^\\s+$"); }
AtlasUtil { public static boolean isEmpty(String string) { return string == null || string.isEmpty() || string.matches("^\\s+$"); } }
AtlasUtil { public static boolean isEmpty(String string) { return string == null || string.isEmpty() || string.matches("^\\s+$"); } }
AtlasUtil { public static boolean isEmpty(String string) { return string == null || string.isEmpty() || string.matches("^\\s+$"); } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); static boolean matchUriModule(String uriA, String uriB); static String getUriScheme(String atlasUr...
AtlasUtil { public static boolean isEmpty(String string) { return string == null || string.isEmpty() || string.matches("^\\s+$"); } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); static boolean matchUriModule(String uriA, String uriB); static String getUriScheme(String atlasUr...
@Test public void testFindClassesForPackage() { List<Class<?>> classes = AtlasUtil.findClassesForPackage("io.atlasmap.v2"); assertNotNull(classes); assertTrue(classes.stream().map(Class::getName).collect(Collectors.toList()).containsAll( Arrays.asList("io.atlasmap.v2.Field", "io.atlasmap.v2.AtlasMapping", "io.atlasmap....
public static List<Class<?>> findClassesForPackage(String scannedPackage) { String scannedPath = scannedPackage.replace('.', '/'); URL scannedUrl = getResource(scannedPath); if (scannedUrl == null) { throw new IllegalArgumentException(String.format("Unable to detect resources for url='%s' for package='%s'", scannedPath...
AtlasUtil { public static List<Class<?>> findClassesForPackage(String scannedPackage) { String scannedPath = scannedPackage.replace('.', '/'); URL scannedUrl = getResource(scannedPath); if (scannedUrl == null) { throw new IllegalArgumentException(String.format("Unable to detect resources for url='%s' for package='%s'",...
AtlasUtil { public static List<Class<?>> findClassesForPackage(String scannedPackage) { String scannedPath = scannedPackage.replace('.', '/'); URL scannedUrl = getResource(scannedPath); if (scannedUrl == null) { throw new IllegalArgumentException(String.format("Unable to detect resources for url='%s' for package='%s'",...
AtlasUtil { public static List<Class<?>> findClassesForPackage(String scannedPackage) { String scannedPath = scannedPackage.replace('.', '/'); URL scannedUrl = getResource(scannedPath); if (scannedUrl == null) { throw new IllegalArgumentException(String.format("Unable to detect resources for url='%s' for package='%s'",...
AtlasUtil { public static List<Class<?>> findClassesForPackage(String scannedPackage) { String scannedPath = scannedPackage.replace('.', '/'); URL scannedUrl = getResource(scannedPath); if (scannedUrl == null) { throw new IllegalArgumentException(String.format("Unable to detect resources for url='%s' for package='%s'",...
@Test public void testGetUriDataType() { assertEquals("util", AtlasUtil.getUriDataType("atlas:java:util?param1=value1&param2=value2")); }
public static String getUriDataType(String atlasUri) { List<String> uriA = AtlasUtil.getUriPartsAsArray(atlasUri); if (uriA == null || uriA.size() < 3 || isEmpty(uriA.get(2))) { return null; } return uriA.get(2); }
AtlasUtil { public static String getUriDataType(String atlasUri) { List<String> uriA = AtlasUtil.getUriPartsAsArray(atlasUri); if (uriA == null || uriA.size() < 3 || isEmpty(uriA.get(2))) { return null; } return uriA.get(2); } }
AtlasUtil { public static String getUriDataType(String atlasUri) { List<String> uriA = AtlasUtil.getUriPartsAsArray(atlasUri); if (uriA == null || uriA.size() < 3 || isEmpty(uriA.get(2))) { return null; } return uriA.get(2); } }
AtlasUtil { public static String getUriDataType(String atlasUri) { List<String> uriA = AtlasUtil.getUriPartsAsArray(atlasUri); if (uriA == null || uriA.size() < 3 || isEmpty(uriA.get(2))) { return null; } return uriA.get(2); } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); sta...
AtlasUtil { public static String getUriDataType(String atlasUri) { List<String> uriA = AtlasUtil.getUriPartsAsArray(atlasUri); if (uriA == null || uriA.size() < 3 || isEmpty(uriA.get(2))) { return null; } return uriA.get(2); } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); sta...
@Test(expected = IllegalArgumentException.class) public void testFindClassesForPackageIllegalArgumentException() { AtlasUtil.findClassesForPackage("io.atlasmapv2"); }
public static List<Class<?>> findClassesForPackage(String scannedPackage) { String scannedPath = scannedPackage.replace('.', '/'); URL scannedUrl = getResource(scannedPath); if (scannedUrl == null) { throw new IllegalArgumentException(String.format("Unable to detect resources for url='%s' for package='%s'", scannedPath...
AtlasUtil { public static List<Class<?>> findClassesForPackage(String scannedPackage) { String scannedPath = scannedPackage.replace('.', '/'); URL scannedUrl = getResource(scannedPath); if (scannedUrl == null) { throw new IllegalArgumentException(String.format("Unable to detect resources for url='%s' for package='%s'",...
AtlasUtil { public static List<Class<?>> findClassesForPackage(String scannedPackage) { String scannedPath = scannedPackage.replace('.', '/'); URL scannedUrl = getResource(scannedPath); if (scannedUrl == null) { throw new IllegalArgumentException(String.format("Unable to detect resources for url='%s' for package='%s'",...
AtlasUtil { public static List<Class<?>> findClassesForPackage(String scannedPackage) { String scannedPath = scannedPackage.replace('.', '/'); URL scannedUrl = getResource(scannedPath); if (scannedUrl == null) { throw new IllegalArgumentException(String.format("Unable to detect resources for url='%s' for package='%s'",...
AtlasUtil { public static List<Class<?>> findClassesForPackage(String scannedPackage) { String scannedPath = scannedPackage.replace('.', '/'); URL scannedUrl = getResource(scannedPath); if (scannedUrl == null) { throw new IllegalArgumentException(String.format("Unable to detect resources for url='%s' for package='%s'",...
@Test public void testFind() { File file = Paths.get("src" + File.separator + "main" + File.separator + "java" + File.separator + "io" + File.separator + "atlasmap" + File.separator + "core").toFile(); assertEquals(0, AtlasUtil.find(file, ".").size()); }
protected static List<Class<?>> find(File file, String scannedPackage) { List<Class<?>> classes = new ArrayList<Class<?>>(); String resource = scannedPackage + '.' + file.getName(); if (file.isDirectory()) { for (File child : file.listFiles()) { classes.addAll(find(child, resource)); } } else if (resource.endsWith(".cl...
AtlasUtil { protected static List<Class<?>> find(File file, String scannedPackage) { List<Class<?>> classes = new ArrayList<Class<?>>(); String resource = scannedPackage + '.' + file.getName(); if (file.isDirectory()) { for (File child : file.listFiles()) { classes.addAll(find(child, resource)); } } else if (resource.e...
AtlasUtil { protected static List<Class<?>> find(File file, String scannedPackage) { List<Class<?>> classes = new ArrayList<Class<?>>(); String resource = scannedPackage + '.' + file.getName(); if (file.isDirectory()) { for (File child : file.listFiles()) { classes.addAll(find(child, resource)); } } else if (resource.e...
AtlasUtil { protected static List<Class<?>> find(File file, String scannedPackage) { List<Class<?>> classes = new ArrayList<Class<?>>(); String resource = scannedPackage + '.' + file.getName(); if (file.isDirectory()) { for (File child : file.listFiles()) { classes.addAll(find(child, resource)); } } else if (resource.e...
AtlasUtil { protected static List<Class<?>> find(File file, String scannedPackage) { List<Class<?>> classes = new ArrayList<Class<?>>(); String resource = scannedPackage + '.' + file.getName(); if (file.isDirectory()) { for (File child : file.listFiles()) { classes.addAll(find(child, resource)); } } else if (resource.e...
@Test public void testLoadPropertiesFromURL() throws Exception { URL url = Paths.get("src" + File.separator + "test" + File.separator + "resources" + File.separator + "AtlasUtilTest.properties").toUri().toURL(); Properties properties = AtlasUtil.loadPropertiesFromURL(url); assertNotNull(properties); assertEquals("value...
public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } }
AtlasUtil { public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } } }
AtlasUtil { public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } } }
AtlasUtil { public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); static boolean matchUriModule(Str...
AtlasUtil { public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); static boolean matchUriModule(Str...
@Test(expected = NullPointerException.class) public void testLoadPropertiesFromURLNullPointerException() throws Exception { AtlasUtil.loadPropertiesFromURL(null); }
public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } }
AtlasUtil { public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } } }
AtlasUtil { public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } } }
AtlasUtil { public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); static boolean matchUriModule(Str...
AtlasUtil { public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); static boolean matchUriModule(Str...
@Test(expected = MalformedURLException.class) public void testLoadPropertiesFromURLMalformedURLException() throws Exception { AtlasUtil.loadPropertiesFromURL(new URL("invalid URL")); }
public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } }
AtlasUtil { public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } } }
AtlasUtil { public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } } }
AtlasUtil { public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); static boolean matchUriModule(Str...
AtlasUtil { public static Properties loadPropertiesFromURL(URL url) throws Exception { try (InputStream is = url.openStream()) { Properties prop = new Properties(); prop.load(is); return prop; } } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); static boolean matchUriModule(Str...
@Ignore("https: @Test public void testInstance() throws Exception { final String source = "header1,header2,header3\n" + "l1r1,l1r2,l1r3\n" + "l2r1,l2r2,l2r3\n" + "l3r1,l3r2,l3r3\n"; DfdlInspectionRequest request = new DfdlInspectionRequest(); request.setType(InspectionType.INSTANCE); request.setDfdlSchemaName("csv"); r...
@POST @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) @Path("/inspect") @Operation(summary = "Inspect DFDL", description = "Inspect a DFDL schema or instance and return a Document object") @RequestBody(description = "DfdlInspectionRequest object", content = @Content(schema = @Schema(...
DfdlService { @POST @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) @Path("/inspect") @Operation(summary = "Inspect DFDL", description = "Inspect a DFDL schema or instance and return a Document object") @RequestBody(description = "DfdlInspectionRequest object", content = @Content(sch...
DfdlService { @POST @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) @Path("/inspect") @Operation(summary = "Inspect DFDL", description = "Inspect a DFDL schema or instance and return a Document object") @RequestBody(description = "DfdlInspectionRequest object", content = @Content(sch...
DfdlService { @POST @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) @Path("/inspect") @Operation(summary = "Inspect DFDL", description = "Inspect a DFDL schema or instance and return a Document object") @RequestBody(description = "DfdlInspectionRequest object", content = @Content(sch...
DfdlService { @POST @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) @Path("/inspect") @Operation(summary = "Inspect DFDL", description = "Inspect a DFDL schema or instance and return a Document object") @RequestBody(description = "DfdlInspectionRequest object", content = @Content(sch...
@Test public void testMatchUriModule() { assertFalse(AtlasUtil.matchUriModule(null, null)); assertFalse(AtlasUtil.matchUriModule(null, "atlas:java")); assertFalse(AtlasUtil.matchUriModule("atlas:java", null)); assertFalse(AtlasUtil.matchUriModule("", "")); assertFalse(AtlasUtil.matchUriModule("atlas:java", "")); assert...
public static boolean matchUriModule(String uriA, String uriB) { if (uriA == null || uriB == null) { return false; } if (getUriModule(uriA) == null || getUriModule(uriB) == null) { return false; } return getUriModule(uriA).equalsIgnoreCase(getUriModule(uriB)); }
AtlasUtil { public static boolean matchUriModule(String uriA, String uriB) { if (uriA == null || uriB == null) { return false; } if (getUriModule(uriA) == null || getUriModule(uriB) == null) { return false; } return getUriModule(uriA).equalsIgnoreCase(getUriModule(uriB)); } }
AtlasUtil { public static boolean matchUriModule(String uriA, String uriB) { if (uriA == null || uriB == null) { return false; } if (getUriModule(uriA) == null || getUriModule(uriB) == null) { return false; } return getUriModule(uriA).equalsIgnoreCase(getUriModule(uriB)); } }
AtlasUtil { public static boolean matchUriModule(String uriA, String uriB) { if (uriA == null || uriB == null) { return false; } if (getUriModule(uriA) == null || getUriModule(uriB) == null) { return false; } return getUriModule(uriA).equalsIgnoreCase(getUriModule(uriB)); } static Properties loadPropertiesFromURL(URL ...
AtlasUtil { public static boolean matchUriModule(String uriA, String uriB) { if (uriA == null || uriB == null) { return false; } if (getUriModule(uriA) == null || getUriModule(uriB) == null) { return false; } return getUriModule(uriA).equalsIgnoreCase(getUriModule(uriB)); } static Properties loadPropertiesFromURL(URL ...
@Test(expected = IllegalStateException.class) public void testValidateUriIllegalStateException() { AtlasUtil.validateUri("java:atlas"); }
protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atlasUri + " mul...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
@Test(expected = IllegalStateException.class) public void testValidateUriIllegalStateExceptionMultipleQuestionMark() { AtlasUtil.validateUri("atlas:?java?"); }
protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atlasUri + " mul...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
@Test public void testValidateUriSingleQuestionMark() { AtlasUtil.validateUri("atlas:java?"); }
protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atlasUri + " mul...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
@Test public void testValidateUri() { AtlasUtil.validateUri("atlas:java"); }
protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atlasUri + " mul...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
AtlasUtil { protected static void validateUri(String atlasUri) { if (!atlasUri.startsWith("atlas:")) { throw new IllegalStateException( "Invalid atlas uri " + atlasUri + " does not begin with 'atlas:': " + atlasUri); } if (countCharacters(atlasUri, '?') > 1) { throw new IllegalStateException("Invalid atlas uri " + atla...
@Test public void testGetUriPartsAsArray() { assertNull(AtlasUtil.getUriPartsAsArray(null)); assertEquals(2, AtlasUtil.getUriPartsAsArray("atlas:?java").size()); assertEquals(2, AtlasUtil.getUriPartsAsArray("atlas:?").size()); assertEquals(2, AtlasUtil.getUriPartsAsArray("atlas:").size()); }
protected static List<String> getUriPartsAsArray(String atlasUri) { if (atlasUri == null) { return null; } if (AtlasUtil.isEmpty(atlasUri)) { return Arrays.asList(new String[0]); } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atlasUri.split("\\?", 2); } List<String> parts = new Ar...
AtlasUtil { protected static List<String> getUriPartsAsArray(String atlasUri) { if (atlasUri == null) { return null; } if (AtlasUtil.isEmpty(atlasUri)) { return Arrays.asList(new String[0]); } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atlasUri.split("\\?", 2); } List<String> pa...
AtlasUtil { protected static List<String> getUriPartsAsArray(String atlasUri) { if (atlasUri == null) { return null; } if (AtlasUtil.isEmpty(atlasUri)) { return Arrays.asList(new String[0]); } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atlasUri.split("\\?", 2); } List<String> pa...
AtlasUtil { protected static List<String> getUriPartsAsArray(String atlasUri) { if (atlasUri == null) { return null; } if (AtlasUtil.isEmpty(atlasUri)) { return Arrays.asList(new String[0]); } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atlasUri.split("\\?", 2); } List<String> pa...
AtlasUtil { protected static List<String> getUriPartsAsArray(String atlasUri) { if (atlasUri == null) { return null; } if (AtlasUtil.isEmpty(atlasUri)) { return Arrays.asList(new String[0]); } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atlasUri.split("\\?", 2); } List<String> pa...
@Test public void testGetUriScheme() { assertNull(AtlasUtil.getUriScheme(null)); }
public static String getUriScheme(String atlasUri) { List<String> uriA = AtlasUtil.getUriPartsAsArray(atlasUri); if (uriA == null || uriA.size() < 1 || isEmpty(uriA.get(0))) { return null; } return uriA.get(0); }
AtlasUtil { public static String getUriScheme(String atlasUri) { List<String> uriA = AtlasUtil.getUriPartsAsArray(atlasUri); if (uriA == null || uriA.size() < 1 || isEmpty(uriA.get(0))) { return null; } return uriA.get(0); } }
AtlasUtil { public static String getUriScheme(String atlasUri) { List<String> uriA = AtlasUtil.getUriPartsAsArray(atlasUri); if (uriA == null || uriA.size() < 1 || isEmpty(uriA.get(0))) { return null; } return uriA.get(0); } }
AtlasUtil { public static String getUriScheme(String atlasUri) { List<String> uriA = AtlasUtil.getUriPartsAsArray(atlasUri); if (uriA == null || uriA.size() < 1 || isEmpty(uriA.get(0))) { return null; } return uriA.get(0); } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); stati...
AtlasUtil { public static String getUriScheme(String atlasUri) { List<String> uriA = AtlasUtil.getUriPartsAsArray(atlasUri); if (uriA == null || uriA.size() < 1 || isEmpty(uriA.get(0))) { return null; } return uriA.get(0); } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); stati...
@Test public void testGetUriParameters() { assertNull(AtlasUtil.getUriParameters(null)); assertEquals(0, AtlasUtil.getUriParameters("").size()); assertEquals(0, AtlasUtil.getUriParameters("atlas:").size()); assertEquals(0, AtlasUtil.getUriParameters("atlas:?").size()); assertEquals(2, AtlasUtil.getUriParameters("atlas:...
public static Map<String, String> getUriParameters(String atlasUri) { if (atlasUri == null) { return null; } Map<String, String> params = new HashMap<String, String>(); if (AtlasUtil.isEmpty(atlasUri)) { return params; } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atlasUri.split(...
AtlasUtil { public static Map<String, String> getUriParameters(String atlasUri) { if (atlasUri == null) { return null; } Map<String, String> params = new HashMap<String, String>(); if (AtlasUtil.isEmpty(atlasUri)) { return params; } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atl...
AtlasUtil { public static Map<String, String> getUriParameters(String atlasUri) { if (atlasUri == null) { return null; } Map<String, String> params = new HashMap<String, String>(); if (AtlasUtil.isEmpty(atlasUri)) { return params; } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atl...
AtlasUtil { public static Map<String, String> getUriParameters(String atlasUri) { if (atlasUri == null) { return null; } Map<String, String> params = new HashMap<String, String>(); if (AtlasUtil.isEmpty(atlasUri)) { return params; } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atl...
AtlasUtil { public static Map<String, String> getUriParameters(String atlasUri) { if (atlasUri == null) { return null; } Map<String, String> params = new HashMap<String, String>(); if (AtlasUtil.isEmpty(atlasUri)) { return params; } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atl...
@Test(expected = IllegalArgumentException.class) public void testGetUriParametersIllegalArgumentException() { AtlasUtil.getUriParameters("atlas:?%%XX"); }
public static Map<String, String> getUriParameters(String atlasUri) { if (atlasUri == null) { return null; } Map<String, String> params = new HashMap<String, String>(); if (AtlasUtil.isEmpty(atlasUri)) { return params; } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atlasUri.split(...
AtlasUtil { public static Map<String, String> getUriParameters(String atlasUri) { if (atlasUri == null) { return null; } Map<String, String> params = new HashMap<String, String>(); if (AtlasUtil.isEmpty(atlasUri)) { return params; } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atl...
AtlasUtil { public static Map<String, String> getUriParameters(String atlasUri) { if (atlasUri == null) { return null; } Map<String, String> params = new HashMap<String, String>(); if (AtlasUtil.isEmpty(atlasUri)) { return params; } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atl...
AtlasUtil { public static Map<String, String> getUriParameters(String atlasUri) { if (atlasUri == null) { return null; } Map<String, String> params = new HashMap<String, String>(); if (AtlasUtil.isEmpty(atlasUri)) { return params; } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atl...
AtlasUtil { public static Map<String, String> getUriParameters(String atlasUri) { if (atlasUri == null) { return null; } Map<String, String> params = new HashMap<String, String>(); if (AtlasUtil.isEmpty(atlasUri)) { return params; } validateUri(atlasUri); String[] pass1 = null; if (atlasUri.contains("?")) { pass1 = atl...
@Test public void testGetUriParameterValue() { assertNull(AtlasUtil.getUriParameterValue("atlas:?java", "java")); assertEquals("value1", AtlasUtil.getUriParameterValue("atlas:?param1=value1&param2=value2", "param1")); assertEquals("value1", AtlasUtil.getUriParameterValue("atlas:?param1=value1&param2=", "param1")); asse...
public static String getUriParameterValue(String atlasUri, String key) { Map<String, String> params = getUriParameters(atlasUri); if (params == null || params.isEmpty()) { return null; } return params.get(key); }
AtlasUtil { public static String getUriParameterValue(String atlasUri, String key) { Map<String, String> params = getUriParameters(atlasUri); if (params == null || params.isEmpty()) { return null; } return params.get(key); } }
AtlasUtil { public static String getUriParameterValue(String atlasUri, String key) { Map<String, String> params = getUriParameters(atlasUri); if (params == null || params.isEmpty()) { return null; } return params.get(key); } }
AtlasUtil { public static String getUriParameterValue(String atlasUri, String key) { Map<String, String> params = getUriParameters(atlasUri); if (params == null || params.isEmpty()) { return null; } return params.get(key); } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); stati...
AtlasUtil { public static String getUriParameterValue(String atlasUri, String key) { Map<String, String> params = getUriParameters(atlasUri); if (params == null || params.isEmpty()) { return null; } return params.get(key); } static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); stati...
@Test public void testCreateSeparateMapping() { Mapping fm = AtlasModelFactory.createMapping(MappingType.SEPARATE); validateMapping(fm, MappingType.SEPARATE); }
@SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP: case SEPARATE: fm =...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
@Test public void testFindClassesFromJar() throws Exception { URL jarFile = new File("target" + File.separator + "test-dependencies" + File.separator + "atlas-model.jar").toURI().toURL(); String urlString = "jar:file:" + jarFile.getPath() + "!/"; assertFalse(AtlasUtil.findClassesFromJar(new URL(urlString)).isEmpty()); ...
protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar file=%s msg...
AtlasUtil { protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar...
AtlasUtil { protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar...
AtlasUtil { protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar...
AtlasUtil { protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar...
@Test public void testFindClassesFromJarFileNotFoundIOException() throws Exception { String urlString = "jar:file:" + File.separator + "target" + File.separator + "test-dependencies" + File.separator + "atlas-model.jar!/"; assertEquals(0, AtlasUtil.findClassesFromJar(new URL(urlString)).size()); }
protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar file=%s msg...
AtlasUtil { protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar...
AtlasUtil { protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar...
AtlasUtil { protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar...
AtlasUtil { protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar...
@Test(expected = ClassCastException.class) public void testFindClassesFromJarClassCastException() throws Exception { URL url = Paths.get("target" + File.separator + "test-dependencies" + File.separator + "atlas-model.jar").toUri().toURL(); AtlasUtil.findClassesFromJar(url); }
protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar file=%s msg...
AtlasUtil { protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar...
AtlasUtil { protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar...
AtlasUtil { protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar...
AtlasUtil { protected static List<Class<?>> findClassesFromJar(URL jarFileUrl) { List<Class<?>> classNames = new ArrayList<Class<?>>(); JarURLConnection connection = null; try { connection = (JarURLConnection) jarFileUrl.openConnection(); } catch (IOException e) { LOG.warn(String.format("Unable to load classes from jar...
@Test public void testToAuditStatus() { assertNotNull(AtlasUtil.toAuditStatus(ValidationStatus.ERROR)); assertNotNull(AtlasUtil.toAuditStatus(ValidationStatus.WARN)); assertNotNull(AtlasUtil.toAuditStatus(ValidationStatus.INFO)); assertNotNull(AtlasUtil.toAuditStatus(ValidationStatus.ALL)); assertNotNull(AtlasUtil.toAu...
public static AuditStatus toAuditStatus(ValidationStatus vstatus) { switch (vstatus) { case ERROR: return AuditStatus.ERROR; case WARN: return AuditStatus.WARN; case INFO: return AuditStatus.INFO; case ALL: return AuditStatus.ALL; case NONE: return AuditStatus.NONE; default: return null; } }
AtlasUtil { public static AuditStatus toAuditStatus(ValidationStatus vstatus) { switch (vstatus) { case ERROR: return AuditStatus.ERROR; case WARN: return AuditStatus.WARN; case INFO: return AuditStatus.INFO; case ALL: return AuditStatus.ALL; case NONE: return AuditStatus.NONE; default: return null; } } }
AtlasUtil { public static AuditStatus toAuditStatus(ValidationStatus vstatus) { switch (vstatus) { case ERROR: return AuditStatus.ERROR; case WARN: return AuditStatus.WARN; case INFO: return AuditStatus.INFO; case ALL: return AuditStatus.ALL; case NONE: return AuditStatus.NONE; default: return null; } } }
AtlasUtil { public static AuditStatus toAuditStatus(ValidationStatus vstatus) { switch (vstatus) { case ERROR: return AuditStatus.ERROR; case WARN: return AuditStatus.WARN; case INFO: return AuditStatus.INFO; case ALL: return AuditStatus.ALL; case NONE: return AuditStatus.NONE; default: return null; } } static Propert...
AtlasUtil { public static AuditStatus toAuditStatus(ValidationStatus vstatus) { switch (vstatus) { case ERROR: return AuditStatus.ERROR; case WARN: return AuditStatus.WARN; case INFO: return AuditStatus.INFO; case ALL: return AuditStatus.ALL; case NONE: return AuditStatus.NONE; default: return null; } } static Propert...
@Test public void testGetModuleClass() { assertNotNull(module.getModuleClass()); }
@Override public Class<AtlasModule> getModuleClass() { return moduleClass; }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public Class<AtlasModule> getModuleClass() { return moduleClass; } }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public Class<AtlasModule> getModuleClass() { return moduleClass; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> pac...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public Class<AtlasModule> getModuleClass() { return moduleClass; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> pac...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public Class<AtlasModule> getModuleClass() { return moduleClass; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> pac...
@Test public void testGetConstructor() { assertNull(module.getConstructor()); }
public Constructor<AtlasModule> getConstructor() { return constructor; }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { public Constructor<AtlasModule> getConstructor() { return constructor; } }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { public Constructor<AtlasModule> getConstructor() { return constructor; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> package...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { public Constructor<AtlasModule> getConstructor() { return constructor; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> package...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { public Constructor<AtlasModule> getConstructor() { return constructor; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> package...
@Test public void testGetFormats() { assertNotNull(module.getFormats()); }
public List<String> getFormats() { return formats; }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { public List<String> getFormats() { return formats; } }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { public List<String> getFormats() { return formats; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> packageNames); }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { public List<String> getFormats() { return formats; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> packageNames); @Override St...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { public List<String> getFormats() { return formats; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> packageNames); @Override St...
@Test public void testGetDataFormats() { assertNotNull(module.getDataFormats()); List<String> packageNames = new ArrayList<>(); packageNames.add("io.atlasmap.core"); DefaultAtlasModuleInfo moduleInfo = new DefaultAtlasModuleInfo("name", "atlas:java", AtlasModule.class, null, null, packageNames); assertNotNull(moduleInf...
@Override public String[] getDataFormats() { if (formats != null) { return formats.toArray(new String[formats.size()]); } return new String[0]; }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String[] getDataFormats() { if (formats != null) { return formats.toArray(new String[formats.size()]); } return new String[0]; } }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String[] getDataFormats() { if (formats != null) { return formats.toArray(new String[formats.size()]); } return new String[0]; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasMo...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String[] getDataFormats() { if (formats != null) { return formats.toArray(new String[formats.size()]); } return new String[0]; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasMo...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String[] getDataFormats() { if (formats != null) { return formats.toArray(new String[formats.size()]); } return new String[0]; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasMo...
@Test public void testGetModuleClassName() { assertNotNull(module.getModuleClassName()); List<String> formats = new ArrayList<>(); formats.add("java"); List<String> packageNames = new ArrayList<>(); packageNames.add("io.atlasmap.core"); DefaultAtlasModuleInfo moduleInfo = new DefaultAtlasModuleInfo("name", "atlas:java"...
@Override public String getModuleClassName() { if (moduleClass != null) { return moduleClass.getName(); } return null; }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getModuleClassName() { if (moduleClass != null) { return moduleClass.getName(); } return null; } }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getModuleClassName() { if (moduleClass != null) { return moduleClass.getName(); } return null; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, ...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getModuleClassName() { if (moduleClass != null) { return moduleClass.getName(); } return null; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, ...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getModuleClassName() { if (moduleClass != null) { return moduleClass.getName(); } return null; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, ...
@Test public void testGetPackageNames() { assertNotNull(module.getPackageNames()); List<String> formats = new ArrayList<>(); formats.add("java"); List<String> packageNames = new ArrayList<>(); DefaultAtlasModuleInfo moduleInfo = new DefaultAtlasModuleInfo("name", "atlas:java", null, null, formats, packageNames); assert...
@Override public String[] getPackageNames() { if (packageNames == null || packageNames.size() < 1) { return new String[0]; } return packageNames.toArray(new String[packageNames.size()]); }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String[] getPackageNames() { if (packageNames == null || packageNames.size() < 1) { return new String[0]; } return packageNames.toArray(new String[packageNames.size()]); } }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String[] getPackageNames() { if (packageNames == null || packageNames.size() < 1) { return new String[0]; } return packageNames.toArray(new String[packageNames.size()]); } DefaultAtlasModuleInfo(String name, String uri, Class<At...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String[] getPackageNames() { if (packageNames == null || packageNames.size() < 1) { return new String[0]; } return packageNames.toArray(new String[packageNames.size()]); } DefaultAtlasModuleInfo(String name, String uri, Class<At...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String[] getPackageNames() { if (packageNames == null || packageNames.size() < 1) { return new String[0]; } return packageNames.toArray(new String[packageNames.size()]); } DefaultAtlasModuleInfo(String name, String uri, Class<At...
@Test public void testCreateMapMapping() { Mapping fm = AtlasModelFactory.createMapping(MappingType.MAP); validateMapping(fm, MappingType.MAP); }
@SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP: case SEPARATE: fm =...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
@Test public void testDetectArrayClass() { assertEquals("int", classInspectionService.inspectClass(int[].class, CollectionType.ARRAY, null).getClassName()); assertEquals("java.lang.String", classInspectionService.inspectClass(String[][].class, CollectionType.ARRAY, null).getClassName()); assertEquals("java.util.List", ...
private Class<?> detectArrayClass(Class<?> clazz) { Integer arrayDim = new Integer(0); if (clazz == null) { return null; } if (!clazz.isArray()) { return clazz; } arrayDim++; Class<?> tmpClazz = clazz.getComponentType(); while (tmpClazz != null && tmpClazz.isArray() && arrayDim < MAX_ARRAY_DIM_LIMIT) { arrayDim++; tmpC...
ClassInspectionService { private Class<?> detectArrayClass(Class<?> clazz) { Integer arrayDim = new Integer(0); if (clazz == null) { return null; } if (!clazz.isArray()) { return clazz; } arrayDim++; Class<?> tmpClazz = clazz.getComponentType(); while (tmpClazz != null && tmpClazz.isArray() && arrayDim < MAX_ARRAY_DIM_...
ClassInspectionService { private Class<?> detectArrayClass(Class<?> clazz) { Integer arrayDim = new Integer(0); if (clazz == null) { return null; } if (!clazz.isArray()) { return clazz; } arrayDim++; Class<?> tmpClazz = clazz.getComponentType(); while (tmpClazz != null && tmpClazz.isArray() && arrayDim < MAX_ARRAY_DIM_...
ClassInspectionService { private Class<?> detectArrayClass(Class<?> clazz) { Integer arrayDim = new Integer(0); if (clazz == null) { return null; } if (!clazz.isArray()) { return clazz; } arrayDim++; Class<?> tmpClazz = clazz.getComponentType(); while (tmpClazz != null && tmpClazz.isArray() && arrayDim < MAX_ARRAY_DIM_...
ClassInspectionService { private Class<?> detectArrayClass(Class<?> clazz) { Integer arrayDim = new Integer(0); if (clazz == null) { return null; } if (!clazz.isArray()) { return clazz; } arrayDim++; Class<?> tmpClazz = clazz.getComponentType(); while (tmpClazz != null && tmpClazz.isArray() && arrayDim < MAX_ARRAY_DIM_...
@Test public void testGetName() { assertNotNull(module.getName()); }
@Override public String getName() { return name; }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getName() { return name; } }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getName() { return name; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> packageNames); }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getName() { return name; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> packageNames); @Override Stri...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getName() { return name; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> packageNames); @Override Stri...
@Test public void testGetUri() { assertNotNull(module.getUri()); }
@Override public String getUri() { return uri; }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getUri() { return uri; } }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getUri() { return uri; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> packageNames); }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getUri() { return uri; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> packageNames); @Override String...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getUri() { return uri; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> packageNames); @Override String...
@Test public void testIsSourceSupported() { assertNull(module.isSourceSupported()); }
@Override public Boolean isSourceSupported() { return sourceSupported; }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public Boolean isSourceSupported() { return sourceSupported; } }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public Boolean isSourceSupported() { return sourceSupported; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> package...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public Boolean isSourceSupported() { return sourceSupported; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> package...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public Boolean isSourceSupported() { return sourceSupported; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> package...
@Test public void testIsTargetSupported() { assertNull(module.isTargetSupported()); }
@Override public Boolean isTargetSupported() { return targetSupported; }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public Boolean isTargetSupported() { return targetSupported; } }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public Boolean isTargetSupported() { return targetSupported; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> package...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public Boolean isTargetSupported() { return targetSupported; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> package...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public Boolean isTargetSupported() { return targetSupported; } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> package...
@Test public void testGetClassName() { assertNotNull(module.getClassName()); }
@Override public String getClassName() { return this.getClass().getName(); }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getClassName() { return this.getClass().getName(); } }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getClassName() { return this.getClass().getName(); } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> pac...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getClassName() { return this.getClass().getName(); } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> pac...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getClassName() { return this.getClass().getName(); } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<String> formats, List<String> pac...
@Test public void testGetVersion() { assertNull(module.getVersion()); }
@Override public String getVersion() { return this.getClass().getPackage().getImplementationVersion(); }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getVersion() { return this.getClass().getPackage().getImplementationVersion(); } }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getVersion() { return this.getClass().getPackage().getImplementationVersion(); } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<Strin...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getVersion() { return this.getClass().getPackage().getImplementationVersion(); } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<Strin...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String getVersion() { return this.getClass().getPackage().getImplementationVersion(); } DefaultAtlasModuleInfo(String name, String uri, Class<AtlasModule> moduleClass, Constructor<AtlasModule> constructor, List<Strin...
@Test public void testToString() { assertNotNull(module.toString()); }
@Override public String toString() { return "DefaultAtlasModuleInfo [name=" + name + ", uri=" + uri + ", sourceSupported=" + sourceSupported + ", targetSupported=" + targetSupported + ", moduleClass=" + moduleClass + ", constructor=" + constructor + ", formats=" + formats + ", packageNames=" + packageNames + "]"; }
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String toString() { return "DefaultAtlasModuleInfo [name=" + name + ", uri=" + uri + ", sourceSupported=" + sourceSupported + ", targetSupported=" + targetSupported + ", moduleClass=" + moduleClass + ", constructor=" + construct...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String toString() { return "DefaultAtlasModuleInfo [name=" + name + ", uri=" + uri + ", sourceSupported=" + sourceSupported + ", targetSupported=" + targetSupported + ", moduleClass=" + moduleClass + ", constructor=" + construct...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String toString() { return "DefaultAtlasModuleInfo [name=" + name + ", uri=" + uri + ", sourceSupported=" + sourceSupported + ", targetSupported=" + targetSupported + ", moduleClass=" + moduleClass + ", constructor=" + construct...
DefaultAtlasModuleInfo implements AtlasModuleInfo, AtlasModuleInfoMXBean { @Override public String toString() { return "DefaultAtlasModuleInfo [name=" + name + ", uri=" + uri + ", sourceSupported=" + sourceSupported + ", targetSupported=" + targetSupported + ", moduleClass=" + moduleClass + ", constructor=" + construct...
@Test public void testProcessPreValidation() throws AtlasException { module.processPreValidation(null); }
@Override public void processPreValidation(AtlasInternalSession session) throws AtlasException { }
PropertyModule extends BaseAtlasModule { @Override public void processPreValidation(AtlasInternalSession session) throws AtlasException { } }
PropertyModule extends BaseAtlasModule { @Override public void processPreValidation(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); }
PropertyModule extends BaseAtlasModule { @Override public void processPreValidation(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInternalSes...
PropertyModule extends BaseAtlasModule { @Override public void processPreValidation(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInternalSes...
@Test public void testProcessPreSourceExecution() throws AtlasException { module.processPreSourceExecution(null); }
@Override public void processPreSourceExecution(AtlasInternalSession session) throws AtlasException { }
PropertyModule extends BaseAtlasModule { @Override public void processPreSourceExecution(AtlasInternalSession session) throws AtlasException { } }
PropertyModule extends BaseAtlasModule { @Override public void processPreSourceExecution(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); }
PropertyModule extends BaseAtlasModule { @Override public void processPreSourceExecution(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasIntern...
PropertyModule extends BaseAtlasModule { @Override public void processPreSourceExecution(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasIntern...
@Test public void testProcessSourceFieldMapping() throws AtlasException { PropertyField field = mock(PropertyField.class); when(field.getName()).thenReturn("testProp"); Head head = mock(Head.class); when(head.getSourceField()).thenReturn(field); AtlasInternalSession session = mock(AtlasInternalSession.class); when(sess...
@Override public void readSourceValue(AtlasInternalSession session) throws AtlasException { AtlasPropertyStrategy strategy = session.getAtlasPropertyStrategy() != null ? session.getAtlasPropertyStrategy() : this.defaultStrategy; Field sourceField = session.head().getSourceField(); if (sourceField instanceof PropertyFie...
PropertyModule extends BaseAtlasModule { @Override public void readSourceValue(AtlasInternalSession session) throws AtlasException { AtlasPropertyStrategy strategy = session.getAtlasPropertyStrategy() != null ? session.getAtlasPropertyStrategy() : this.defaultStrategy; Field sourceField = session.head().getSourceField(...
PropertyModule extends BaseAtlasModule { @Override public void readSourceValue(AtlasInternalSession session) throws AtlasException { AtlasPropertyStrategy strategy = session.getAtlasPropertyStrategy() != null ? session.getAtlasPropertyStrategy() : this.defaultStrategy; Field sourceField = session.head().getSourceField(...
PropertyModule extends BaseAtlasModule { @Override public void readSourceValue(AtlasInternalSession session) throws AtlasException { AtlasPropertyStrategy strategy = session.getAtlasPropertyStrategy() != null ? session.getAtlasPropertyStrategy() : this.defaultStrategy; Field sourceField = session.head().getSourceField(...
PropertyModule extends BaseAtlasModule { @Override public void readSourceValue(AtlasInternalSession session) throws AtlasException { AtlasPropertyStrategy strategy = session.getAtlasPropertyStrategy() != null ? session.getAtlasPropertyStrategy() : this.defaultStrategy; Field sourceField = session.head().getSourceField(...
@Test public void testCreateCombineMapping() { Mapping fm = AtlasModelFactory.createMapping(MappingType.COMBINE); validateMapping(fm, MappingType.COMBINE); }
@SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP: case SEPARATE: fm =...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
@Test public void testProcessPostSourceExecution() throws AtlasException { module.processPostSourceExecution(null); }
@Override public void processPostSourceExecution(AtlasInternalSession session) throws AtlasException { }
PropertyModule extends BaseAtlasModule { @Override public void processPostSourceExecution(AtlasInternalSession session) throws AtlasException { } }
PropertyModule extends BaseAtlasModule { @Override public void processPostSourceExecution(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); }
PropertyModule extends BaseAtlasModule { @Override public void processPostSourceExecution(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInter...
PropertyModule extends BaseAtlasModule { @Override public void processPostSourceExecution(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInter...
@Test public void testProcessPreTargetExecution() throws AtlasException { module.processPreTargetExecution(null); }
@Override public void processPreTargetExecution(AtlasInternalSession session) throws AtlasException { }
PropertyModule extends BaseAtlasModule { @Override public void processPreTargetExecution(AtlasInternalSession session) throws AtlasException { } }
PropertyModule extends BaseAtlasModule { @Override public void processPreTargetExecution(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); }
PropertyModule extends BaseAtlasModule { @Override public void processPreTargetExecution(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasIntern...
PropertyModule extends BaseAtlasModule { @Override public void processPreTargetExecution(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasIntern...
@Test public void testProcessTargetFieldMapping() throws Exception { PropertyField field = mock(PropertyField.class); when(field.getName()).thenReturn("testProp"); when(field.getValue()).thenReturn("testValue"); Head head = mock(Head.class); when(head.getTargetField()).thenReturn(field); AtlasInternalSession session = ...
@Override public void writeTargetValue(AtlasInternalSession session) throws AtlasException { AtlasPropertyStrategy strategy = session.getAtlasPropertyStrategy() != null ? session.getAtlasPropertyStrategy() : this.defaultStrategy; Field targetField = session.head().getTargetField(); if (targetField instanceof PropertyFi...
PropertyModule extends BaseAtlasModule { @Override public void writeTargetValue(AtlasInternalSession session) throws AtlasException { AtlasPropertyStrategy strategy = session.getAtlasPropertyStrategy() != null ? session.getAtlasPropertyStrategy() : this.defaultStrategy; Field targetField = session.head().getTargetField...
PropertyModule extends BaseAtlasModule { @Override public void writeTargetValue(AtlasInternalSession session) throws AtlasException { AtlasPropertyStrategy strategy = session.getAtlasPropertyStrategy() != null ? session.getAtlasPropertyStrategy() : this.defaultStrategy; Field targetField = session.head().getTargetField...
PropertyModule extends BaseAtlasModule { @Override public void writeTargetValue(AtlasInternalSession session) throws AtlasException { AtlasPropertyStrategy strategy = session.getAtlasPropertyStrategy() != null ? session.getAtlasPropertyStrategy() : this.defaultStrategy; Field targetField = session.head().getTargetField...
PropertyModule extends BaseAtlasModule { @Override public void writeTargetValue(AtlasInternalSession session) throws AtlasException { AtlasPropertyStrategy strategy = session.getAtlasPropertyStrategy() != null ? session.getAtlasPropertyStrategy() : this.defaultStrategy; Field targetField = session.head().getTargetField...
@Test public void testProcessPostTargetExecution() throws AtlasException { module.processPostTargetExecution(null); }
@Override public void processPostTargetExecution(AtlasInternalSession session) throws AtlasException { }
PropertyModule extends BaseAtlasModule { @Override public void processPostTargetExecution(AtlasInternalSession session) throws AtlasException { } }
PropertyModule extends BaseAtlasModule { @Override public void processPostTargetExecution(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); }
PropertyModule extends BaseAtlasModule { @Override public void processPostTargetExecution(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInter...
PropertyModule extends BaseAtlasModule { @Override public void processPostTargetExecution(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInter...
@Test public void testProcessPostValidation() throws AtlasException { module.processPostValidation(null); }
@Override public void processPostValidation(AtlasInternalSession session) throws AtlasException { }
PropertyModule extends BaseAtlasModule { @Override public void processPostValidation(AtlasInternalSession session) throws AtlasException { } }
PropertyModule extends BaseAtlasModule { @Override public void processPostValidation(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); }
PropertyModule extends BaseAtlasModule { @Override public void processPostValidation(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInternalSe...
PropertyModule extends BaseAtlasModule { @Override public void processPostValidation(AtlasInternalSession session) throws AtlasException { } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInternalSe...
@Test public void testIsSupportedField() { assertFalse(module.isSupportedField(new MockField())); }
@Override public Boolean isSupportedField(Field field) { return field instanceof PropertyField; }
PropertyModule extends BaseAtlasModule { @Override public Boolean isSupportedField(Field field) { return field instanceof PropertyField; } }
PropertyModule extends BaseAtlasModule { @Override public Boolean isSupportedField(Field field) { return field instanceof PropertyField; } PropertyModule(AtlasPropertyStrategy propertyStrategy); }
PropertyModule extends BaseAtlasModule { @Override public Boolean isSupportedField(Field field) { return field instanceof PropertyField; } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInternalSess...
PropertyModule extends BaseAtlasModule { @Override public Boolean isSupportedField(Field field) { return field instanceof PropertyField; } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInternalSess...
@Test public void testCloneField() throws AtlasException { assertNull(module.cloneField(new MockField())); }
@Override public PropertyField cloneField(Field field) throws AtlasException { if (field == null || !(field instanceof PropertyField)) { return null; } PropertyField orig = (PropertyField)field; PropertyField clone = new PropertyField(); AtlasModelFactory.copyField(orig, clone, true); clone.setScope(orig.getScope()); r...
PropertyModule extends BaseAtlasModule { @Override public PropertyField cloneField(Field field) throws AtlasException { if (field == null || !(field instanceof PropertyField)) { return null; } PropertyField orig = (PropertyField)field; PropertyField clone = new PropertyField(); AtlasModelFactory.copyField(orig, clone, ...
PropertyModule extends BaseAtlasModule { @Override public PropertyField cloneField(Field field) throws AtlasException { if (field == null || !(field instanceof PropertyField)) { return null; } PropertyField orig = (PropertyField)field; PropertyField clone = new PropertyField(); AtlasModelFactory.copyField(orig, clone, ...
PropertyModule extends BaseAtlasModule { @Override public PropertyField cloneField(Field field) throws AtlasException { if (field == null || !(field instanceof PropertyField)) { return null; } PropertyField orig = (PropertyField)field; PropertyField clone = new PropertyField(); AtlasModelFactory.copyField(orig, clone, ...
PropertyModule extends BaseAtlasModule { @Override public PropertyField cloneField(Field field) throws AtlasException { if (field == null || !(field instanceof PropertyField)) { return null; } PropertyField orig = (PropertyField)field; PropertyField clone = new PropertyField(); AtlasModelFactory.copyField(orig, clone, ...
@Test public void testIF() throws Exception { Expression action = new Expression(); action.setExpression("IF(${0} == ${1}, 'same', 'not same')"); assertEquals("same", ExpressionFieldAction.process(action, Arrays.asList(10, 10))); assertEquals("not same", ExpressionFieldAction.process(action, Arrays.asList(100, 10))); }
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testIFInteger() throws Exception { Expression action = new Expression(); action.setExpression("IF(${0} == 123, 123, 456)"); assertEquals(123, ExpressionFieldAction.process(action, Arrays.asList(123))); assertEquals(456, ExpressionFieldAction.process(action, Arrays.asList(789))); }
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testIFIntegerZero() throws Exception { Expression action = new Expression(); action.setExpression("IF(${0} == 0, 0, 1)"); assertEquals(0, ExpressionFieldAction.process(action, Arrays.asList(0))); assertEquals(1, ExpressionFieldAction.process(action, Arrays.asList(1))); }
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testCreateLookupMapping() { Mapping fm = AtlasModelFactory.createMapping(MappingType.LOOKUP); validateMapping(fm, MappingType.LOOKUP); }
@SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP: case SEPARATE: fm =...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
AtlasModelFactory { @SuppressWarnings("unchecked") public static <T extends BaseMapping> T createMapping(MappingType type) { T fm = null; if (type == null) { return null; } switch (type) { case COLLECTION: fm = (T) new Collection(); ((Collection) fm).setMappingType(type); return fm; case COMBINE: case LOOKUP: case MAP:...
@Test public void testGT() throws Exception { Expression action = new Expression(); action.setExpression("IF(${0} > ${1}, ${0}, ${1})"); assertEquals(1000, ExpressionFieldAction.process(action, Arrays.asList(1000, 100))); assertEquals(10000, ExpressionFieldAction.process(action, Arrays.asList(1000, 10000))); assertEqua...
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testLT() throws Exception { Expression action = new Expression(); action.setExpression("IF(LT(${0}, ${1}), ${0}, ${1})"); assertEquals(10, ExpressionFieldAction.process(action, Arrays.asList(10, 100))); assertEquals(100, ExpressionFieldAction.process(action, Arrays.asList(1000, 100))); assertEquals(-1...
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testTOLOWER() throws Exception { Expression action = new Expression(); action.setExpression("TOLOWER(${0})"); assertEquals("qwerty", ExpressionFieldAction.process(action, Arrays.asList("qWeRtY"))); }
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testISEMPTY() throws Exception { Expression action = new Expression(); action.setExpression("IF(ISEMPTY(${0}), 'empty', 'not empty')"); assertEquals("empty", ExpressionFieldAction.process(action, Arrays.asList((Object)null))); assertEquals("empty", ExpressionFieldAction.process(action, Arrays.asList("...
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testAdd() throws Exception { Expression action = new Expression(); action.setExpression("${0} + ${1}"); assertEquals(110, ExpressionFieldAction.process(action, Arrays.asList(10,100))); assertEquals("foobar", ExpressionFieldAction.process(action, Arrays.asList("foo","bar"))); }
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testSubtract() throws Exception { Expression action = new Expression(); action.setExpression("${0} - ${1}"); assertEquals(90, ExpressionFieldAction.process(action, Arrays.asList(100,10))); }
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testMultiply() throws Exception { Expression action = new Expression(); action.setExpression("${0} * ${1}"); assertEquals(1000, ExpressionFieldAction.process(action, Arrays.asList(100,10))); }
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testDivide() throws Exception { Expression action = new Expression(); action.setExpression("${0} / ${1}"); assertEquals(10.0, ExpressionFieldAction.process(action, Arrays.asList(100,10))); }
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testAnd() throws Exception { Expression action = new Expression(); action.setExpression("IF(${0} == ${1} && ${0} == ${2}, 'all same', 'not all same')"); assertEquals("all same", ExpressionFieldAction.process(action, Arrays.asList("foo","foo", "foo"))); assertEquals("all same", ExpressionFieldAction.pr...
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testOr() throws Exception { Expression action = new Expression(); action.setExpression("IF(${0} == ${1} || ${0} == ${2}, 'some of them are same', 'all different')"); assertEquals("some of them are same", ExpressionFieldAction.process(action, Arrays.asList("foo","foo", "fo"))); assertEquals("some of th...
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testCreateAtlasMapping() { AtlasMapping atlasMapping = AtlasModelFactory.createAtlasMapping(); assertNotNull(atlasMapping); }
public static AtlasMapping createAtlasMapping() { AtlasMapping mapping = new AtlasMapping(); mapping.setMappings(new Mappings()); mapping.setProperties(new Properties()); mapping.setLookupTables(new LookupTables()); return mapping; }
AtlasModelFactory { public static AtlasMapping createAtlasMapping() { AtlasMapping mapping = new AtlasMapping(); mapping.setMappings(new Mappings()); mapping.setProperties(new Properties()); mapping.setLookupTables(new LookupTables()); return mapping; } }
AtlasModelFactory { public static AtlasMapping createAtlasMapping() { AtlasMapping mapping = new AtlasMapping(); mapping.setMappings(new Mappings()); mapping.setProperties(new Properties()); mapping.setLookupTables(new LookupTables()); return mapping; } private AtlasModelFactory(); }
AtlasModelFactory { public static AtlasMapping createAtlasMapping() { AtlasMapping mapping = new AtlasMapping(); mapping.setMappings(new Mappings()); mapping.setProperties(new Properties()); mapping.setLookupTables(new LookupTables()); return mapping; } private AtlasModelFactory(); @SuppressWarnings("unchecked") stati...
AtlasModelFactory { public static AtlasMapping createAtlasMapping() { AtlasMapping mapping = new AtlasMapping(); mapping.setMappings(new Mappings()); mapping.setProperties(new Properties()); mapping.setLookupTables(new LookupTables()); return mapping; } private AtlasModelFactory(); @SuppressWarnings("unchecked") stati...
@Test public void testNot() throws Exception { Expression action = new Expression(); action.setExpression("IF(!ISEMPTY(${0}), 'not empty', 'empty')"); assertEquals("not empty", ExpressionFieldAction.process(action, Arrays.asList("foo"))); assertEquals("not empty", ExpressionFieldAction.process(action, Arrays.asList(" "...
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testNull() throws Exception { Expression action = new Expression(); action.setExpression("IF(${0} == null, 'null', 'not null')"); assertEquals("null", ExpressionFieldAction.process(action, Arrays.asList((Object)null))); assertEquals("not null", ExpressionFieldAction.process(action, Arrays.asList("")))...
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testEmptyExpression() throws Exception { Expression action = new Expression(); action.setExpression(null); assertEquals(null, ExpressionFieldAction.process(action, null)); action.setExpression(""); assertEquals(null, ExpressionFieldAction.process(action, null)); action.setExpression(" "); assertEquals...
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testNumberField() throws Exception { Expression action = new Expression(); Number integer = 1; action.setExpression("IF(${0} == 1, '1', 'not 1')"); assertEquals("1", ExpressionFieldAction.process(action, Arrays.asList(integer))); BigInteger bigInt = new BigInteger("1"); action.setExpression("IF(${0} =...
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testConcatenateActionWithDelimiter() throws Exception { Expression action = new Expression(); action.setExpression("CONCATENATE(${0}, ${1}, ${2}, ${3})"); assertEquals("a,b,c", ExpressionFieldAction.process(action, Arrays.asList(",", "a", "b", "c"))); }
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testConcatenateActionWithMissingArguments() throws Exception { Expression action = new Expression(); action.setExpression("CONCATENATE(${0})"); try { ExpressionFieldAction.process(action, Arrays.asList(",")); fail(); } catch (IllegalArgumentException e) { assertEquals(IllegalArgumentException.class, e...
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testAddNestedAction() throws Exception { Expression action = new Expression(); action.setExpression("IF(ADD(${0}, ${1}, ${2}) == ${3}, 'pass', 'fail')"); assertEquals("pass", ExpressionFieldAction.process(action, Arrays.asList(1, 2, 3, 6))); }
@AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expression.parse(action.getExpression(), DefaultAtlasFunction...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
ExpressionFieldAction implements AtlasFieldAction { @AtlasActionProcessor public static Object process(io.atlasmap.v2.Expression action, List<Object> args) throws ExpressionException { if (action.getExpression() == null || action.getExpression().trim().isEmpty()) { return null; } Expression parsedExpression = Expressio...
@Test public void testAppend() { Append action = new Append(); assertEquals(null, StringComplexFieldActions.append(action, null)); assertEquals("foo", StringComplexFieldActions.append(action, "foo")); assertEquals("1", StringComplexFieldActions.append(action, "1")); action.setString(""); assertEquals("", StringComplexF...
@AtlasActionProcessor public static String append(Append append, String input) { if (append == null) { throw new IllegalArgumentException("Append must be specified with a string"); } String string = append.getString(); if (input == null && string == null) { return null; } if (string == null) { return input.toString(); ...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String append(Append append, String input) { if (append == null) { throw new IllegalArgumentException("Append must be specified with a string"); } String string = append.getString(); if (input == null && string == null) { return...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String append(Append append, String input) { if (append == null) { throw new IllegalArgumentException("Append must be specified with a string"); } String string = append.getString(); if (input == null && string == null) { return...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String append(Append append, String input) { if (append == null) { throw new IllegalArgumentException("Append must be specified with a string"); } String string = append.getString(); if (input == null && string == null) { return...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String append(Append append, String input) { if (append == null) { throw new IllegalArgumentException("Append must be specified with a string"); } String string = append.getString(); if (input == null && string == null) { return...
@Test(expected=IllegalArgumentException.class) public void testAppendNullAction() { StringComplexFieldActions.append(null, null); }
@AtlasActionProcessor public static String append(Append append, String input) { if (append == null) { throw new IllegalArgumentException("Append must be specified with a string"); } String string = append.getString(); if (input == null && string == null) { return null; } if (string == null) { return input.toString(); ...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String append(Append append, String input) { if (append == null) { throw new IllegalArgumentException("Append must be specified with a string"); } String string = append.getString(); if (input == null && string == null) { return...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String append(Append append, String input) { if (append == null) { throw new IllegalArgumentException("Append must be specified with a string"); } String string = append.getString(); if (input == null && string == null) { return...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String append(Append append, String input) { if (append == null) { throw new IllegalArgumentException("Append must be specified with a string"); } String string = append.getString(); if (input == null && string == null) { return...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String append(Append append, String input) { if (append == null) { throw new IllegalArgumentException("Append must be specified with a string"); } String string = append.getString(); if (input == null && string == null) { return...
@Test public void testConcatenate() { Concatenate action = new Concatenate(); assertEquals(null, StringComplexFieldActions.concatenate(action, null)); assertEquals("1true2.0", StringComplexFieldActions.concatenate(action, Arrays.asList(new String[] {"1", "true", "2.0"}))); assertEquals("1true2.0", StringComplexFieldAct...
@AtlasActionProcessor(sourceType = FieldType.ANY) public static String concatenate(Concatenate concat, List<String> inputs) { if (concat == null) { throw new IllegalArgumentException("Concatenate must be specified with a delimiter"); } if (inputs == null) { return null; } String delim = concat.getDelimiter() == null ? ...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor(sourceType = FieldType.ANY) public static String concatenate(Concatenate concat, List<String> inputs) { if (concat == null) { throw new IllegalArgumentException("Concatenate must be specified with a delimiter"); } if (inputs == null) { return...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor(sourceType = FieldType.ANY) public static String concatenate(Concatenate concat, List<String> inputs) { if (concat == null) { throw new IllegalArgumentException("Concatenate must be specified with a delimiter"); } if (inputs == null) { return...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor(sourceType = FieldType.ANY) public static String concatenate(Concatenate concat, List<String> inputs) { if (concat == null) { throw new IllegalArgumentException("Concatenate must be specified with a delimiter"); } if (inputs == null) { return...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor(sourceType = FieldType.ANY) public static String concatenate(Concatenate concat, List<String> inputs) { if (concat == null) { throw new IllegalArgumentException("Concatenate must be specified with a delimiter"); } if (inputs == null) { return...
@Test public void testCloneActions() { List<Action> actionsList = Arrays.asList(new Camelize(), new Capitalize(), new CurrentDate(), new CurrentDateTime(), new CurrentTime(), new CustomAction(), new GenerateUUID(), new Lowercase(), new LowercaseChar(), new PadStringLeft(), new PadStringRight(), new SeparateByDash(), ne...
public static ArrayList<Action> cloneFieldActions(ArrayList<Action> actions) { if (actions == null) { return null; } ArrayList<Action> n = new ArrayList<Action>(); if (actions == null || actions.isEmpty()) { return n; } for (Action a : actions) { n.add(cloneAction(a)); } return n; }
AtlasModelFactory { public static ArrayList<Action> cloneFieldActions(ArrayList<Action> actions) { if (actions == null) { return null; } ArrayList<Action> n = new ArrayList<Action>(); if (actions == null || actions.isEmpty()) { return n; } for (Action a : actions) { n.add(cloneAction(a)); } return n; } }
AtlasModelFactory { public static ArrayList<Action> cloneFieldActions(ArrayList<Action> actions) { if (actions == null) { return null; } ArrayList<Action> n = new ArrayList<Action>(); if (actions == null || actions.isEmpty()) { return n; } for (Action a : actions) { n.add(cloneAction(a)); } return n; } private AtlasMo...
AtlasModelFactory { public static ArrayList<Action> cloneFieldActions(ArrayList<Action> actions) { if (actions == null) { return null; } ArrayList<Action> n = new ArrayList<Action>(); if (actions == null || actions.isEmpty()) { return n; } for (Action a : actions) { n.add(cloneAction(a)); } return n; } private AtlasMo...
AtlasModelFactory { public static ArrayList<Action> cloneFieldActions(ArrayList<Action> actions) { if (actions == null) { return null; } ArrayList<Action> n = new ArrayList<Action>(); if (actions == null || actions.isEmpty()) { return n; } for (Action a : actions) { n.add(cloneAction(a)); } return n; } private AtlasMo...
@Test(expected=IllegalArgumentException.class) public void testConcatenateNullAction() { StringComplexFieldActions.concatenate(null, null); }
@AtlasActionProcessor(sourceType = FieldType.ANY) public static String concatenate(Concatenate concat, List<String> inputs) { if (concat == null) { throw new IllegalArgumentException("Concatenate must be specified with a delimiter"); } if (inputs == null) { return null; } String delim = concat.getDelimiter() == null ? ...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor(sourceType = FieldType.ANY) public static String concatenate(Concatenate concat, List<String> inputs) { if (concat == null) { throw new IllegalArgumentException("Concatenate must be specified with a delimiter"); } if (inputs == null) { return...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor(sourceType = FieldType.ANY) public static String concatenate(Concatenate concat, List<String> inputs) { if (concat == null) { throw new IllegalArgumentException("Concatenate must be specified with a delimiter"); } if (inputs == null) { return...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor(sourceType = FieldType.ANY) public static String concatenate(Concatenate concat, List<String> inputs) { if (concat == null) { throw new IllegalArgumentException("Concatenate must be specified with a delimiter"); } if (inputs == null) { return...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor(sourceType = FieldType.ANY) public static String concatenate(Concatenate concat, List<String> inputs) { if (concat == null) { throw new IllegalArgumentException("Concatenate must be specified with a delimiter"); } if (inputs == null) { return...
@Test public void testEndsWith() { EndsWith action = new EndsWith(); action.setString(""); assertFalse(StringComplexFieldActions.endsWith(action, null)); assertTrue(StringComplexFieldActions.endsWith(action, "")); assertTrue(StringComplexFieldActions.endsWith(action, "foo")); action.setString("bar"); assertFalse(String...
@AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.endsWith(endsWith.getString()); }
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.e...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.e...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.e...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.e...
@Test(expected=IllegalArgumentException.class) public void testEndsWithNullAction() { StringComplexFieldActions.endsWith(null, null); }
@AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.endsWith(endsWith.getString()); }
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.e...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.e...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.e...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.e...
@Test(expected=IllegalArgumentException.class) public void testEndsWithNullString() { StringComplexFieldActions.endsWith(new EndsWith(), null); }
@AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.endsWith(endsWith.getString()); }
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.e...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.e...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.e...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static Boolean endsWith(EndsWith endsWith, String input) { if (endsWith == null || endsWith.getString() == null) { throw new IllegalArgumentException("EndsWith must be specified with a string"); } return input == null ? false : input.e...
@Test public void testFormat() { Format action = new Format(); action.setTemplate("foofoo"); assertEquals("foofoo", StringComplexFieldActions.format(action, null)); assertEquals("foofoo", StringComplexFieldActions.format(action, Arrays.asList(""))); assertEquals("foofoo", StringComplexFieldActions.format(action, Arrays...
@AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format.getTemplate(), input == null ? null : input.toArray(new ...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format....
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format....
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format....
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format....
@Test(expected=IllegalArgumentException.class) public void testFormatNullAction() { StringComplexFieldActions.format(null, null); }
@AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format.getTemplate(), input == null ? null : input.toArray(new ...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format....
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format....
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format....
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format....
@Test(expected=IllegalArgumentException.class) public void testFormatNullTemplate() { StringComplexFieldActions.format(new Format(), null); }
@AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format.getTemplate(), input == null ? null : input.toArray(new ...
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format....
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format....
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format....
StringComplexFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String format(Format format, List<Object> input) { if (format == null || format.getTemplate() == null) { throw new IllegalArgumentException("Format must be specified with a template"); } return String.format(Locale.ROOT, format....