📄 eqlagents.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.eql.jxb.eqlagent; //---------------------------------/ //- 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;/** * EQL agent root element * * @version $Revision$ $Date$ */public class Eqlagents extends com.queplix.core.utils.jxb.JXBObject implements java.io.Serializable{ //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Field _eqlagentList */ private java.util.ArrayList _eqlagentList; //----------------/ //- Constructors -/ //----------------/ public Eqlagents() { super(); _eqlagentList = new ArrayList(); } //-- com.queplix.core.modules.eql.jxb.eqlagent.Eqlagents() //-----------/ //- Methods -/ //-----------/ /** * Method addEqlagent * * * * @param vEqlagent */ public void addEqlagent(com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent vEqlagent) throws java.lang.IndexOutOfBoundsException { _eqlagentList.add(vEqlagent); } //-- void addEqlagent(com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent) /** * Method addEqlagent * * * * @param index * @param vEqlagent */ public void addEqlagent(int index, com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent vEqlagent) throws java.lang.IndexOutOfBoundsException { _eqlagentList.add(index, vEqlagent); } //-- void addEqlagent(int, com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent) /** * Method clearEqlagent * */ public void clearEqlagent() { _eqlagentList.clear(); } //-- void clearEqlagent() /** * Method enumerateEqlagent * * * * @return Enumeration */ public java.util.Enumeration enumerateEqlagent() { return new org.exolab.castor.util.IteratorEnumeration(_eqlagentList.iterator()); } //-- java.util.Enumeration enumerateEqlagent() /** * Method getEqlagent * * * * @param index * @return Eqlagent */ public com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent getEqlagent(int index) throws java.lang.IndexOutOfBoundsException { //-- check bounds for index if ((index < 0) || (index > _eqlagentList.size())) { throw new IndexOutOfBoundsException(); } return (com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent) _eqlagentList.get(index); } //-- com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent getEqlagent(int) /** * Method getEqlagent * * * * @return Eqlagent */ public com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent[] getEqlagent() { int size = _eqlagentList.size(); com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent[] mArray = new com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent[size]; for (int index = 0; index < size; index++) { mArray[index] = (com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent) _eqlagentList.get(index); } return mArray; } //-- com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent[] getEqlagent() /** * Method getEqlagentCount * * * * @return int */ public int getEqlagentCount() { return _eqlagentList.size(); } //-- int getEqlagentCount() /** * Method isValid * * * * @return boolean */ public boolean isValid() { try { validate(); } catch (org.exolab.castor.xml.ValidationException vex) { return false; } return true; } //-- boolean isValid() /** * Method marshal * * * * @param out */ public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, out); } //-- void marshal(java.io.Writer) /** * Method marshal * * * * @param handler */ public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, handler); } //-- void marshal(org.xml.sax.ContentHandler) /** * Method removeEqlagent * * * * @param vEqlagent * @return boolean */ public boolean removeEqlagent(com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent vEqlagent) { boolean removed = _eqlagentList.remove(vEqlagent); return removed; } //-- boolean removeEqlagent(com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent) /** * Method setEqlagent * * * * @param index * @param vEqlagent */ public void setEqlagent(int index, com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent vEqlagent) throws java.lang.IndexOutOfBoundsException { //-- check bounds for index if ((index < 0) || (index > _eqlagentList.size())) { throw new IndexOutOfBoundsException(); } _eqlagentList.set(index, vEqlagent); } //-- void setEqlagent(int, com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent) /** * Method setEqlagent * * * * @param eqlagentArray */ public void setEqlagent(com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent[] eqlagentArray) { //-- copy array _eqlagentList.clear(); for (int i = 0; i < eqlagentArray.length; i++) { _eqlagentList.add(eqlagentArray[i]); } } //-- void setEqlagent(com.queplix.core.modules.eql.jxb.eqlagent.Eqlagent) /** * Method unmarshal * * * * @param reader * @return Object */ public static java.lang.Object unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (com.queplix.core.modules.eql.jxb.eqlagent.Eqlagents) Unmarshaller.unmarshal(com.queplix.core.modules.eql.jxb.eqlagent.Eqlagents.class, reader); } //-- java.lang.Object unmarshal(java.io.Reader) /** * Method validate * */ public void validate() throws org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); validator.validate(this); } //-- void validate() }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -