issues
search
tempest200903
/
20141012-ganttchart
0
stars
1
forks
source link
DSL でエクスポートする
#8
Open
tempest200903
opened
9 years ago
tempest200903
commented
9 years ago
手本 Taskjuggler
tempest200903
commented
9 years ago
TODO 〔DSL でエクスポートする〕
F:\goat-pc-data\ecworkspace\20141012-ganttchart\document\issues\8.org.txt
https://github.com/tempest200903/20141012-ganttchart/issues/8
DSL でエクスポートする · Issue #8 · tempest200903/20141012-ganttchart
選択肢
選択肢1. Microsoft Project 2003 XML
OpenProj
e.g.
F:\goat-pc-data\ecworkspace\20141012-ganttchart\document\issues\openproj-sample101.xml
選択肢2. JSON, yaml
メリット
JavaScript など他言語での program は簡単。
人間がかきやすい。 --> JSON, yaml から XML への相互変換ツールを追加すればすむ。
選択肢3. java.beans.XMLEncoder
メリット
Java program は簡単。
今はそこまで優先度高くない。とりあえず、 XMLEncoder を採用。
トリガー ProjectFrame; MenuBar; MenuItem
出力先はとりあえず
F:\goat-pc-data\ecworkspace\20141012-ganttchart\save.xml
XMLEncoder デメリット。 JavaBeans 要件で public class, public constructor が必要。
public class, public constructor が不要なライブラリはないか?
digester
https://commons.apache.org/proper/commons-digester/
http://www.syboos.jp/java/doc/xml-to-java-object-by-digester.html?page=2
DigesterはXMLファイルをJavaオブジェクトへ単方向にマッピングするためのライブラリです。
XStream
http://netbuffalo.doorblog.jp/archives/4415606.html
https://www.ibm.com/developerworks/jp/xml/library/x-xstream/
Simple
http://netbuffalo.doorblog.jp/archives/4415606.html
http://www.ibm.com/developerworks/jp/xml/library/x-simplexobjs/
http://ka-ka-xyz.hatenablog.com/entry/20101218/1292688519
git commit: #8 DSL でエクスポートする トリガー ProjectFrame; MenuBar; MenuItem まで実装。
手本 Taskjuggler