Package fr.ifremer.isisfish.entities
Class RegionImportJson.RegionVisitor
java.lang.Object
fr.ifremer.isisfish.entities.RegionImportJson.RegionVisitor
- All Implemented Interfaces:
org.nuiton.topia.persistence.EntityVisitor
- Enclosing class:
- RegionImportJson
protected static class RegionImportJson.RegionVisitor
extends Object
implements org.nuiton.topia.persistence.EntityVisitor
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected org.nuiton.topia.persistence.TopiaEntity
protected com.fasterxml.jackson.databind.JsonNode
protected RegionImportJson.RegionMerge
protected com.fasterxml.jackson.databind.JsonNode
protected org.nuiton.topia.persistence.TopiaEntity
protected String
-
Constructor Summary
ConstructorDescriptionRegionVisitor
(RegionImportJson.RegionMerge merge, org.nuiton.topia.persistence.TopiaEntity parentEntity, String propertyName, String idEntity, Map<String, org.nuiton.topia.persistence.TopiaEntity> entities, com.fasterxml.jackson.databind.JsonNode jsonEntities, boolean canImportCell) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.nuiton.topia.persistence.TopiaEntity
boolean
Normalement on ne peut pas importer des cellules parce qu'avec des résolutions spatiales différentes, ca donnerait vraiment n'import quoi.void
clear()
protected org.nuiton.topia.persistence.TopiaEntity
convertJsonToEntity
(com.fasterxml.jackson.databind.JsonNode node, org.nuiton.topia.persistence.TopiaEntity result) void
end
(org.nuiton.topia.persistence.TopiaEntity entity) org.nuiton.topia.persistence.TopiaEntity
protected Object
void
start
(org.nuiton.topia.persistence.TopiaEntity entity) void
visit
(org.nuiton.topia.persistence.TopiaEntity entity, String propertyName, Class<?> collectionType, Class<?> type, int index, Object value) void
visit
(org.nuiton.topia.persistence.TopiaEntity entity, String propertyName, Class<?> collectionType, Class<?> type, Object value) void
visit
(org.nuiton.topia.persistence.TopiaEntity entity, String propertyName, Class<?> type, Object value)
-
Field Details
-
merge
-
nodeEntity
protected com.fasterxml.jackson.databind.JsonNode nodeEntity -
parentEntity
protected org.nuiton.topia.persistence.TopiaEntity parentEntity -
propertyName
-
currentEntity
protected org.nuiton.topia.persistence.TopiaEntity currentEntity -
entities
-
jsonEntities
protected com.fasterxml.jackson.databind.JsonNode jsonEntities -
canImportCell
protected boolean canImportCell
-
-
Constructor Details
-
RegionVisitor
public RegionVisitor(RegionImportJson.RegionMerge merge, org.nuiton.topia.persistence.TopiaEntity parentEntity, String propertyName, String idEntity, Map<String, org.nuiton.topia.persistence.TopiaEntity> entities, com.fasterxml.jackson.databind.JsonNode jsonEntities, boolean canImportCell)
-
-
Method Details
-
loadEntity
public org.nuiton.topia.persistence.TopiaEntity loadEntity() -
convertJsonToEntity
protected org.nuiton.topia.persistence.TopiaEntity convertJsonToEntity(com.fasterxml.jackson.databind.JsonNode node, org.nuiton.topia.persistence.TopiaEntity result) -
canImportCell
public boolean canImportCell()Normalement on ne peut pas importer des cellules parce qu'avec des résolutions spatiales différentes, ca donnerait vraiment n'import quoi. Mais dans de très rare cas, on pourrait surcharger cette méthode. -
ask
-
readValue
-
start
public void start(org.nuiton.topia.persistence.TopiaEntity entity) - Specified by:
start
in interfaceorg.nuiton.topia.persistence.EntityVisitor
-
end
public void end(org.nuiton.topia.persistence.TopiaEntity entity) - Specified by:
end
in interfaceorg.nuiton.topia.persistence.EntityVisitor
-
visit
public void visit(org.nuiton.topia.persistence.TopiaEntity entity, String propertyName, Class<?> type, Object value) - Specified by:
visit
in interfaceorg.nuiton.topia.persistence.EntityVisitor
-
visit
public void visit(org.nuiton.topia.persistence.TopiaEntity entity, String propertyName, Class<?> collectionType, Class<?> type, Object value) - Specified by:
visit
in interfaceorg.nuiton.topia.persistence.EntityVisitor
-
visit
public void visit(org.nuiton.topia.persistence.TopiaEntity entity, String propertyName, Class<?> collectionType, Class<?> type, int index, Object value) - Specified by:
visit
in interfaceorg.nuiton.topia.persistence.EntityVisitor
-
clear
public void clear()- Specified by:
clear
in interfaceorg.nuiton.topia.persistence.EntityVisitor
-