View Javadoc
1   package com.atlassian.dbexporter.importer;
2   
3   import com.atlassian.dbexporter.ImportExportErrorService;
4   import com.atlassian.dbexporter.node.NodeParser;
5   
6   import java.util.List;
7   
8   import static com.google.common.base.Preconditions.checkNotNull;
9   
10  public abstract class AbstractSingleNodeImporter extends AbstractImporter {
11      protected AbstractSingleNodeImporter(ImportExportErrorService errorService) {
12          super(errorService);
13      }
14  
15      protected AbstractSingleNodeImporter(ImportExportErrorService errorService, List<AroundImporter> arounds) {
16          super(errorService, arounds);
17      }
18  
19      public final boolean supports(NodeParser node) {
20          return checkNotNull(node).getName().equals(getNodeName());
21      }
22  
23      protected abstract String getNodeName();
24  }