dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16786
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6474: minor doc changes
------------------------------------------------------------
revno: 6474
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-04-03 15:35:15 +0200
message:
minor doc changes
modified:
dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/Importer.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/Importer.java'
--- dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/Importer.java 2012-04-03 12:59:54 +0000
+++ dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/Importer.java 2012-04-03 13:35:15 +0000
@@ -39,6 +39,8 @@
public interface Importer<T>
{
/**
+ * Import a single object, return null or a ImportConflict is there is a conflict
+ *
* @param object Object to import
* @param options Import options
* @return ImportConflict instance if a conflict occurred, if not null
@@ -61,5 +63,11 @@
*/
ImportCount getCurrentImportCount();
+ /**
+ * Can this importer handle a certain Class type
+ *
+ * @param clazz Class to check for
+ * @return true or false depending on if class is supported
+ */
boolean canHandle( Class<?> clazz );
}