Android Open Source - wherewithal Vocabulary Learning Object






From Project

Back to project page wherewithal.

License

The source code is released under:

GNU General Public License

If you think the Android project wherewithal 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.curchod.json;
/* w  w w.j av a  2s  .  c o m*/
import java.net.URI;

/**
 * Create a JSON object based on the TinCan API with the following structure:
 * 
 * "object":
        "id": "http://en.wiktionary.org/wiki/cat",
        "objectType": "Activity",
        "definition":
            "name": "ko-KR": "?????"
            "description": ??Reading??
            "type": "http://ko.wiktionary.org/wiki/?????"
 * @author user
 *
 */
public class VocabularyLearningObject 
{
  private URI id;
  private String objectType;
  private VocabularyDefinition definition;
  
  public void setId(URI _id)
  {
    this.id = _id;
  }
  
  public URI getId()
  {
    return this.id;
  }
  
  public void setObjectType(String _objectType)
  {
    this.objectType = _objectType;
  }
  
  public String getObjectType()
  {
    return this.objectType;
  }
  
  public void setDefintion(VocabularyDefinition _definition)
  {
    this.definition = _definition;
  }
  
  public VocabularyDefinition getDefinition()
  {
    return this.definition;
  }
  
  public String toJSON()
  {
    StringBuffer buffer = new StringBuffer();
    buffer.append("\"object\":");
        buffer.append("\"id\": \""+id.toString()+"\",");
        buffer.append("\"objectType\": \""+objectType+"\",");
        buffer.append("\"definition\":");
        buffer.append("\"name\": \""
            +definition.getNameLocale()+"\": \""
            +definition.getNameValue()+"\",");
        buffer.append("\"description\": \""+definition.getDescription()+"\",");
        buffer.append("\"type\": \""+definition.getType()+"");
        return buffer.toString();
  }
  
}




Java Source Code List

com.curchod.domartin.AsyncLoadGameFile.java
com.curchod.domartin.Constants.java
com.curchod.domartin.Filer.java
com.curchod.domartin.HouseDeck.java
com.curchod.domartin.IWantTo.java
com.curchod.domartin.MockNdefMessages.java
com.curchod.domartin.NfcUtils.java
com.curchod.domartin.RemoteCall.java
com.curchod.domartin.Sarray.java
com.curchod.domartin.Scoring.java
com.curchod.domartin.TagDescription.java
com.curchod.domartin.UtilityTo.java
com.curchod.dto.Card.java
com.curchod.dto.DeckCard.java
com.curchod.dto.GameWord.java
com.curchod.dto.Game.java
com.curchod.dto.PlayerInfo.java
com.curchod.dto.SavedTest.java
com.curchod.dto.SingleWordTestResult.java
com.curchod.dto.SingleWord.java
com.curchod.json.VocabularyDefinition.java
com.curchod.json.VocabularyLearningObject.java
com.curchod.wherewithal.AddPlayerActivity.java
com.curchod.wherewithal.CardDeckActivity.java
com.curchod.wherewithal.CardDecksActivity.java
com.curchod.wherewithal.CardPlayerHouseDeckActivity.java
com.curchod.wherewithal.CardPlayerWordsActivity.java
com.curchod.wherewithal.CardPlayersListActivity.java
com.curchod.wherewithal.CardsActivity.java
com.curchod.wherewithal.GameConcentrationActivity.java
com.curchod.wherewithal.GameReadingStonesActivity.java
com.curchod.wherewithal.GameReadingStonesInstructionsActivity.java
com.curchod.wherewithal.GameSnazzyThumbworkActivity.java
com.curchod.wherewithal.GameWritingStonesActivity.java
com.curchod.wherewithal.GamesActivity.java
com.curchod.wherewithal.InstructionsActivity.java
com.curchod.wherewithal.MainActivity.java
com.curchod.wherewithal.PlayerActivity.java
com.curchod.wherewithal.PlayersActivity.java