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

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

?? componentdefinition.java

?? struts的源代碼
?? 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久久久资源速度| www一区二区| 久久精品国产久精国产| 欧美成人r级一区二区三区| 精品一区二区三区免费| 欧美激情中文不卡| 一本久道久久综合中文字幕| 亚洲视频免费在线观看| 欧美日韩你懂得| 日本91福利区| 国产欧美一区二区精品忘忧草| 波多野结衣亚洲一区| 亚洲在线观看免费| 日韩三级免费观看| 成人网男人的天堂| 亚洲一区二区三区中文字幕在线| 日韩一级免费观看| 成人激情午夜影院| 亚洲福利电影网| 久久精品视频在线看| 一本色道久久综合亚洲91| 天堂精品中文字幕在线| 国产亚洲欧美日韩在线一区| 在线观看一区不卡| 国产一区二区三区观看| 亚洲人成精品久久久久| 日韩精品中文字幕一区| 99久久久国产精品免费蜜臀| 日韩专区在线视频| 国产精品热久久久久夜色精品三区| 欧洲av在线精品| 国产精品羞羞答答xxdd| 午夜亚洲国产au精品一区二区| 久久久久久久性| 欧美写真视频网站| 国产不卡高清在线观看视频| 香蕉久久夜色精品国产使用方法| 久久久久久久网| 91精品国产一区二区三区蜜臀 | 美女一区二区三区| 亚洲欧洲成人精品av97| 日韩午夜三级在线| 91久久奴性调教| 国产成人av电影免费在线观看| 亚洲动漫第一页| 亚洲欧洲美洲综合色网| 精品91自产拍在线观看一区| 欧美日韩另类一区| 色综合久久天天| 国产剧情在线观看一区二区| 亚洲电影在线播放| 欧美经典一区二区| 2021国产精品久久精品| 91精品黄色片免费大全| 欧美亚日韩国产aⅴ精品中极品| 成人一区二区在线观看| 国内精品伊人久久久久影院对白| 日本最新不卡在线| 亚洲国产一区在线观看| 亚洲人成网站色在线观看| 欧美国产综合色视频| 欧美精品一区二区三区一线天视频 | 一本到不卡精品视频在线观看 | av不卡一区二区三区| 国产精品18久久久久久久久久久久| 日韩电影在线观看网站| 亚洲va天堂va国产va久| 亚洲精品高清在线| 亚洲激情一二三区| 国产精品二三区| 综合久久久久久久| 亚洲美女在线国产| 一区二区三区不卡在线观看 | 亚洲人亚洲人成电影网站色| 欧美国产日韩精品免费观看| 国产午夜精品一区二区三区嫩草| 久久综合狠狠综合| ww亚洲ww在线观看国产| 亚洲国产精品国自产拍av| 国产女人aaa级久久久级| 国产色产综合产在线视频| 久久久久国产成人精品亚洲午夜| 久久久精品免费网站| 国产精品色婷婷| 亚洲视频图片小说| 亚洲一区二区不卡免费| 亚洲第一综合色| 午夜精品福利视频网站| 日本sm残虐另类| 国产黄人亚洲片| 成人免费av网站| 99视频有精品| 欧美影院午夜播放| 欧美一区二区三区系列电影| 久久免费国产精品| 亚洲欧美在线视频观看| 亚洲国产成人av网| 久久se精品一区精品二区| 国产成人免费视频一区| 在线观看亚洲精品| 精品日韩欧美在线| 中文字幕一区在线观看视频| 亚洲国产成人精品视频| 开心九九激情九九欧美日韩精美视频电影 | 欧美在线你懂得| 欧美一二三区在线观看| 日本一区二区三区在线观看| 亚洲欧美日韩国产手机在线| 日韩二区在线观看| 成人午夜av在线| 欧美精品 日韩| 亚洲国产经典视频| 日韩一区欧美二区| 成人在线一区二区三区| 欧美日韩一区小说| 久久久影院官网| 亚洲一区二区三区国产| 狠狠久久亚洲欧美| 色哟哟一区二区| 精品三级av在线| 亚洲精品视频在线| 激情综合网av| 91国产成人在线| 久久久久久夜精品精品免费| 亚洲高清在线精品| 成人性生交大片免费看中文| 欧美精品自拍偷拍动漫精品| 国产精品午夜免费| 久久国产精品第一页| 在线中文字幕一区| 日本一区二区三区电影| 人人爽香蕉精品| 日本韩国一区二区三区视频| 26uuu国产日韩综合| 亚洲成av人片一区二区三区| 成人少妇影院yyyy| 欧美成va人片在线观看| 亚洲午夜视频在线观看| 成人aa视频在线观看| 精品国产sm最大网站免费看| 亚洲国产成人av网| 色综合久久六月婷婷中文字幕| 久久精品人人做人人综合| 奇米888四色在线精品| 色狠狠综合天天综合综合| 国产欧美在线观看一区| 久久99精品久久久久婷婷| 欧美欧美欧美欧美首页| 亚洲高清中文字幕| 在线免费精品视频| 亚洲色图在线看| 成人国产视频在线观看| 国产日韩成人精品| 国产精品影视在线| 欧美精品一区二区三| 日韩精品免费视频人成| 欧美日韩午夜在线视频| 一区二区三区四区乱视频| 成人aa视频在线观看| 国产精品美女久久久久久久| 国产**成人网毛片九色| 久久美女高清视频 | 国产高清不卡一区二区| 2020国产精品| 国内精品国产三级国产a久久| 日韩三级视频中文字幕| 久久99精品视频| 久久精品在这里| 国产99久久久精品| 中文字幕中文乱码欧美一区二区| 成人av网站大全| 亚洲精品国产a久久久久久 | 国产精品亲子乱子伦xxxx裸| 国产成人欧美日韩在线电影| 国产精品视频九色porn| 成+人+亚洲+综合天堂| 综合网在线视频| 欧美曰成人黄网| 视频一区二区国产| 精品久久久三级丝袜| 国产一区二区三区综合| 中文字幕欧美区| 色噜噜狠狠色综合中国| 日韩电影在线免费观看| 久久亚洲精华国产精华液| 国产91富婆露脸刺激对白| 亚洲欧美日韩国产另类专区| 欧美综合久久久| 免费在线观看日韩欧美| 久久精品亚洲精品国产欧美kt∨ | 日韩国产欧美在线播放| 精品乱码亚洲一区二区不卡| 丁香五精品蜜臀久久久久99网站 | 欧美日韩高清一区二区不卡| 麻豆中文一区二区| 欧美国产精品一区二区| 欧美视频在线播放| 久久综合综合久久综合| 中文字幕一区二区三区视频|