📄 script.java
字号:
/* * Copyright (C) 2001 - 2004 ScalAgent Distributed Technologies * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA. * * Initial developer(s): ScalAgent Distributed Technologies * Contributor(s): */package fr.dyade.aaa.admin.script;import java.lang.*;import java.io.*;import java.util.*;import fr.dyade.aaa.admin.cmd.*;import fr.dyade.aaa.agent.conf.*;/** * Script contains an AdminCmd vector. Each commands permits to * create/remove domain, network, server and set/unset property or * jvm argument in A3CMLConfig (configuration). * * @see fr.dyade.aaa.agent.AgentAdmin * @see AdminCmd * @see A3CMLConfig */public class Script implements Serializable, Cloneable { /** AdminCmd Vector */ private Vector commands = null; /** create new configuration */ public boolean newConfig = false; /** * Script * * @see AgentAdmin */ public Script() { commands = new Vector(); } public void add(AdminCmd cmd) { commands.addElement(cmd); } public boolean remove(AdminCmd cmd) { return commands.removeElement(cmd); } public boolean contains(AdminCmd cmd) { return commands.contains(cmd); } public boolean isEmpty() { return commands.isEmpty(); } public Enumeration elements() { return commands.elements(); } public int size() { return commands.size(); } public Object elementAt(int i) throws ArrayIndexOutOfBoundsException { return commands.elementAt(i); } public Object firstElement() throws NoSuchElementException { return commands.firstElement(); } public String toString() { return commands.toString(); } public Object clone() throws CloneNotSupportedException { Script clone = (Script)super.clone(); clone.commands = (Vector)commands.clone(); clone.newConfig = newConfig; return clone; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -