📄 requserproperties.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.userprop;
//---------------------------------/
//- 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;
/**
* Class ReqUserProperties.
*
* @version $Revision$ $Date$
*/
public class ReqUserProperties extends com.queplix.core.utils.jxb.JXBObject
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field _reqUserPropertyList
*/
private java.util.ArrayList _reqUserPropertyList;
//----------------/
//- Constructors -/
//----------------/
public ReqUserProperties()
{
super();
_reqUserPropertyList = new ArrayList();
} //-- com.queplix.core.modules.config.jxb.userprop.ReqUserProperties()
//-----------/
//- Methods -/
//-----------/
/**
* Method addReqUserProperty
*
*
*
* @param vReqUserProperty
*/
public void addReqUserProperty(com.queplix.core.modules.config.jxb.userprop.ReqUserProperty vReqUserProperty)
throws java.lang.IndexOutOfBoundsException
{
_reqUserPropertyList.add(vReqUserProperty);
} //-- void addReqUserProperty(com.queplix.core.modules.config.jxb.userprop.ReqUserProperty)
/**
* Method addReqUserProperty
*
*
*
* @param index
* @param vReqUserProperty
*/
public void addReqUserProperty(int index, com.queplix.core.modules.config.jxb.userprop.ReqUserProperty vReqUserProperty)
throws java.lang.IndexOutOfBoundsException
{
_reqUserPropertyList.add(index, vReqUserProperty);
} //-- void addReqUserProperty(int, com.queplix.core.modules.config.jxb.userprop.ReqUserProperty)
/**
* Method clearReqUserProperty
*
*/
public void clearReqUserProperty()
{
_reqUserPropertyList.clear();
} //-- void clearReqUserProperty()
/**
* Method enumerateReqUserProperty
*
*
*
* @return Enumeration
*/
public java.util.Enumeration enumerateReqUserProperty()
{
return new org.exolab.castor.util.IteratorEnumeration(_reqUserPropertyList.iterator());
} //-- java.util.Enumeration enumerateReqUserProperty()
/**
* Method getReqUserProperty
*
*
*
* @param index
* @return ReqUserProperty
*/
public com.queplix.core.modules.config.jxb.userprop.ReqUserProperty getReqUserProperty(int index)
throws java.lang.IndexOutOfBoundsException
{
//-- check bounds for index
if ((index < 0) || (index > _reqUserPropertyList.size())) {
throw new IndexOutOfBoundsException();
}
return (com.queplix.core.modules.config.jxb.userprop.ReqUserProperty) _reqUserPropertyList.get(index);
} //-- com.queplix.core.modules.config.jxb.userprop.ReqUserProperty getReqUserProperty(int)
/**
* Method getReqUserProperty
*
*
*
* @return ReqUserProperty
*/
public com.queplix.core.modules.config.jxb.userprop.ReqUserProperty[] getReqUserProperty()
{
int size = _reqUserPropertyList.size();
com.queplix.core.modules.config.jxb.userprop.ReqUserProperty[] mArray = new com.queplix.core.modules.config.jxb.userprop.ReqUserProperty[size];
for (int index = 0; index < size; index++) {
mArray[index] = (com.queplix.core.modules.config.jxb.userprop.ReqUserProperty) _reqUserPropertyList.get(index);
}
return mArray;
} //-- com.queplix.core.modules.config.jxb.userprop.ReqUserProperty[] getReqUserProperty()
/**
* Method getReqUserPropertyCount
*
*
*
* @return int
*/
public int getReqUserPropertyCount()
{
return _reqUserPropertyList.size();
} //-- int getReqUserPropertyCount()
/**
* 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 removeReqUserProperty
*
*
*
* @param vReqUserProperty
* @return boolean
*/
public boolean removeReqUserProperty(com.queplix.core.modules.config.jxb.userprop.ReqUserProperty vReqUserProperty)
{
boolean removed = _reqUserPropertyList.remove(vReqUserProperty);
return removed;
} //-- boolean removeReqUserProperty(com.queplix.core.modules.config.jxb.userprop.ReqUserProperty)
/**
* Method setReqUserProperty
*
*
*
* @param index
* @param vReqUserProperty
*/
public void setReqUserProperty(int index, com.queplix.core.modules.config.jxb.userprop.ReqUserProperty vReqUserProperty)
throws java.lang.IndexOutOfBoundsException
{
//-- check bounds for index
if ((index < 0) || (index > _reqUserPropertyList.size())) {
throw new IndexOutOfBoundsException();
}
_reqUserPropertyList.set(index, vReqUserProperty);
} //-- void setReqUserProperty(int, com.queplix.core.modules.config.jxb.userprop.ReqUserProperty)
/**
* Method setReqUserProperty
*
*
*
* @param reqUserPropertyArray
*/
public void setReqUserProperty(com.queplix.core.modules.config.jxb.userprop.ReqUserProperty[] reqUserPropertyArray)
{
//-- copy array
_reqUserPropertyList.clear();
for (int i = 0; i < reqUserPropertyArray.length; i++) {
_reqUserPropertyList.add(reqUserPropertyArray[i]);
}
} //-- void setReqUserProperty(com.queplix.core.modules.config.jxb.userprop.ReqUserProperty)
/**
* 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.config.jxb.userprop.ReqUserProperties) Unmarshaller.unmarshal(com.queplix.core.modules.config.jxb.userprop.ReqUserProperties.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 + -