⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 owentityroot.java

📁 陕西电信sp客户端
💻 JAVA
字号:
// ----------------------------------------------------------------------------
// $Source: /cvs/vas2006/webpro2/webpro_java/src/com/onewaveinc/portalman/aaa/v20/soapentity/OWEntityRoot.java,v $
// ----------------------------------------------------------------------------
// Copyright (c) 2002 by Onewave Inc.
// ----------------------------------------------------------------------------
// $Id: OWEntityRoot.java,v 1.1.1.1 2006/08/01 05:49:33 zhengx Exp $
// ----------------------------------------------------------------------------
// $Log: OWEntityRoot.java,v $
// Revision 1.1.1.1  2006/08/01 05:49:33  zhengx
// no message
//
// Revision 1.1  2006/06/02 03:33:14  wuyan
// *** empty log message ***
//
// Revision 1.1  2005/12/08 10:34:58  like
// no message
//
// Revision 1.1  2003/07/28 06:29:30  zengc
// no message
//
//
// ----------------------------------------------------------------------------

package com.onewaveinc.portalman.aaa.v20.soapentity;

/**
 * <p>Title: PortalMAN SDK API Documentation</p>
 * <p>Description: OneWave Technologies., Inc. PortalMAN Value-add Management Platform 3rd Software Development Kit</p>
 * <p>Copyright: Copyright (c) 2002 </p>
 * <p>Company: OneWave Technologies., Inc.</p>
 * @author 3rd AAA & ICP Integration Developement Team
 * @version 1.5
 */

import java.lang.reflect.*;

public abstract class OWEntityRoot {

	protected String versionNO;//版本号
	protected String icpCode;//ICP标识

	public OWEntityRoot() {
	}
	public void setVersionNO(String versionNO) {
		this.versionNO = versionNO;
	}
	public String getVersionNO() {
		return versionNO;
	}
	public String getIcpCode() {
		return icpCode;
	}
	public void setIcpCode(String icpCode) {
		this.icpCode = icpCode;
	}

	public String toString(){
		StringBuffer buffer = new StringBuffer(300);
		buffer.append("Object Class =").append(this.getClass().getName());

		Method[] methods = SOAPEntityConvertor.getMethods(this.getClass());
		for(int i=0; i< methods.length; i++){
			Method method = methods[i];
			String name = method.getName();
			if(name.substring(0,3).equalsIgnoreCase("get")){
				try {
					Object value = method.invoke(this,null);
					buffer.append("\n\tAttribute:").append(name.substring(3,name.length())).append(" = ").append(value);
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			}
		}
		return buffer.toString();
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -