Android Open Source - AndroidKMLParser Placemark






From Project

Back to project page AndroidKMLParser.

License

The source code is released under:

MIT License

If you think the Android project AndroidKMLParser listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.vashisthg.androidkml;
//  w  ww.j a v  a 2  s  . co  m
/**
 * Created by vashisthg on 23/03/14.
 */
public class Placemark {

    private String name;
    private String description;
    private Point point;

    public Placemark() {

    }

    public Placemark(String name, Point point, String description) {
        this.name = name;
        this.point = point;
        this.description = description;
    }


    public static class PlacemarkBuilder {
        private String name;
        private Point point;
        private String description;

        public PlacemarkBuilder setName(String name) {
            this.name = name;
            return this;
        }

        public PlacemarkBuilder setPoint(Point point) {
            this.point = point;
            return this;
        }

        public PlacemarkBuilder setDescription(String description) {
            this.description = description;
            return this;
        }

        public Placemark createPlacemark() {
            return new Placemark(name, point, description);
        }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Point getPoint() {
        return point;
    }

    public void setPoint(Point point) {
        this.point = point;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}




Java Source Code List

com.vashisthg.androidkml.KmlReader.java
com.vashisthg.androidkml.Placemark.java
com.vashisthg.androidkml.Point.java
com.vashisthg.androidkmlsample.KMLActivity.java