Android Open Source - OBS-Translation-App Text






From Project

Back to project page OBS-Translation-App.

License

The source code is released under:

MIT License

If you think the Android project OBS-Translation-App 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 org.door43.obs.mta.model;
// w  w w  .  j a v a2s  .  c o  m
public class Text implements IText {

  /* CONSTANTS */

    /* FIELDS */

    private String frameId;

    private String langCode;

    private String text;

    /* CONSTRUCTORS */

    public Text() {
        super();
    }

    public Text(String frameId, String langCode, String text) {
        this();
        this.frameId = frameId;
        this.langCode = langCode;
        this.text = text;
    }

    /* METHODS */

    /* GETTERS AND SETTERS */

    @Override
    public String getFrameId() {
        return frameId;
    }

    @Override
    public void setFrameId(String frameId) {
        this.frameId = frameId;
    }

    @Override
    public String getLangCode() {
        return langCode;
    }

    @Override
    public void setLangCode(String langCode) {
        this.langCode = langCode;
    }

    @Override
    public String getText() {
        return text;
    }

    @Override
    public void setText(String text) {
        this.text = text;
    }

    /* OBJECT METHODS */

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Text{");
        sb.append("frameId='").append(frameId).append('\'');
        sb.append(", langCode='").append(langCode).append('\'');
        sb.append('}');
        return sb.toString();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Text)) return false;

        Text text = (Text) o;

        if (frameId != null ? !frameId.equals(text.frameId) : text.frameId != null) return false;
        if (langCode != null ? !langCode.equals(text.langCode) : text.langCode != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = frameId != null ? frameId.hashCode() : 0;
        result = 31 * result + (langCode != null ? langCode.hashCode() : 0);
        return result;
    }
}




Java Source Code List

com.door43.obt.ata.MenuListActivity.java
com.door43.obt.ata.MenuListFragment.java
com.door43.obt.ata.RowAdapter.java
com.door43.obt.ata.SplashActivity.java
com.door43.obt.ata.TranslationDetailActivity.java
com.door43.obt.ata.TranslationFragment.java
org.door43.obs.mta.ConstApp.java
org.door43.obs.mta.db.AbstractDBHelper.java
org.door43.obs.mta.db.ConstTranslations.java
org.door43.obs.mta.db.TranslationDBHelper.java
org.door43.obs.mta.model.Frame.java
org.door43.obs.mta.model.IFrame.java
org.door43.obs.mta.model.IPersistenceObject.java
org.door43.obs.mta.model.ITerm.java
org.door43.obs.mta.model.IText.java
org.door43.obs.mta.model.ITranslationNotes.java
org.door43.obs.mta.model.ITranslation.java
org.door43.obs.mta.model.PersistenceObject.java
org.door43.obs.mta.model.Term.java
org.door43.obs.mta.model.Text.java
org.door43.obs.mta.model.TranslationNotes.java
org.door43.obs.mta.model.Translation.java
org.door43.obs.mta.service.FakeTranslationService.java
org.door43.obs.mta.service.ITranslationService.java
org.door43.obs.mta.service.TranslationService.java
org.door43.obs.mta.util.AssetsUtil.java
org.door43.obs.mta.util.StringUtils.java