易截截图软件、单文件、免安装、纯绿色、仅160KB

有反型java 对象转到xml xstream方式

package com.jcauto.action;
import java.util.ArrayList;
import java.util.List;
public class ContentRsp {

private String resultCode;

List<ContentInfo> contentList = new ArrayList<ContentInfo>();

public void addContent(ContentInfo contentInfo) {
contentList.add(contentInfo);
}
public void removeContent(ContentInfo contentInfo) {
contentList.remove(contentInfo);
}

public String getResultCode() {
return resultCode;
}
public void setResultCode(String resultCode) {
this.resultCode = resultCode;
}
}
package com.jcauto.action;
public class ContentInfo {
private String contentName;
private String contentId;
private String dispritiong;
private String catalogId;
private String title;
public String getContentName() {
return contentName;
}
public void setContentName(String contentName) {
this.contentName = contentName;
}
public String getContentId() {
return contentId;
}
public void setContentId(String contentId) {
this.contentId = contentId;
}
public String getDispritiong() {
return dispritiong;
}
public void setDispritiong(String dispritiong) {
this.dispritiong = dispritiong;
}
public String getCatalogId() {
return catalogId;
}
public void setCatalogId(String catalogId) {
this.catalogId = catalogId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}

}


相关文档:

java SAX解析XML文件

import java.io.File;
import java.io.FileNotFoundException;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
public class ResolveXmlFile {
 
 public void resolverXml() throws DocumentException, FileNotFoundExcept ......

Java中怎么改变字体的一个简单实例和运行效果

package java;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.*;
public class fontnameDome extends JFrame implements ActionListen ......

xml文件操作小结 关于方法SelectSingleNode的用法

最常见的XML数据类型有:Element, Attribute,Comment, Text.
  Element, 指形如<Name>Tom<Name>的节点。它可以包括:Element, Text, Comment, ProcessingInstruction, CDATA, and EntityReference.
  Attribute, 指在<Employee id=”12345”>中的粗体部分。
 &nb ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号