|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.geo.esri.MetaObjectShapeWriter
public class MetaObjectShapeWriter
This writes out a generic MetaObject out as an ESRI shape file. The MetaObject must consist of all simple concrete types and a single MetaClassPropertyType of ersi.shape. Currently handled types: Integer, Long, Short, Float, Double, Character Byte, Boolean, Date, Calendar, GregorianCalendar, String, esri.shape
Constructor Summary | |
---|---|
MetaObjectShapeWriter(MetaClass metaClass,
java.lang.String name,
int shapeType)
Creates a writer, note that the name can contain a leading path and should end in .shp. |
Method Summary | |
---|---|
void |
close()
Closes the writers and files |
EsriShapeResource |
getResource()
|
java.lang.String |
getShapeProp()
|
void |
write(MetaObject metaObject)
Add the MetaObject to the output files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaObjectShapeWriter(MetaClass metaClass, java.lang.String name, int shapeType)
metaClass
- MetaClass to be contained in the shape filename
- Name fo the shape file including leading path and trailing .shpshapeType
- Esri shape type of the file
java.lang.IllegalArgumentException
- on errors mapping MetaClass fields
java.lang.RuntimeException
- on errors creating files and writersMethod Detail |
---|
public void write(MetaObject metaObject)
metaObject
-
java.lang.IllegalArgumentException
- if the MetaObject is not of the original MetaClass type
java.lang.RuntimeException
- on IO errors writing filespublic void close()
java.lang.RuntimeException
- on IO errors closing the filespublic EsriShapeResource getResource()
public java.lang.String getShapeProp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |