📄 typedeclarations.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 TypeDeclarations.
*
* @version $Revision$ $Date$
*/
public class TypeDeclarations implements java.io.Serializable {
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field _typeDeclarationList
*/
private java.util.Vector _typeDeclarationList;
//----------------/
//- Constructors -/
//----------------/
public TypeDeclarations() {
super();
_typeDeclarationList = new Vector();
} //-- workflow.xwfbox.process.TypeDeclarations()
//-----------/
//- Methods -/
//-----------/
/**
* Method addTypeDeclaration
*
*
*
* @param vTypeDeclaration
*/
public void addTypeDeclaration(java.lang.Object vTypeDeclaration)
throws java.lang.IndexOutOfBoundsException
{
_typeDeclarationList.addElement(vTypeDeclaration);
} //-- void addTypeDeclaration(java.lang.Object)
/**
* Method addTypeDeclaration
*
*
*
* @param index
* @param vTypeDeclaration
*/
public void addTypeDeclaration(int index, java.lang.Object vTypeDeclaration)
throws java.lang.IndexOutOfBoundsException
{
_typeDeclarationList.insertElementAt(vTypeDeclaration, index);
} //-- void addTypeDeclaration(int, java.lang.Object)
/**
* Method enumerateTypeDeclaration
*
*
*
* @return Enumeration
*/
public java.util.Enumeration enumerateTypeDeclaration()
{
return _typeDeclarationList.elements();
} //-- java.util.Enumeration enumerateTypeDeclaration()
/**
* Method getTypeDeclaration
*
*
*
* @param index
* @return Object
*/
public java.lang.Object getTypeDeclaration(int index)
throws java.lang.IndexOutOfBoundsException
{
//-- check bounds for index
if ((index < 0) || (index > _typeDeclarationList.size())) {
throw new IndexOutOfBoundsException();
}
return (java.lang.Object) _typeDeclarationList.elementAt(index);
} //-- java.lang.Object getTypeDeclaration(int)
/**
* Method getTypeDeclaration
*
*
*
* @return Object
*/
public java.lang.Object[] getTypeDeclaration()
{
int size = _typeDeclarationList.size();
java.lang.Object[] mArray = new java.lang.Object[size];
for (int index = 0; index < size; index++) {
mArray[index] = (java.lang.Object) _typeDeclarationList.elementAt(index);
}
return mArray;
} //-- java.lang.Object[] getTypeDeclaration()
/**
* Method getTypeDeclarationCount
*
*
*
* @return int
*/
public int getTypeDeclarationCount()
{
return _typeDeclarationList.size();
} //-- int getTypeDeclarationCount()
/**
* Method removeAllTypeDeclaration
*
*/
public void removeAllTypeDeclaration()
{
_typeDeclarationList.removeAllElements();
} //-- void removeAllTypeDeclaration()
/**
* Method removeTypeDeclaration
*
*
*
* @param index
* @return Object
*/
public java.lang.Object removeTypeDeclaration(int index)
{
java.lang.Object obj = _typeDeclarationList.elementAt(index);
_typeDeclarationList.removeElementAt(index);
return (java.lang.Object) obj;
} //-- java.lang.Object removeTypeDeclaration(int)
/**
* Method setTypeDeclaration
*
*
*
* @param index
* @param vTypeDeclaration
*/
public void setTypeDeclaration(int index, java.lang.Object vTypeDeclaration)
throws java.lang.IndexOutOfBoundsException
{
//-- check bounds for index
if ((index < 0) || (index > _typeDeclarationList.size())) {
throw new IndexOutOfBoundsException();
}
_typeDeclarationList.setElementAt(vTypeDeclaration, index);
} //-- void setTypeDeclaration(int, java.lang.Object)
/**
* Method setTypeDeclaration
*
*
*
* @param typeDeclarationArray
*/
public void setTypeDeclaration(java.lang.Object[] typeDeclarationArray)
{
//-- copy array
_typeDeclarationList.removeAllElements();
for (int i = 0; i < typeDeclarationArray.length; i++) {
_typeDeclarationList.addElement(typeDeclarationArray[i]);
}
} //-- void setTypeDeclaration(java.lang.Object)
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -