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

📄 argsimplelist.java

📁 一个很好实用的工作流OSWORKFLOW开发例子.有着非常优秀的灵活性.
💻 JAVA
字号:
/*
 * Created on 21-dic-2004
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package com.opensymphony.workflow.loader;

import java.util.ArrayList;
import java.util.List;

import org.w3c.dom.Element;

/**
 * @author acapitani
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class ArgSimpleList implements ArgType 
{
	protected String sName = "";
	protected String sType = "";
	protected List argList = new ArrayList();
	
	public boolean init(Element at)
	{
		sName = at.getAttribute("name");
		if ((sName==null)||(sName.length()==0))
			return false;
		sType = at.getAttribute("type");
		if (sType==null)
			sType = "";
		
		List args = XMLUtil.getChildElements(at, "arg");
		for(int l = 0; l < args.size(); l++)
		{
			Element arg = (Element)args.get(l);
			String sValue = arg.getAttribute("value");
			if (sValue!=null)
				argList.add(sValue);
		}
		return true;
	}
	
  public String getName() 
  {
    return sName;
  }

  public String getType() 
  {
    return sType;
  }

  public List getArgList() 
  {
    return argList;
  }
}

⌨️ 快捷键说明

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