⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 portletapptype.java

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/* * This class was automatically generated with * <a href="http://www.castor.org">Castor 0.9.5.2</a>, using an XML * Schema. * $Id: PortletAppType.java 4496 2006-02-08 20:27:04Z wehrens $ */package org.gridsphere.portletcontainer.impl.descriptor;//---------------------------------///- Imported classes and packages -///---------------------------------/import org.exolab.castor.xml.Marshaller;import org.exolab.castor.xml.Unmarshaller;import java.util.ArrayList;/** * Class PortletAppType. * * @version $Revision: 3298 $ $Date: 2004-06-29 07:19:44 -0700 (Tue, 29 Jun 2004) $ */public class PortletAppType implements java.io.Serializable {    //--------------------------/    //- Class/Member Variables -/    //--------------------------/    /**     * Field _version     */    private java.lang.String _version;    /**     * Field _id     */    private java.lang.String _id;    /**     * Field _portletList     */    private java.util.ArrayList _portletList;    /**     * Field _customPortletModeList     */    private java.util.ArrayList _customPortletModeList;    /**     * Field _customWindowStateList     */    private java.util.ArrayList _customWindowStateList;    /**     * Field _userAttributeList     */    private java.util.ArrayList _userAttributeList;    /**     * Field _securityConstraintList     */    private java.util.ArrayList _securityConstraintList;    //----------------/    //- Constructors -/    //----------------/    public PortletAppType() {        super();        _portletList = new ArrayList();        _customPortletModeList = new ArrayList();        _customWindowStateList = new ArrayList();        _userAttributeList = new ArrayList();        _securityConstraintList = new ArrayList();    } //-- org.gridsphere.portletcontainer.jsr.descriptor.PortletAppType()    //-----------/    //- Methods -/    //-----------/    /**     * Method addCustomPortletMode     *     * @param vCustomPortletMode     */    public void addCustomPortletMode(org.gridsphere.portletcontainer.impl.descriptor.CustomPortletMode vCustomPortletMode)            throws java.lang.IndexOutOfBoundsException {        _customPortletModeList.add(vCustomPortletMode);    } //-- void addCustomPortletMode(org.gridsphere.portletcontainer.jsr.descriptor.CustomPortletMode)    /**     * Method addCustomPortletMode     *     * @param index     * @param vCustomPortletMode     */    public void addCustomPortletMode(int index, org.gridsphere.portletcontainer.impl.descriptor.CustomPortletMode vCustomPortletMode)            throws java.lang.IndexOutOfBoundsException {        _customPortletModeList.add(index, vCustomPortletMode);    } //-- void addCustomPortletMode(int, org.gridsphere.portletcontainer.jsr.descriptor.CustomPortletMode)    /**     * Method addCustomWindowState     *     * @param vCustomWindowState     */    public void addCustomWindowState(org.gridsphere.portletcontainer.impl.descriptor.CustomWindowState vCustomWindowState)            throws java.lang.IndexOutOfBoundsException {        _customWindowStateList.add(vCustomWindowState);    } //-- void addCustomWindowState(org.gridsphere.portletcontainer.jsr.descriptor.CustomWindowState)    /**     * Method addCustomWindowState     *     * @param index     * @param vCustomWindowState     */    public void addCustomWindowState(int index, org.gridsphere.portletcontainer.impl.descriptor.CustomWindowState vCustomWindowState)            throws java.lang.IndexOutOfBoundsException {        _customWindowStateList.add(index, vCustomWindowState);    } //-- void addCustomWindowState(int, org.gridsphere.portletcontainer.jsr.descriptor.CustomWindowState)    /**     * Method addPortlet     *     * @param vPortlet     */    public void addPortlet(org.gridsphere.portletcontainer.impl.descriptor.PortletDefinition vPortlet)            throws java.lang.IndexOutOfBoundsException {        _portletList.add(vPortlet);    } //-- void addPortlet(org.gridsphere.portletcontainer.jsr.descriptor.Portlet)    /**     * Method addPortlet     *     * @param index     * @param vPortlet     */    public void addPortlet(int index, org.gridsphere.portletcontainer.impl.descriptor.PortletDefinition vPortlet)            throws java.lang.IndexOutOfBoundsException {        _portletList.add(index, vPortlet);    } //-- void addPortlet(int, org.gridsphere.portletcontainer.jsr.descriptor.Portlet)    /**     * Method addSecurityConstraint     *     * @param vSecurityConstraint     */    public void addSecurityConstraint(org.gridsphere.portletcontainer.impl.descriptor.SecurityConstraint vSecurityConstraint)            throws java.lang.IndexOutOfBoundsException {        _securityConstraintList.add(vSecurityConstraint);    } //-- void addSecurityConstraint(org.gridsphere.portletcontainer.jsr.descriptor.SecurityConstraint)    /**     * Method addSecurityConstraint     *     * @param index     * @param vSecurityConstraint     */    public void addSecurityConstraint(int index, org.gridsphere.portletcontainer.impl.descriptor.SecurityConstraint vSecurityConstraint)            throws java.lang.IndexOutOfBoundsException {        _securityConstraintList.add(index, vSecurityConstraint);    } //-- void addSecurityConstraint(int, org.gridsphere.portletcontainer.jsr.descriptor.SecurityConstraint)    /**     * Method addUserAttribute     *     * @param vUserAttribute     */    public void addUserAttribute(org.gridsphere.portletcontainer.impl.descriptor.UserAttribute vUserAttribute)            throws java.lang.IndexOutOfBoundsException {        _userAttributeList.add(vUserAttribute);    } //-- void addUserAttribute(org.gridsphere.portletcontainer.jsr.descriptor.UserAttribute)    /**     * Method addUserAttribute     *     * @param index     * @param vUserAttribute     */    public void addUserAttribute(int index, org.gridsphere.portletcontainer.impl.descriptor.UserAttribute vUserAttribute)            throws java.lang.IndexOutOfBoundsException {        _userAttributeList.add(index, vUserAttribute);    } //-- void addUserAttribute(int, org.gridsphere.portletcontainer.jsr.descriptor.UserAttribute)    /**     * Method clearCustomPortletMode     */    public void clearCustomPortletMode() {        _customPortletModeList.clear();    } //-- void clearCustomPortletMode()    /**     * Method clearCustomWindowState     */    public void clearCustomWindowState() {        _customWindowStateList.clear();    } //-- void clearCustomWindowState()    /**     * Method clearPortlet     */    public void clearPortlet() {        _portletList.clear();    } //-- void clearPortlet()    /**     * Method clearSecurityConstraint     */    public void clearSecurityConstraint() {        _securityConstraintList.clear();    } //-- void clearSecurityConstraint()    /**     * Method clearUserAttribute     */    public void clearUserAttribute() {        _userAttributeList.clear();    } //-- void clearUserAttribute()    /**     * Method enumerateCustomPortletMode     */    public java.util.Enumeration enumerateCustomPortletMode() {        return new org.exolab.castor.util.IteratorEnumeration(_customPortletModeList.iterator());    } //-- java.util.Enumeration enumerateCustomPortletMode()    /**     * Method enumerateCustomWindowState     */    public java.util.Enumeration enumerateCustomWindowState() {        return new org.exolab.castor.util.IteratorEnumeration(_customWindowStateList.iterator());    } //-- java.util.Enumeration enumerateCustomWindowState()    /**     * Method enumeratePortlet     */    public java.util.Enumeration enumeratePortlet() {        return new org.exolab.castor.util.IteratorEnumeration(_portletList.iterator());    } //-- java.util.Enumeration enumeratePortlet()    /**     * Method enumerateSecurityConstraint     */    public java.util.Enumeration enumerateSecurityConstraint() {        return new org.exolab.castor.util.IteratorEnumeration(_securityConstraintList.iterator());    } //-- java.util.Enumeration enumerateSecurityConstraint()    /**     * Method enumerateUserAttribute     */    public java.util.Enumeration enumerateUserAttribute() {        return new org.exolab.castor.util.IteratorEnumeration(_userAttributeList.iterator());    } //-- java.util.Enumeration enumerateUserAttribute()    /**     * Method getCustomPortletMode     *     * @param index     */    public org.gridsphere.portletcontainer.impl.descriptor.CustomPortletMode getCustomPortletMode(int index)            throws java.lang.IndexOutOfBoundsException {        //-- check bounds for index        if ((index < 0) || (index > _customPortletModeList.size())) {            throw new IndexOutOfBoundsException();        }        return (org.gridsphere.portletcontainer.impl.descriptor.CustomPortletMode) _customPortletModeList.get(index);    } //-- org.gridsphere.portletcontainer.jsr.descriptor.CustomPortletMode getCustomPortletMode(int)    /**     * Method getCustomPortletMode     */    public org.gridsphere.portletcontainer.impl.descriptor.CustomPortletMode[] getCustomPortletMode() {        int size = _customPortletModeList.size();        org.gridsphere.portletcontainer.impl.descriptor.CustomPortletMode[] mArray = new org.gridsphere.portletcontainer.impl.descriptor.CustomPortletMode[size];        for (int index = 0; index < size; index++) {            mArray[index] = (org.gridsphere.portletcontainer.impl.descriptor.CustomPortletMode) _customPortletModeList.get(index);        }        return mArray;    } //-- org.gridsphere.portletcontainer.jsr.descriptor.CustomPortletMode[] getCustomPortletMode()    /**     * Method getCustomPortletModeCount     */    public int getCustomPortletModeCount() {        return _customPortletModeList.size();    } //-- int getCustomPortletModeCount()    /**     * Method getCustomWindowState     *     * @param index     */    public org.gridsphere.portletcontainer.impl.descriptor.CustomWindowState getCustomWindowState(int index)            throws java.lang.IndexOutOfBoundsException {        //-- check bounds for index        if ((index < 0) || (index > _customWindowStateList.size())) {            throw new IndexOutOfBoundsException();        }        return (org.gridsphere.portletcontainer.impl.descriptor.CustomWindowState) _customWindowStateList.get(index);    } //-- org.gridsphere.portletcontainer.jsr.descriptor.CustomWindowState getCustomWindowState(int)    /**     * Method getCustomWindowState     */    public org.gridsphere.portletcontainer.impl.descriptor.CustomWindowState[] getCustomWindowState() {        int size = _customWindowStateList.size();        org.gridsphere.portletcontainer.impl.descriptor.CustomWindowState[] mArray = new org.gridsphere.portletcontainer.impl.descriptor.CustomWindowState[size];        for (int index = 0; index < size; index++) {            mArray[index] = (org.gridsphere.portletcontainer.impl.descriptor.CustomWindowState) _customWindowStateList.get(index);        }        return mArray;    } //-- org.gridsphere.portletcontainer.jsr.descriptor.CustomWindowState[] getCustomWindowState()    /**     * Method getCustomWindowStateCount     */    public int getCustomWindowStateCount() {        return _customWindowStateList.size();    } //-- int getCustomWindowStateCount()    /**     * Returns the value of field 'id'.     *     * @return the value of field 'id'.     */    public java.lang.String getId() {        return this._id;    } //-- java.lang.String getId()    /**     * Method getPortlet     *     * @param index     */    public org.gridsphere.portletcontainer.impl.descriptor.PortletDefinition getPortlet(int index)            throws java.lang.IndexOutOfBoundsException {        //-- check bounds for index        if ((index < 0) || (index > _portletList.size())) {            throw new IndexOutOfBoundsException();        }        return (org.gridsphere.portletcontainer.impl.descriptor.PortletDefinition) _portletList.get(index);    } //-- org.gridsphere.portletcontainer.jsr.descriptor.Portlet getPortlet(int)    /**     * Method getPortlet     */    public org.gridsphere.portletcontainer.impl.descriptor.PortletDefinition[] getPortlet() {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -