@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()); return 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, true); clone.setScope(orig.getScope()); return 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, true); clone.setScope(orig.getScope()); return clone; } PropertyModule(AtlasPropertyStrategy propertyStrategy); }
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, true); clone.setScope(orig.getScope()); return clone; } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInternalSession session); @Override void readSourceValue(AtlasInternalSession session); @Override void processPostSourceExecution(AtlasInternalSession session); @Override void processPreTargetExecution(AtlasInternalSession session); @Override void writeTargetValue(AtlasInternalSession session); @Override void processPostTargetExecution(AtlasInternalSession session); @Override void processPostValidation(AtlasInternalSession session); @Override Boolean isSupportedField(Field field); @Override PropertyField cloneField(Field field); }
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, true); clone.setScope(orig.getScope()); return clone; } PropertyModule(AtlasPropertyStrategy propertyStrategy); @Override void processPreValidation(AtlasInternalSession session); @Override void processPreSourceExecution(AtlasInternalSession session); @Override void readSourceValue(AtlasInternalSession session); @Override void processPostSourceExecution(AtlasInternalSession session); @Override void processPreTargetExecution(AtlasInternalSession session); @Override void writeTargetValue(AtlasInternalSession session); @Override void processPostTargetExecution(AtlasInternalSession session); @Override void processPostValidation(AtlasInternalSession session); @Override Boolean isSupportedField(Field field); @Override PropertyField cloneField(Field field);  }