?? argsimplelist.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 + -