📄 messages.java
字号:
/*
* This class was automatically generated with
* <a href="http://www.castor.org">Castor 0.9.7</a>, using an XML
* Schema.
* $Id$
*/
package com.queplix.core.modules.config.jxb;
//---------------------------------/
//- Imported classes and packages -/
//---------------------------------/
import java.io.IOException;
import java.io.Reader;
import java.io.Serializable;
import java.io.Writer;
import java.util.ArrayList;
import java.util.Enumeration;
import org.exolab.castor.xml.MarshalException;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;
import org.xml.sax.ContentHandler;
/**
* The root element
*
* @version $Revision$ $Date$
*/
public class Messages extends com.queplix.core.utils.jxb.JXBObject
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Internal choice value storage
*/
private java.lang.Object _choiceValue;
/**
* The sequence of server-side messages
*/
private java.util.ArrayList _serverList;
/**
* The sequence of client-side messages
*/
private java.util.ArrayList _clientList;
/**
* The sequence of messages for popup-menus
*/
private java.util.ArrayList _popupList;
//----------------/
//- Constructors -/
//----------------/
public Messages()
{
super();
_serverList = new ArrayList();
_clientList = new ArrayList();
_popupList = new ArrayList();
} //-- com.queplix.core.modules.config.jxb.Messages()
//-----------/
//- Methods -/
//-----------/
/**
* Method addClient
*
*
*
* @param vClient
*/
public void addClient(com.queplix.core.modules.config.jxb.Client vClient)
throws java.lang.IndexOutOfBoundsException
{
_clientList.add(vClient);
} //-- void addClient(com.queplix.core.modules.config.jxb.Client)
/**
* Method addClient
*
*
*
* @param index
* @param vClient
*/
public void addClient(int index, com.queplix.core.modules.config.jxb.Client vClient)
throws java.lang.IndexOutOfBoundsException
{
_clientList.add(index, vClient);
} //-- void addClient(int, com.queplix.core.modules.config.jxb.Client)
/**
* Method addPopup
*
*
*
* @param vPopup
*/
public void addPopup(com.queplix.core.modules.config.jxb.Popup vPopup)
throws java.lang.IndexOutOfBoundsException
{
_popupList.add(vPopup);
} //-- void addPopup(com.queplix.core.modules.config.jxb.Popup)
/**
* Method addPopup
*
*
*
* @param index
* @param vPopup
*/
public void addPopup(int index, com.queplix.core.modules.config.jxb.Popup vPopup)
throws java.lang.IndexOutOfBoundsException
{
_popupList.add(index, vPopup);
} //-- void addPopup(int, com.queplix.core.modules.config.jxb.Popup)
/**
* Method addServer
*
*
*
* @param vServer
*/
public void addServer(com.queplix.core.modules.config.jxb.Server vServer)
throws java.lang.IndexOutOfBoundsException
{
_serverList.add(vServer);
} //-- void addServer(com.queplix.core.modules.config.jxb.Server)
/**
* Method addServer
*
*
*
* @param index
* @param vServer
*/
public void addServer(int index, com.queplix.core.modules.config.jxb.Server vServer)
throws java.lang.IndexOutOfBoundsException
{
_serverList.add(index, vServer);
} //-- void addServer(int, com.queplix.core.modules.config.jxb.Server)
/**
* Method clearClient
*
*/
public void clearClient()
{
_clientList.clear();
} //-- void clearClient()
/**
* Method clearPopup
*
*/
public void clearPopup()
{
_popupList.clear();
} //-- void clearPopup()
/**
* Method clearServer
*
*/
public void clearServer()
{
_serverList.clear();
} //-- void clearServer()
/**
* Method enumerateClient
*
*
*
* @return Enumeration
*/
public java.util.Enumeration enumerateClient()
{
return new org.exolab.castor.util.IteratorEnumeration(_clientList.iterator());
} //-- java.util.Enumeration enumerateClient()
/**
* Method enumeratePopup
*
*
*
* @return Enumeration
*/
public java.util.Enumeration enumeratePopup()
{
return new org.exolab.castor.util.IteratorEnumeration(_popupList.iterator());
} //-- java.util.Enumeration enumeratePopup()
/**
* Method enumerateServer
*
*
*
* @return Enumeration
*/
public java.util.Enumeration enumerateServer()
{
return new org.exolab.castor.util.IteratorEnumeration(_serverList.iterator());
} //-- java.util.Enumeration enumerateServer()
/**
* Returns the value of field 'choiceValue'. The field
* 'choiceValue' has the following description: Internal choice
* value storage
*
* @return Object
* @return the value of field 'choiceValue'.
*/
public java.lang.Object getChoiceValue()
{
return this._choiceValue;
} //-- java.lang.Object getChoiceValue()
/**
* Method getClient
*
*
*
* @param index
* @return Client
*/
public com.queplix.core.modules.config.jxb.Client getClient(int index)
throws java.lang.IndexOutOfBoundsException
{
//-- check bounds for index
if ((index < 0) || (index > _clientList.size())) {
throw new IndexOutOfBoundsException();
}
return (com.queplix.core.modules.config.jxb.Client) _clientList.get(index);
} //-- com.queplix.core.modules.config.jxb.Client getClient(int)
/**
* Method getClient
*
*
*
* @return Client
*/
public com.queplix.core.modules.config.jxb.Client[] getClient()
{
int size = _clientList.size();
com.queplix.core.modules.config.jxb.Client[] mArray = new com.queplix.core.modules.config.jxb.Client[size];
for (int index = 0; index < size; index++) {
mArray[index] = (com.queplix.core.modules.config.jxb.Client) _clientList.get(index);
}
return mArray;
} //-- com.queplix.core.modules.config.jxb.Client[] getClient()
/**
* Method getClientCount
*
*
*
* @return int
*/
public int getClientCount()
{
return _clientList.size();
} //-- int getClientCount()
/**
* Method getPopup
*
*
*
* @param index
* @return Popup
*/
public com.queplix.core.modules.config.jxb.Popup getPopup(int index)
throws java.lang.IndexOutOfBoundsException
{
//-- check bounds for index
if ((index < 0) || (index > _popupList.size())) {
throw new IndexOutOfBoundsException();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -