亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? componentdefinition.java

?? 這是STRUTS1.2。6的開發包。。這是我從芝APACHE網站下下來
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * $Id: ComponentDefinition.java 54929 2004-10-16 16:38:42Z germuska $ 
 *
 * Copyright 1999-2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.struts.tiles;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.tiles.xmlDefinition.XmlDefinition;
import org.apache.struts.util.RequestUtils;

/**
 * Definition of a template / component attributes.
 * Attributes of a component can be defined with the help of this class.
 * An instance of this class can be used as a bean, and passed to 'insert' tag.
 */
public class ComponentDefinition implements Serializable {

    /**
     * Commons Logging instance. 
     */
    protected static Log log = LogFactory.getLog(ComponentDefinition.class);

    /**
     * Definition name
     */
    protected String name = null;

    /**
     * Component / template path (URL).
     */
    protected String path = null;

    /**
     * Attributes defined for the component.
     */
    protected Map attributes = null;

    /** 
     * Role associated to definition. 
     */
    protected String role = null;

    /** Associated Controller URL or classname, if defined */
    protected String controller = null;

    /** 
     * Associated Controller typename, if controllerName defined.
     * Can be CONTROLLER, ACTION or URL, or null. 
     */
    protected String controllerType = null;

    /** 
     * Controller name type. 
     */
    public static final String URL = "url";

    /** 
     * Controller name type. 
     */
    public static final String CONTROLLER = "controller";

    /** 
     * Controller name type. 
     */
    public static final String ACTION = "action";

    /**
     * Controller associated to Definition.
     * Lazy creation : only on first request
     */
    private Controller controllerInstance = null;

    /**
     * Constructor.
     */
    public ComponentDefinition() {
        attributes = new HashMap();
    }

    /**
     * Copy Constructor.
     * Create a new definition initialized with parent definition.
     * Do a shallow copy : attributes are shared between copies, but not the Map
     * containing attributes.
     */
    public ComponentDefinition(ComponentDefinition definition) {
        attributes = new HashMap(definition.getAttributes());
        this.name = definition.getName();
        this.path = definition.getPath();
        this.role = definition.getRole();
        this.controllerInstance = definition.getControllerInstance();
        this.controller = definition.getController();
        this.controllerType = definition.getControllerType();
    }

    /**
     * Constructor.
     * Create a new definition initialized from a RawDefinition.
     * Raw definitions are used to read definition from a data source (xml file, db, ...).
     * A RawDefinition mainly contains properties of type String, while Definition
     * contains more complex type (ex : Controller).
     * Do a shallow copy : attributes are shared between objects, but not the Map
     * containing attributes.
     * OO Design issues : Actually RawDefinition (XmlDefinition) extends ComponentDefinition.
     * This must not be the case. I have do it because I am lazy.
     * @throws InstantiationException if an error occur while instanciating Controller :
     * (classname can't be instanciated, Illegal access with instanciated class,
     * Error while instanciating class, classname can't be instanciated.
     */
    public ComponentDefinition(XmlDefinition definition) {

        this((ComponentDefinition) definition);
    }

    /**
     * Constructor.
     */
    public ComponentDefinition(String name, String path, Map attributes) {
        this.name = name;
        this.path = path;
        this.attributes = attributes;
    }

    /**
     * Access method for the name property.
     *
     * @return   the current value of the name property
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     *
     * @param aName the new value of the name property
     */
    public void setName(String aName) {
        name = aName;
    }

    /**
     * Access method for the path property.
     *
     * @return The current value of the path property.
     */
    public String getPage() {
        return path;
    }

    /**
     * Sets the value of the path property.
     *
     * @param page the new value of the path property
     */
    public void setPage(String page) {
        path = page;
    }

    /**
     * Access method for the path property.
     *
     * @return   the current value of the path property
     */
    public String getPath() {
        return path;
    }

    /**
     * Sets the value of the path property.
     *
     * @param aPath the new value of the path property
     */
    public void setPath(String aPath) {
        path = aPath;
    }

    /**
     * Access method for the template property.
     * Same as getPath()
     * @return   the current value of the template property
     */
    public String getTemplate() {
        return path;
    }

    /**
     * Sets the value of the template property.
     * Same as setPath()
     *
     * @param template the new value of the path property
     */
    public void setTemplate(String template) {
        path = template;
    }

    /**
     * Access method for the role property.
     * @return   the current value of the role property
     */
    public String getRole() {
        return role;
    }

    /**
     * Sets the value of the role property.
     *
     * @param role the new value of the path property
     */
    public void setRole(String role) {
        this.role = role;
    }

    /**
     * Access method for the attributes property.
     * If there is no attributes, return an empty map.
     * @return   the current value of the attributes property
     */
    public Map getAttributes() {
        return attributes;
    }

    /**
     * Returns the value of the named attribute as an Object, or null if no
     * attribute of the given name exists.
     *
     * @return   requested attribute or null if not found
     */
    public Object getAttribute(String key) {
        return attributes.get(key);
    }

    /**
     * Put a new attribute in this component
     *
     * @param key String key for attribute
     * @param value Attibute value.
     */
    public void putAttribute(String key, Object value) {
        attributes.put(key, value);
    }

    /**
     * Put an attribute in component / template definition.
     * Attribute can be used as content for tag get.
     * @param name Attribute name
     * @param content Attribute value
     */
    public void put(String name, Object content) {
        put(name, content, false, null);
    }

    /**
     * Put an attribute in template definition.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品日产卡一卡二卡麻豆| 91精品在线一区二区| 美美哒免费高清在线观看视频一区二区| 日韩欧美一卡二卡| 欧美自拍偷拍午夜视频| 日韩视频一区二区三区| 91国在线观看| 99re成人精品视频| 不卡的电影网站| 国产乱淫av一区二区三区| 玖玖九九国产精品| 国产一区二区主播在线| 国产美女在线观看一区| 美女mm1313爽爽久久久蜜臀| 亚洲丶国产丶欧美一区二区三区| 国产精品高潮呻吟久久| 日本一区二区三区dvd视频在线| 日韩精品资源二区在线| 精品日韩av一区二区| 2017欧美狠狠色| 国产亚洲精品bt天堂精选| 欧美精品一区二区三区四区| 久久精品视频网| 国产精品福利在线播放| 亚洲欧洲精品一区二区三区| 国产精品久久久久久久久久免费看 | 六月丁香婷婷久久| 国内国产精品久久| 成人精品国产福利| 在线精品观看国产| 久久亚洲影视婷婷| 亚洲午夜成aⅴ人片| 久久电影网站中文字幕| thepron国产精品| 欧美视频在线不卡| 国产网站一区二区| 亚洲成人黄色小说| 国产69精品久久久久777| 欧美午夜精品免费| 欧美激情一区二区三区不卡 | 欧美日韩视频在线观看一区二区三区 | 精品一区二区影视| 欧洲色大大久久| 日本一区二区三区dvd视频在线| 亚洲高清一区二区三区| 粉嫩aⅴ一区二区三区四区五区| 在线看国产日韩| 国产亚洲欧美一级| 毛片不卡一区二区| 欧美久久久久免费| 亚洲最色的网站| 成熟亚洲日本毛茸茸凸凹| 欧美日韩精品一区二区三区蜜桃| 久久精品在线免费观看| 蜜臀av一区二区在线免费观看| 成人教育av在线| 亚洲精品一区二区三区福利| 亚洲gay无套男同| 91美女在线观看| 亚洲图片激情小说| www.在线成人| 国产精品美女一区二区| 国产成人免费xxxxxxxx| 亚洲精品一区二区三区影院| 日本欧美一区二区在线观看| 欧美日韩大陆在线| 亚洲bt欧美bt精品777| 日本久久精品电影| 一区二区欧美国产| 欧美日韩一区视频| 久久国产精品72免费观看| 精品99一区二区三区| 国产一区在线精品| 国产女人18水真多18精品一级做 | 精品一区二区三区久久| 国产亚洲成av人在线观看导航 | 国产精品一区在线| 国产精品成人在线观看| 色综合天天综合色综合av| 一区二区不卡在线播放 | 日韩欧美亚洲国产精品字幕久久久 | 久久久久久久久久看片| 91视频免费看| 美女任你摸久久| 麻豆91小视频| 亚洲免费观看高清完整版在线观看| 在线观看av一区二区| 精品制服美女丁香| 亚洲女同一区二区| 欧美xxxx老人做受| 在线视频一区二区三| 精品一区二区综合| 一区二区三区在线视频免费 | 偷拍自拍另类欧美| 国产精品毛片高清在线完整版| 欧美色图一区二区三区| 精品一区二区三区视频| 一区二区三区高清在线| 久久免费午夜影院| 91精品国产品国语在线不卡 | 成人av网站在线| 九九热在线视频观看这里只有精品| 亚洲精品高清视频在线观看| 亚洲精品在线免费播放| 制服丝袜亚洲精品中文字幕| 一本久久a久久免费精品不卡| 精品一区二区三区av| 日日夜夜精品免费视频| 亚洲综合视频网| 亚洲国产视频在线| 亚洲高清免费视频| 亚洲图片欧美一区| 夜夜嗨av一区二区三区网页| 国产精品二三区| 亚洲天堂2014| 亚洲丝袜另类动漫二区| 中文字幕在线观看不卡视频| 欧美国产激情二区三区| 国产精品看片你懂得| 国产精品色一区二区三区| 国产欧美日韩三区| 国产精品久久777777| 亚洲国产精品国自产拍av| 国产精品欧美极品| 亚洲黄色尤物视频| 亚洲综合一区在线| 秋霞电影一区二区| 国产自产高清不卡| 成人福利视频网站| 欧美在线你懂的| 精品日韩一区二区三区免费视频| 精品裸体舞一区二区三区| 国产人成亚洲第一网站在线播放 | 337p粉嫩大胆噜噜噜噜噜91av| 亚洲国产成人自拍| 午夜精品久久久久久久久| 美腿丝袜亚洲一区| 99re这里只有精品视频首页| 欧美视频一区二区三区在线观看| 欧美岛国在线观看| 亚洲欧美激情在线| 经典一区二区三区| 精品视频在线免费| 国产精品乱人伦| 日本一区中文字幕| 一本大道av伊人久久综合| 精品国产乱码久久久久久久 | 久久蜜桃一区二区| 91免费看片在线观看| 久久精品欧美日韩精品| 婷婷综合在线观看| 日本精品一级二级| 欧美激情艳妇裸体舞| 青草av.久久免费一区| 欧美这里有精品| 亚洲欧美日韩成人高清在线一区| 久久成人av少妇免费| 色综合欧美在线视频区| 国产精品人妖ts系列视频| 狠狠v欧美v日韩v亚洲ⅴ| 91麻豆精品国产自产在线观看一区| 亚洲私人黄色宅男| 91污在线观看| 亚洲伦理在线精品| 色综合天天在线| 亚洲色欲色欲www在线观看| 成人激情av网| 中文字幕日本乱码精品影院| 国产精品影视在线| 日韩理论片一区二区| 91国在线观看| 日韩va亚洲va欧美va久久| 欧美一级片免费看| 韩国av一区二区三区四区| 久久久久9999亚洲精品| 成人av集中营| 亚洲国产成人tv| 日韩欧美国产三级电影视频| 精品一区二区在线视频| 国产精品视频一区二区三区不卡| 成人激情开心网| 亚洲大片精品永久免费| 精品欧美一区二区在线观看| 国产一区二区三区在线观看免费视频| 国产肉丝袜一区二区| 91网站最新网址| 午夜久久久久久| 久久精品视频一区二区三区| 色老汉一区二区三区| 蜜臀av一区二区在线免费观看 | 日本成人在线视频网站| 欧美国产日韩精品免费观看| 欧美日韩的一区二区| www..com久久爱| 黄色小说综合网站| 亚洲国产精品一区二区尤物区| 久久在线观看免费| 欧美精品色一区二区三区| 懂色av一区二区夜夜嗨| 日韩av电影天堂|