|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.actions.UploadSelectionAction.UploadHullBuilder
static class UploadSelectionAction.UploadHullBuilder
Computes the collection of primitives to upload, given a collection of candidate primitives. Some of the candidates are excluded, i.e. if they aren't modified. Other primitives are added. A typical case is a primitive which is new and and which is referred by a modified relation. In order to upload the relation the new primitive has to be uploaded as well, even if it isn't included in the list of candidate primitives.
| Field Summary | |
|---|---|
private java.util.Set<OsmPrimitive> |
hull
|
| Constructor Summary | |
|---|---|
UploadSelectionAction.UploadHullBuilder()
|
|
| Method Summary | |
|---|---|
java.util.Set<OsmPrimitive> |
build(java.util.Collection<OsmPrimitive> base)
Builds the "hull" of primitives to be uploaded given a base collection of osm primitives. |
void |
visit(Changeset cs)
Visiting call for changesets. |
void |
visit(Node n)
Visiting call for points. |
void |
visit(Relation r)
Visiting call for relations. |
void |
visit(Way w)
Visiting call for lines. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Set<OsmPrimitive> hull
| Constructor Detail |
|---|
public UploadSelectionAction.UploadHullBuilder()
| Method Detail |
|---|
public void visit(Node n)
Visitor
visit in interface Visitorn - The node to inspect.public void visit(Way w)
Visitor
visit in interface Visitorw - The way to inspect.public void visit(Relation r)
Visitor
visit in interface Visitorr - The relation to inspect.public void visit(Changeset cs)
Visitor
visit in interface Visitorcs - The changeset to inspect.
public java.util.Set<OsmPrimitive> build(java.util.Collection<OsmPrimitive> base)
throws java.lang.IllegalArgumentException
base - the base collection. Must not be null.
java.lang.IllegalArgumentException - thrown if base is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||