Created
May 9, 2012 00:58
-
-
Save narita1980/2640848 to your computer and use it in GitHub Desktop.
Categoryのサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Category { | |
String name; | |
Map element; | |
List childCategory; | |
public Category(String name) { | |
this.name = name; | |
element = new HashMap(); | |
childCategory = new ArrayList(); | |
public Category(String name, Map element) { | |
this.name = name; | |
this.element = element; | |
childCategory = new ArrayList(); | |
} | |
public String getName() { return name; } | |
public List getChildCategory() { return childCategory; } | |
public Map getElement() { return element; } | |
public void setName(String name) {this.name = name; } | |
public void addChildCategory(Category category) {this.category.add(category); } | |
public void setElement(Map element) {this.element = element; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
現在作成中。。。
このクラスをベースにXMLの読み込みクラスを作成する