14.07.2013 Views

Contents - Cultural View

Contents - Cultural View

Contents - Cultural View

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Java 4K Game Programming Contest 106<br />

References<br />

[1] http:/ / forum. java. sun. com/ thread. jspa?threadID=471050& start=279& tstart=0<br />

[2] http:/ / www. javaunlimited. net/ games/ java4k_2005. php<br />

[3] http:/ / games. datadino. com/ 4K_2005/ scores. html<br />

[4] http:/ / games. datadino. com/ 4K_2005/ 4K%20Scores. xls<br />

[5] http:/ / javaunlimited. net/ results/<br />

[6] "JavaGaming Forum" (http:/ / www. javagaming. org/ forums/ index. php?topic=16357. msg129239#msg129239). . Retrieved 2007-04-30.<br />

[7] http:/ / javaunlimited. net/ games/ java4k_2007. php<br />

[8] http:/ / javaunlimited. net/ vote/<br />

[9] http:/ / www. java4k. com/ index. php?action=home<br />

[10] http:/ / www. javagaming. org/ forums/ index. php?board=56. 0<br />

[11] http:/ / www. javagaming. org<br />

[12] http:/ / java4k. com/ overall. html<br />

[13] http:/ / java4k. com/ reviews. html<br />

[14] http:/ / java4k. com/ index. php?action=games& cid=4<br />

[15] http:/ / web. archive. org/ web/ 20021029192411/ http:/ / forum. java. sun. com/ thread. jsp?forum=406& thread=293877<br />

[16] http:/ / web. archive. org/ web/ 20030804050840/ http:/ / www. saber-x. com/ midgarddesign/ 4k. html<br />

[17] http:/ / forum. java. sun. com/ thread. jspa?threadID=471050& start=15& tstart=0<br />

[18] http:/ / javaunlimited. net/<br />

[19] http:/ / wiki. java. net/ bin/ view/ Games/ 4KGamesDesign<br />

[20] http:/ / www. ahristov. com/ tutorial/ java4k-tips. html<br />

[21] http:/ / www. javagaming. org/ forums/ index. php?board=46. 0<br />

[22] http:/ / www. javagaming. org/ forums/ index. php?topic=11611. 0<br />

[23] http:/ / www. javagaming. org/ forums/ index. php?topic=11509. 0<br />

CookXml<br />

CookXml is a unique XML data binding engine in Java. It is capable mapping XML documents of desired format<br />

directly onto the corresponding object-oriented classes, essentially treating XML as a programming language rather<br />

than merely a data storage format. Therefore, it is ideal to use CookXml to write any programs that interprets XML.<br />

The tag library of CookXml is constructed dynamically at run time, and thus allows dynamic XML schema. The<br />

current implementation has unmarshaling part done.<br />

CookXml is free software, distributed under a permissive, X11 style licence.<br />

Unmarshaling<br />

CookXml offers the ability to directly mapping XML documents onto existing classes by breaking down the process<br />

into three general steps. Then use a set of delegates, together forming a tag library, to handle actions performed at<br />

these steps.<br />

1. Object creation. Each element tag corresponds to an object instance. The action to create the object instance<br />

corresponds to a creator in CookXml.<br />

2. Property setting. Each attribute of the XML element corresponds to setting a property of the object instance. This<br />

property can be handled by a setter in CookXml. For languages that offer reflection, such as Java and C#, such<br />

property setting can be automatically detected using reflection. In these cases, to match the string attribute value<br />

to the target property class type, a converter is necessary.<br />

3. Add action. When CookXml obtains an object corresponding to an element tag, it is "added" to the parent object<br />

corresponding to the parent element tag. The specific add action is handled by an adder in CookXml.<br />

Save for CDATA nodes, the three above types of actions can handle all elements in an XML document. CDATA in<br />

general can be handled either in the creator function or the adder function.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!