Class RegionExportFactorXML
java.lang.Object
fr.ifremer.isisfish.mexico.export.RegionExportFactorXML
- All Implemented Interfaces:
RegionExport
,org.nuiton.topia.persistence.EntityVisitor
Export implementation for factor into xml.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called at export begin.void
clear()
void
end
(org.nuiton.topia.persistence.TopiaEntity entity) void
Called at export end.protected String
getStringValue
(org.nuiton.topia.persistence.TopiaEntity entity, Class<?> type, Object value) Get string value.protected String
getUniqueFactorName
(org.nuiton.topia.persistence.TopiaEntity entity, String factorClass, String propertyName) Get factor name.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
-
outputFile
-
stringBuffer
-
lastReadName
-
-
Constructor Details
-
RegionExportFactorXML
-
-
Method Details
-
beginExport
public void beginExport()Description copied from interface:RegionExport
Called at export begin.- Specified by:
beginExport
in interfaceRegionExport
-
start
public void start(org.nuiton.topia.persistence.TopiaEntity entity) - Specified by:
start
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
-
end
public void end(org.nuiton.topia.persistence.TopiaEntity entity) - Specified by:
end
in interfaceorg.nuiton.topia.persistence.EntityVisitor
-
clear
public void clear()- Specified by:
clear
in interfaceorg.nuiton.topia.persistence.EntityVisitor
-
endExport
public void endExport()Description copied from interface:RegionExport
Called at export end.- Specified by:
endExport
in interfaceRegionExport
-
getUniqueFactorName
protected String getUniqueFactorName(org.nuiton.topia.persistence.TopiaEntity entity, String factorClass, String propertyName) Get factor name. Dans la majorité des cas, on a unlastReadName
défini. Dans les autre cas, il faut chercher un meilleur nom.- Parameters:
entity
- entity to get factor namefactorClass
- entity short class namepropertyName
- property name- Returns:
- unique name for factor
-
getStringValue
protected String getStringValue(org.nuiton.topia.persistence.TopiaEntity entity, Class<?> type, Object value) Get string value.- Parameters:
entity
- entitytype
- value typevalue
- value
-