📄 sqlwrappers.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.jxb.sqlwrapper; //---------------------------------/ //- 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;/** * SQL Wrappers structure * * @version $Revision$ $Date$ */public class Sqlwrappers extends com.queplix.core.utils.jxb.JXBObject implements java.io.Serializable{ //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Field _default */ private java.lang.String _default; /** * Field _sqlwrapperList */ private java.util.ArrayList _sqlwrapperList; //----------------/ //- Constructors -/ //----------------/ public Sqlwrappers() { super(); _sqlwrapperList = new ArrayList(); } //-- com.queplix.core.jxb.sqlwrapper.Sqlwrappers() //-----------/ //- Methods -/ //-----------/ /** * Method addSqlwrapper * * * * @param vSqlwrapper */ public void addSqlwrapper(com.queplix.core.jxb.sqlwrapper.Sqlwrapper vSqlwrapper) throws java.lang.IndexOutOfBoundsException { _sqlwrapperList.add(vSqlwrapper); } //-- void addSqlwrapper(com.queplix.core.jxb.sqlwrapper.Sqlwrapper) /** * Method addSqlwrapper * * * * @param index * @param vSqlwrapper */ public void addSqlwrapper(int index, com.queplix.core.jxb.sqlwrapper.Sqlwrapper vSqlwrapper) throws java.lang.IndexOutOfBoundsException { _sqlwrapperList.add(index, vSqlwrapper); } //-- void addSqlwrapper(int, com.queplix.core.jxb.sqlwrapper.Sqlwrapper) /** * Method clearSqlwrapper * */ public void clearSqlwrapper() { _sqlwrapperList.clear(); } //-- void clearSqlwrapper() /** * Method enumerateSqlwrapper * * * * @return Enumeration */ public java.util.Enumeration enumerateSqlwrapper() { return new org.exolab.castor.util.IteratorEnumeration(_sqlwrapperList.iterator()); } //-- java.util.Enumeration enumerateSqlwrapper() /** * Returns the value of field 'default'. * * @return String * @return the value of field 'default'. */ public java.lang.String getDefault() { return this._default; } //-- java.lang.String getDefault() /** * Method getSqlwrapper * * * * @param index * @return Sqlwrapper */ public com.queplix.core.jxb.sqlwrapper.Sqlwrapper getSqlwrapper(int index) throws java.lang.IndexOutOfBoundsException { //-- check bounds for index if ((index < 0) || (index > _sqlwrapperList.size())) { throw new IndexOutOfBoundsException(); } return (com.queplix.core.jxb.sqlwrapper.Sqlwrapper) _sqlwrapperList.get(index); } //-- com.queplix.core.jxb.sqlwrapper.Sqlwrapper getSqlwrapper(int) /** * Method getSqlwrapper * * * * @return Sqlwrapper */ public com.queplix.core.jxb.sqlwrapper.Sqlwrapper[] getSqlwrapper() { int size = _sqlwrapperList.size(); com.queplix.core.jxb.sqlwrapper.Sqlwrapper[] mArray = new com.queplix.core.jxb.sqlwrapper.Sqlwrapper[size]; for (int index = 0; index < size; index++) { mArray[index] = (com.queplix.core.jxb.sqlwrapper.Sqlwrapper) _sqlwrapperList.get(index); } return mArray; } //-- com.queplix.core.jxb.sqlwrapper.Sqlwrapper[] getSqlwrapper() /** * Method getSqlwrapperCount * * * * @return int */ public int getSqlwrapperCount() { return _sqlwrapperList.size(); } //-- int getSqlwrapperCount() /** * 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 removeSqlwrapper * * * * @param vSqlwrapper * @return boolean */ public boolean removeSqlwrapper(com.queplix.core.jxb.sqlwrapper.Sqlwrapper vSqlwrapper) { boolean removed = _sqlwrapperList.remove(vSqlwrapper); return removed; } //-- boolean removeSqlwrapper(com.queplix.core.jxb.sqlwrapper.Sqlwrapper) /** * Sets the value of field 'default'. * * @param _default * @param default the value of field 'default'. */ public void setDefault(java.lang.String _default) { this._default = _default; } //-- void setDefault(java.lang.String) /** * Method setSqlwrapper * * * * @param index * @param vSqlwrapper */ public void setSqlwrapper(int index, com.queplix.core.jxb.sqlwrapper.Sqlwrapper vSqlwrapper) throws java.lang.IndexOutOfBoundsException { //-- check bounds for index if ((index < 0) || (index > _sqlwrapperList.size())) { throw new IndexOutOfBoundsException(); } _sqlwrapperList.set(index, vSqlwrapper); } //-- void setSqlwrapper(int, com.queplix.core.jxb.sqlwrapper.Sqlwrapper) /** * Method setSqlwrapper * * * * @param sqlwrapperArray */ public void setSqlwrapper(com.queplix.core.jxb.sqlwrapper.Sqlwrapper[] sqlwrapperArray) { //-- copy array _sqlwrapperList.clear(); for (int i = 0; i < sqlwrapperArray.length; i++) { _sqlwrapperList.add(sqlwrapperArray[i]); } } //-- void setSqlwrapper(com.queplix.core.jxb.sqlwrapper.Sqlwrapper) /** * 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.jxb.sqlwrapper.Sqlwrappers) Unmarshaller.unmarshal(com.queplix.core.jxb.sqlwrapper.Sqlwrappers.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 + -