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

📄 portletapptype.java

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
        int size = _portletList.size();        org.gridsphere.portletcontainer.impl.descriptor.PortletDefinition[] mArray = new org.gridsphere.portletcontainer.impl.descriptor.PortletDefinition[size];        for (int index = 0; index < size; index++) {            mArray[index] = (org.gridsphere.portletcontainer.impl.descriptor.PortletDefinition) _portletList.get(index);        }        return mArray;    } //-- org.gridsphere.portletcontainer.jsr.descriptor.Portlet[] getPortlet()    /**     * Method getPortletCount     */    public int getPortletCount() {        return _portletList.size();    } //-- int getPortletCount()    /**     * Method getSecurityConstraint     *     * @param index     */    public org.gridsphere.portletcontainer.impl.descriptor.SecurityConstraint getSecurityConstraint(int index)            throws java.lang.IndexOutOfBoundsException {        //-- check bounds for index        if ((index < 0) || (index > _securityConstraintList.size())) {            throw new IndexOutOfBoundsException();        }        return (org.gridsphere.portletcontainer.impl.descriptor.SecurityConstraint) _securityConstraintList.get(index);    } //-- org.gridsphere.portletcontainer.jsr.descriptor.SecurityConstraint getSecurityConstraint(int)    /**     * Method getSecurityConstraint     */    public org.gridsphere.portletcontainer.impl.descriptor.SecurityConstraint[] getSecurityConstraint() {        int size = _securityConstraintList.size();        org.gridsphere.portletcontainer.impl.descriptor.SecurityConstraint[] mArray = new org.gridsphere.portletcontainer.impl.descriptor.SecurityConstraint[size];        for (int index = 0; index < size; index++) {            mArray[index] = (org.gridsphere.portletcontainer.impl.descriptor.SecurityConstraint) _securityConstraintList.get(index);        }        return mArray;    } //-- org.gridsphere.portletcontainer.jsr.descriptor.SecurityConstraint[] getSecurityConstraint()    /**     * Method getSecurityConstraintCount     */    public int getSecurityConstraintCount() {        return _securityConstraintList.size();    } //-- int getSecurityConstraintCount()    /**     * Method getUserAttribute     *     * @param index     */    public org.gridsphere.portletcontainer.impl.descriptor.UserAttribute getUserAttribute(int index)            throws java.lang.IndexOutOfBoundsException {        //-- check bounds for index        if ((index < 0) || (index > _userAttributeList.size())) {            throw new IndexOutOfBoundsException();        }        return (org.gridsphere.portletcontainer.impl.descriptor.UserAttribute) _userAttributeList.get(index);    } //-- org.gridsphere.portletcontainer.jsr.descriptor.UserAttribute getUserAttribute(int)    /**     * Method getUserAttribute     */    public org.gridsphere.portletcontainer.impl.descriptor.UserAttribute[] getUserAttribute() {        int size = _userAttributeList.size();        org.gridsphere.portletcontainer.impl.descriptor.UserAttribute[] mArray = new org.gridsphere.portletcontainer.impl.descriptor.UserAttribute[size];        for (int index = 0; index < size; index++) {            mArray[index] = (org.gridsphere.portletcontainer.impl.descriptor.UserAttribute) _userAttributeList.get(index);        }        return mArray;    } //-- org.gridsphere.portletcontainer.jsr.descriptor.UserAttribute[] getUserAttribute()    /**     * Method getUserAttributeCount     */    public int getUserAttributeCount() {        return _userAttributeList.size();    } //-- int getUserAttributeCount()    /**     * Returns the value of field 'version'.     *     * @return the value of field 'version'.     */    public java.lang.String getVersion() {        return this._version;    } //-- java.lang.String getVersion()    /**     * Method isValid     */    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 removeCustomPortletMode     *     * @param vCustomPortletMode     */    public boolean removeCustomPortletMode(org.gridsphere.portletcontainer.impl.descriptor.CustomPortletMode vCustomPortletMode) {        boolean removed = _customPortletModeList.remove(vCustomPortletMode);        return removed;    } //-- boolean removeCustomPortletMode(org.gridsphere.portletcontainer.jsr.descriptor.CustomPortletMode)    /**     * Method removeCustomWindowState     *     * @param vCustomWindowState     */    public boolean removeCustomWindowState(org.gridsphere.portletcontainer.impl.descriptor.CustomWindowState vCustomWindowState) {        boolean removed = _customWindowStateList.remove(vCustomWindowState);        return removed;    } //-- boolean removeCustomWindowState(org.gridsphere.portletcontainer.jsr.descriptor.CustomWindowState)    /**     * Method removePortlet     *     * @param vPortlet     */    public boolean removePortlet(org.gridsphere.portletcontainer.impl.descriptor.PortletDefinition vPortlet) {        boolean removed = _portletList.remove(vPortlet);        return removed;    } //-- boolean removePortlet(org.gridsphere.portletcontainer.jsr.descriptor.Portlet)    /**     * Method removeSecurityConstraint     *     * @param vSecurityConstraint     */    public boolean removeSecurityConstraint(org.gridsphere.portletcontainer.impl.descriptor.SecurityConstraint vSecurityConstraint) {        boolean removed = _securityConstraintList.remove(vSecurityConstraint);        return removed;    } //-- boolean removeSecurityConstraint(org.gridsphere.portletcontainer.jsr.descriptor.SecurityConstraint)    /**     * Method removeUserAttribute     *     * @param vUserAttribute     */    public boolean removeUserAttribute(org.gridsphere.portletcontainer.impl.descriptor.UserAttribute vUserAttribute) {        boolean removed = _userAttributeList.remove(vUserAttribute);        return removed;    } //-- boolean removeUserAttribute(org.gridsphere.portletcontainer.jsr.descriptor.UserAttribute)    /**     * Method setCustomPortletMode     *     * @param index     * @param vCustomPortletMode     */    public void setCustomPortletMode(int index, org.gridsphere.portletcontainer.impl.descriptor.CustomPortletMode vCustomPortletMode)            throws java.lang.IndexOutOfBoundsException {        //-- check bounds for index        if ((index < 0) || (index > _customPortletModeList.size())) {            throw new IndexOutOfBoundsException();        }        _customPortletModeList.set(index, vCustomPortletMode);    } //-- void setCustomPortletMode(int, org.gridsphere.portletcontainer.jsr.descriptor.CustomPortletMode)    /**     * Method setCustomPortletMode     *     * @param customPortletModeArray     */    public void setCustomPortletMode(org.gridsphere.portletcontainer.impl.descriptor.CustomPortletMode[] customPortletModeArray) {        //-- copy array        _customPortletModeList.clear();        for (int i = 0; i < customPortletModeArray.length; i++) {            _customPortletModeList.add(customPortletModeArray[i]);        }    } //-- void setCustomPortletMode(org.gridsphere.portletcontainer.jsr.descriptor.CustomPortletMode)    /**     * Method setCustomWindowState     *     * @param index     * @param vCustomWindowState     */    public void setCustomWindowState(int index, org.gridsphere.portletcontainer.impl.descriptor.CustomWindowState vCustomWindowState)            throws java.lang.IndexOutOfBoundsException {        //-- check bounds for index        if ((index < 0) || (index > _customWindowStateList.size())) {            throw new IndexOutOfBoundsException();        }        _customWindowStateList.set(index, vCustomWindowState);    } //-- void setCustomWindowState(int, org.gridsphere.portletcontainer.jsr.descriptor.CustomWindowState)    /**     * Method setCustomWindowState     *     * @param customWindowStateArray     */    public void setCustomWindowState(org.gridsphere.portletcontainer.impl.descriptor.CustomWindowState[] customWindowStateArray) {        //-- copy array        _customWindowStateList.clear();        for (int i = 0; i < customWindowStateArray.length; i++) {            _customWindowStateList.add(customWindowStateArray[i]);        }    } //-- void setCustomWindowState(org.gridsphere.portletcontainer.jsr.descriptor.CustomWindowState)    /**     * Sets the value of field 'id'.     *     * @param id the value of field 'id'.     */    public void setId(java.lang.String id) {        this._id = id;    } //-- void setId(java.lang.String)    /**     * Method setPortlet     *     * @param index     * @param vPortlet     */    public void setPortlet(int index, org.gridsphere.portletcontainer.impl.descriptor.PortletDefinition vPortlet)            throws java.lang.IndexOutOfBoundsException {        //-- check bounds for index        if ((index < 0) || (index > _portletList.size())) {            throw new IndexOutOfBoundsException();        }        _portletList.set(index, vPortlet);    } //-- void setPortlet(int, org.gridsphere.portletcontainer.jsr.descriptor.Portlet)    /**     * Method setPortlet     *     * @param portletArray     */    public void setPortlet(org.gridsphere.portletcontainer.impl.descriptor.PortletDefinition[] portletArray) {        //-- copy array        _portletList.clear();        for (int i = 0; i < portletArray.length; i++) {            _portletList.add(portletArray[i]);        }    } //-- void setPortlet(org.gridsphere.portletcontainer.jsr.descriptor.Portlet)    /**     * Method setSecurityConstraint     *     * @param index     * @param vSecurityConstraint     */    public void setSecurityConstraint(int index, org.gridsphere.portletcontainer.impl.descriptor.SecurityConstraint vSecurityConstraint)            throws java.lang.IndexOutOfBoundsException {        //-- check bounds for index        if ((index < 0) || (index > _securityConstraintList.size())) {            throw new IndexOutOfBoundsException();        }        _securityConstraintList.set(index, vSecurityConstraint);    } //-- void setSecurityConstraint(int, org.gridsphere.portletcontainer.jsr.descriptor.SecurityConstraint)    /**     * Method setSecurityConstraint     *     * @param securityConstraintArray     */    public void setSecurityConstraint(org.gridsphere.portletcontainer.impl.descriptor.SecurityConstraint[] securityConstraintArray) {        //-- copy array        _securityConstraintList.clear();        for (int i = 0; i < securityConstraintArray.length; i++) {            _securityConstraintList.add(securityConstraintArray[i]);        }    } //-- void setSecurityConstraint(org.gridsphere.portletcontainer.jsr.descriptor.SecurityConstraint)    /**     * Method setUserAttribute     *     * @param index     * @param vUserAttribute     */    public void setUserAttribute(int index, org.gridsphere.portletcontainer.impl.descriptor.UserAttribute vUserAttribute)            throws java.lang.IndexOutOfBoundsException {        //-- check bounds for index        if ((index < 0) || (index > _userAttributeList.size())) {            throw new IndexOutOfBoundsException();        }        _userAttributeList.set(index, vUserAttribute);    } //-- void setUserAttribute(int, org.gridsphere.portletcontainer.jsr.descriptor.UserAttribute)    /**     * Method setUserAttribute     *     * @param userAttributeArray     */    public void setUserAttribute(org.gridsphere.portletcontainer.impl.descriptor.UserAttribute[] userAttributeArray) {        //-- copy array        _userAttributeList.clear();        for (int i = 0; i < userAttributeArray.length; i++) {            _userAttributeList.add(userAttributeArray[i]);        }    } //-- void setUserAttribute(org.gridsphere.portletcontainer.jsr.descriptor.UserAttribute)    /**     * Sets the value of field 'version'.     *     * @param version the value of field 'version'.     */    public void setVersion(java.lang.String version) {        this._version = version;    } //-- void setVersion(java.lang.String)    /**     * Method unmarshal     *     * @param reader     */    public static java.lang.Object unmarshal(java.io.Reader reader)            throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {        return (org.gridsphere.portletcontainer.impl.descriptor.PortletAppType) Unmarshaller.unmarshal(org.gridsphere.portletcontainer.impl.descriptor.PortletAppType.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 + -