xmlºÍjava BeanµÄÖ±½Óת»»£¬Xmap
package test;
import java.util.ArrayList;
import java.util.List;
import org.nuxeo.common.xmap.annotation.XNode;
import org.nuxeo.common.xmap.annotation.XNodeList;
import org.nuxeo.common.xmap.annotation.XObject;
/**
* Book ʵÌå¶ÔÏ󣬴˴¦ÓÃXMap×¢½â
* @author Administrator
*
*/
@XObject
public class Book {
@XNode("title")
private String title;
@XNode("@no")
private String no;
@XNodeList(value = "subject", type = ArrayList.class, componentType = String.class)
private List<String> subjects;
@XNode("price")
private int price;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public List<String> getSubjects() {
return subjects;
}
public void setSubjects(List<String> subjects) {
this.subjects = subjects;
}
public int getPrice() {
return price;
}
public void setPrice(int price) {
this.price = price;
}
public String getNo() {
return no;
}
public void setNo(String no) {
this.no = no;
}
}
/**==================================================**/
package test;
import java.util.ArrayList;
import java.util.List;
import org.nuxeo.common.xmap.annotation.XNodeList;
import org.nuxeo.common.xmap.annotation.XObject;
/**
* ͼÊé¶ÔÏ󼯺ÏÀà
* @author zhouyu
*
*/
@XObject(value = "books")
public class Books {
@XNodeList(value = "book", type = ArrayList.class, componentType = Book.class)
private List<Book> book;
public List<Book> getBook() {
return book;
}
public void setBook(List<Book> book) {
this.book = book;
}
public void ad
Ïà¹ØÎĵµ£º
ÔÚ±¾ÎÄͨ¹ýÌṩʹJava Ó¦ÓóÌÐò¿ÉÒÔʹÓà USB É豸µÄ API ¶øÊ¹Õâ¸ö¹ý³Ì±äµÃ¸üÈÝÒ×.
Java ƽ̨һֱ¶¼ÒÔÆäÆ½Ì¨ÎÞ¹ØÐÔ×ÔºÀ¡£ËäÈ»ÕâÖÖÎÞ¹ØÐÔÓÐÐí¶àºÃ´¦£¬µ«ÊÇËüҲʹµÃ±àдÓëÓ²¼þ½»»¥µÄ Java Ó¦ÓóÌÐòµÄ¹ý³Ì±äµÃÏ൱¸´ÔÓ¡£ÔÚ±¾ÎÄÖУ¬Ñо¿¿ÆÑ§¼Ò½¯ÇåÒ°ÌÖÂÛÁËÁ½¸öÏîÄ¿£¬ËüÃÇͨ¹ýÌṩʹJava Ó¦ÓóÌÐò¿ÉÒÔʹÓà USB É豸µÄ API ¶øÊ¹Õâ ......
ÒÔÍùҪʹÓÃJava¶Ôʱ¼äÈÕÆÚ½øÐвÙ×÷£¬¿ÉÄÜ»áÓõ½ÒÔϵÄһЩÀࣺ
Date and its subclasses :
java.util.Date
java.sql.Date
java.sql.Timestamp
The calendar and time zone classes :
java.util.Calendar
java.util.GregorianCalendar
java.util.TimeZone
java.util.SimpleTimeZone
(for use with the Gregorian ......
Integration with the XML Data Type
With the introduction of the XML data type, we wanted to also give FOR XML the ability to generate an instance of XML directly (more precisely, it generates a single row, single column rowset where the cell contains the XML data type instance).
Because of the bac ......
Java ÐòÁл¯¼ò½é
Java ¶ÔÏóÐòÁл¯ÊÇ JDK 1.1 ÖÐÒýÈëµÄÒ»×鿪´´ÐÔÌØÐÔÖ®Ò»£¬ÓÃÓÚ×÷ΪһÖÖ½« Java ¶ÔÏóµÄ״̬ת»»Îª×Ö½ÚÊý×飬ÒÔ±ã´æ´¢»ò´«ÊäµÄ»úÖÆ£¬ÒÔºó£¬ÈÔ¿ÉÒÔ½«×Ö½ÚÊý×éת»»»Ø Java ¶ÔÏóÔÓеÄ״̬¡£
ʵ¼ÊÉÏ£¬ÐòÁл¯µÄ˼ÏëÊÇ “¶³½á” ¶ÔÏó״̬£¬´«Êä¶ÔÏó״̬£¨Ð´µ½´ÅÅÌ¡¢Í¨¹ýÍøÂç´«ÊäµÈµÈ£©£¬È»ºó “½ ......
µ¥Ôª²âÊÔ
1.
DBUnit
DBunitÊÇÒ»¸ö»ùÓÚjunitÀ©Õ¹µÄÊý¾Ý¿â²âÊÔ¿ò¼Ü¡£ËüÌṩÁË´óÁ¿µÄÀà¶ÔÓëÊý¾Ý¿âÏà¹ØµÄ²Ù×÷½øÐÐÁ˳éÏóºÍ·â×°¡£
2.MOckito
MockitoÊÇÒ»¸öÕë¶ÔJavaµÄmocking¿ò¼Ü¡£Äã¿ÉÒÔʹÓüò½àµÄAPI±àд³öƯÁÁµÄ²âÊÔ¡£
3.Hamcrest Matchers
Hamcrest ÊÇÒ»¸ö²âÊÔ¸¨Öú¹¤¾ß£¬ÌṩÁËÒ»Ì×ͨÓÃµÄÆ¥Åä·û Matcher£¬Áé»îʹÓÃÕâÐ ......