WEB开发网
开发学院软件开发Java Java6 WebService 使用复杂对象 阅读

Java6 WebService 使用复杂对象

 2009-12-02 00:00:00 来源:WEB开发网   
核心提示: packagelavasoft.server;/***CreatedbyIntelliJIDEA.**@authorleizhimin2009-11-1617:09:46*/publicclassFoo{privateStringname;privateStringsex;publicFoo()

package lavasoft.server; 
/** 
* Created by IntelliJ IDEA. 
* 
* @author leizhimin 2009-11-16 17:09:46 
*/ 
public class Foo { 
        private String name; 
        private String sex; 
        public Foo() { 
        } 
        public Foo(String name, String sex) { 
                this.name = name; 
                this.sex = sex; 
        } 
        public String getName() { 
                return name; 
        } 
        public void setName(String name) { 
                this.name = name; 
        } 
        public String getSex() { 
                return sex; 
        } 
        public void setSex(String sex) { 
                this.sex = sex; 
        } 
        @Override 
        public String toString() { 
                return "Foo{" + 
                                "sex='" + sex + '\'' + 
                                ", name='" + name + '\'' + 
                                '}'; 
        } 
}

Tags:Java WebService 使用

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接