Class EntityWriter
java.lang.Object
org.openstreetmap.osmosis.xml.common.ElementWriter
org.openstreetmap.osmosis.xml.v0_6.impl.EntityWriter
- Direct Known Subclasses:
NodeWriter,RelationWriter,WayWriter
Provides common functionality for all classes writing OSM entities to xml.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityWriter(String elementName, int indentionLevel) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCommonAttributes(org.openstreetmap.osmosis.core.domain.v0_6.Entity entity) Add common entity attributes.protected voidaddMetatags(org.openstreetmap.osmosis.core.domain.v0_6.Entity entity) Add metatag attributes.Methods inherited from class org.openstreetmap.osmosis.xml.common.ElementWriter
addAttribute, beginOpenElement, closeElement, endOpenElement, getTimestampFormat, setWriter
-
Constructor Details
-
EntityWriter
Creates a new instance.- Parameters:
elementName- The name of the element to be written.indentionLevel- The indent level of the element.
-
-
Method Details
-
addCommonAttributes
protected void addCommonAttributes(org.openstreetmap.osmosis.core.domain.v0_6.Entity entity) Add common entity attributes.- Parameters:
entity- The entity being written.
-
addMetatags
protected void addMetatags(org.openstreetmap.osmosis.core.domain.v0_6.Entity entity) Add metatag attributes.- Parameters:
entity- The entity being written.
-