📄 participants.java
字号:
/*
* This class was automatically generated with
* <a href="http://www.castor.org">Castor cvs.0.9.6</a>, using an
* XML Schema.
* $Id$
*/
package workflow.xwfbox.process;
//---------------------------------/
//- Imported classes and packages -/
//---------------------------------/
import java.io.Reader;
import java.io.Serializable;
import java.io.Writer;
import java.util.Enumeration;
import java.util.Vector;
/**
* Class Participants.
*
* @version $Revision$ $Date$
*/
public class Participants implements java.io.Serializable {
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field _participantList
*/
private java.util.Vector _participantList;
//----------------/
//- Constructors -/
//----------------/
public Participants() {
super();
_participantList = new Vector();
} //-- workflow.xwfbox.process.Participants()
//-----------/
//- Methods -/
//-----------/
/**
* Method addParticipant
*
*
*
* @param vParticipant
*/
public void addParticipant(java.lang.Object vParticipant)
throws java.lang.IndexOutOfBoundsException
{
_participantList.addElement(vParticipant);
} //-- void addParticipant(java.lang.Object)
/**
* Method addParticipant
*
*
*
* @param index
* @param vParticipant
*/
public void addParticipant(int index, java.lang.Object vParticipant)
throws java.lang.IndexOutOfBoundsException
{
_participantList.insertElementAt(vParticipant, index);
} //-- void addParticipant(int, java.lang.Object)
/**
* Method enumerateParticipant
*
*
*
* @return Enumeration
*/
public java.util.Enumeration enumerateParticipant()
{
return _participantList.elements();
} //-- java.util.Enumeration enumerateParticipant()
/**
* Method getParticipant
*
*
*
* @param index
* @return Object
*/
public java.lang.Object getParticipant(int index)
throws java.lang.IndexOutOfBoundsException
{
//-- check bounds for index
if ((index < 0) || (index > _participantList.size())) {
throw new IndexOutOfBoundsException();
}
return (java.lang.Object) _participantList.elementAt(index);
} //-- java.lang.Object getParticipant(int)
/**
* Method getParticipant
*
*
*
* @return Object
public java.lang.Object[] getParticipant()
{
int size = _participantList.size();
java.lang.Object[] mArray = new java.lang.Object[size];
for (int index = 0; index < size; index++) {
mArray[index] = (java.lang.Object) _participantList.elementAt(index);
}
return mArray;
} //-- java.lang.Object[] getParticipant()
*/
public java.util.Vector getParticipants()
{
return _participantList;
} //-- java.lang.Object[] getParticipant()
/**
* Method getParticipantCount
*
*
*
* @return int
*/
public int getParticipantCount()
{
return _participantList.size();
} //-- int getParticipantCount()
/**
* Method removeAllParticipant
*
*/
public void removeAllParticipant()
{
_participantList.removeAllElements();
} //-- void removeAllParticipant()
/**
* Method removeParticipant
*
*
*
* @param index
* @return Object
*/
public java.lang.Object removeParticipant(int index)
{
java.lang.Object obj = _participantList.elementAt(index);
_participantList.removeElementAt(index);
return (java.lang.Object) obj;
} //-- java.lang.Object removeParticipant(int)
/**
* Method setParticipant
*
*
*
* @param index
* @param vParticipant
*/
public void setParticipant(int index, java.lang.Object vParticipant)
throws java.lang.IndexOutOfBoundsException
{
//-- check bounds for index
if ((index < 0) || (index > _participantList.size())) {
throw new IndexOutOfBoundsException();
}
_participantList.setElementAt(vParticipant, index);
} //-- void setParticipant(int, java.lang.Object)
/**
* Method setParticipant
*
*
*
* @param participantArray
*/
public void setParticipant(java.lang.Object[] participantArray)
{
//-- copy array
_participantList.removeAllElements();
for (int i = 0; i < participantArray.length; i++) {
_participantList.addElement(participantArray[i]);
}
} //-- void setParticipant(java.lang.Object)
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -