|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the geometry typepublic interface GeometryWriter<T extends com.vividsolutions.jts.geom.Geometry>
Geometry writer interface. A geometry holds information about compatibility and encoding patterns for a certain geometry type.
Method Summary | |
---|---|
Set<QName> |
getCompatibleTypes()
Get the compatible types' names for the geometry type that can be handled by this writer. |
Class<T> |
getGeometryType()
Get the geometry type represented by the writer |
DefinitionPath |
match(TypeDefinition type,
DefinitionPath basePath,
String gmlNs)
Matches the type against the encoding patterns. |
void |
write(XMLStreamWriter writer,
T geometry,
TypeDefinition elementType,
QName elementName,
String gmlNs)
Write a geometry. |
Method Detail |
---|
Class<T> getGeometryType()
Set<QName> getCompatibleTypes()
null
namespace in a name
references the GML namespaceDefinitionPath match(TypeDefinition type, DefinitionPath basePath, String gmlNs)
type
- the type definitionbasePath
- the definition pathgmlNs
- the GML namespace
null
otherwisevoid write(XMLStreamWriter writer, T geometry, TypeDefinition elementType, QName elementName, String gmlNs) throws XMLStreamException
writer
- the XML stream writergeometry
- the geometry to writeelementType
- the last type definition in the matching pathelementName
- the corresponding element namegmlNs
- the GML namespace
XMLStreamException
- if an error occurs writing the geometry
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |