Android Open Source - oec_android System






From Project

Back to project page oec_android.

License

The source code is released under:

MIT License

If you think the Android project oec_android 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.biekerwebdesign.beans;
//from   ww w.  ja  v a2 s .  c o  m
/**
 * Created by Bieker on 11/15/13.
 */
public class System {
    //System info
    private String systemName;
    private String rightAscension;
    private String declination;
    private String distance;

    //Link Info

    public System(String systemName, String rightAscension, String declination, String distance) {
        this.systemName = systemName;
        this.rightAscension = rightAscension;
        this.declination = declination;
        this.distance = distance;
    }

    public System() {
    }

   /*
    * System Getters and Setters
    */

    public String getSystemName() {
        return systemName;
    }
    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public String getRightAscension() {
        return rightAscension;
    }
    public void setRightAscension(String rightAscension) {
        this.rightAscension = rightAscension;
    }

    public String getDeclination() {
        return declination;
    }

    public void setDeclination(String declination) {
        this.declination = declination;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String toString() {
       StringBuilder builder = new StringBuilder();
        if (systemName == null && rightAscension == null && declination == null && distance == null) {
            return "";
        }
        if (systemName != null) {
            builder.append(" System Name: ");
            builder.append(systemName);
            builder.append("\n");
        }
        if (rightAscension != null) {
            builder.append(" Right Ascension: ");
            builder.append(rightAscension);
            builder.append("\n");
        }
        if (declination != null) {
            builder.append(" Declination: ");
            builder.append(declination);
            builder.append("\n");
        }
        if (distance != null) {
            builder.append(" Distance: ");
            builder.append(distance);
            builder.append("\n");
        }
            return builder.toString().substring(1);
    }

}




Java Source Code List

com.biekerwebdesign.beans.Planet.java
com.biekerwebdesign.beans.Star.java
com.biekerwebdesign.beans.System.java
com.biekerwebdesign.openexoplanetcatalogue.MainActivity.java
com.biekerwebdesign.openexoplanetcatalogue.PlanetActivity.java
com.biekerwebdesign.openexoplanetcatalogue.PlanetFragment.java
com.biekerwebdesign.openexoplanetcatalogue.StarActivity.java
com.biekerwebdesign.openexoplanetcatalogue.StarFragment.java
com.biekerwebdesign.openexoplanetcatalogue.SystemActivity.java
com.biekerwebdesign.openexoplanetcatalogue.SystemFragment.java
com.biekerwebdesign.settings.SettingsActivity.java
com.biekerwebdesign.settings.SettingsFragment.java
com.biekerwebdesign.xml.XMLPullParserPlanet.java
com.biekerwebdesign.xml.XMLPullParserStar.java
com.biekerwebdesign.xml.XMLPullParserSystem.java