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

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

?? xmlattribute.java

?? 這是STRUTS1.2。6的開發(fā)包。。這是我從芝APACHE網(wǎng)站下下來
?? JAVA
字號:
/*
 * $Id: XmlAttribute.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.xmlDefinition;

import org.apache.struts.tiles.DefinitionNameAttribute;
import org.apache.struts.tiles.DirectStringAttribute;
import org.apache.struts.tiles.PathAttribute;
import org.apache.struts.tiles.UntypedAttribute;

/**
 * A property key-value pair.  This class is used to read configuration files.
 */
public class XmlAttribute {

    /**
     * Attribute name or key.
     */
    private String name = null;

    /**
     * Attribute value.
     * Value read from description file.
     */
    private Object value = null;

    /**
     * Attribute value.
     */
    private String direct = null;

    /**
     * Attribute value.
     */
    private String valueType = null;

    /**
     * Attribute value.
     */
    private String role = null;

    /**
     * Real attribute value.
     * Real value is the value after processing of valueType.
     * I.e. if a type is defined, realValue contains wrapper for this type.
     */
    private Object realValue = null;

    /**
     * Constructor.
     */
    public XmlAttribute() {
        super();
    }

    /**
     * Constructor.
     */
    public XmlAttribute(String name, Object value) {
        this.name = name;
        this.value = value;
    }

    /**
     * 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 role the new value of the name property
     */
    public void setRole(String role) {
        this.role = role;
    }

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

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

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

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

    /**
     * Access method for the value property. Return the value or a 
     * QualifiedAttribute containing the value if 'direct' is set.
     *
     * @return The current value of the value property.
     */
    public Object getValue() {
        // Compatibility with JSP Template
        if (this.realValue == null) {
            this.realValue = this.computeRealValue();
        }

        return this.realValue;
    }

    /**
     * Sets the value of the value property.
     *
     * @param aValue the new value of the value property
     */
    public void setValue(Object aValue) {
        realValue = null;
        value = aValue;
    }

    /**
     * Sets the value of the value property.
     *
     * @param aValue the new value of the value property
     */
    public void setContent(Object aValue) {
        setValue(aValue);
    }

    /**
     * Sets the value of the value property.
     *
     * @param body the new value of the value property
     */
    public void setBody(String body) {
        if (body.length() == 0) {
            return;
        }
        
        setValue(body);
    }

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

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

    /**
     * Compute  real value from attributes setting.
     */
    protected Object computeRealValue() {
        Object realValue = value;
        // Is there a type set ?
        // First check direct attribute, and translate it to a valueType.
        // Then, evaluate valueType, and create requested typed attribute.
        if (direct != null) {
            this.valueType =
                Boolean.valueOf(direct).booleanValue() ? "string" : "path";
        }

        if (value != null && valueType != null) {
            String strValue = value.toString();

            if (valueType.equalsIgnoreCase("string")) {
                realValue = new DirectStringAttribute(strValue);

            } else if (valueType.equalsIgnoreCase("page")) {
                realValue = new PathAttribute(strValue);

            } else if (valueType.equalsIgnoreCase("template")) {
                realValue = new PathAttribute(strValue);

            } else if (valueType.equalsIgnoreCase("instance")) {
                realValue = new DefinitionNameAttribute(strValue);
            }

            // Set realValue's role value if needed
            if (role != null) {
                ((UntypedAttribute) realValue).setRole(role);
            }
        }

        // Create attribute wrapper to hold role if role is set and no type specified
        if (role != null && value != null && valueType == null) {
            realValue = new UntypedAttribute(value.toString(), role);
        }

        return realValue;
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲在线观看免费视频| 久久不见久久见免费视频7| 亚洲国产一区二区在线播放| 奇米精品一区二区三区四区 | 99视频精品在线| 欧美色手机在线观看| 亚洲国产激情av| 免费美女久久99| 欧美四级电影网| 一区精品在线播放| 国产一区二区三区最好精华液| 欧美性受xxxx黑人xyx| 亚洲欧洲精品一区二区三区| 精品亚洲欧美一区| 3d动漫精品啪啪一区二区竹菊| 1024国产精品| 成人h动漫精品一区二区| 日韩免费看网站| 五月婷婷综合在线| 91成人在线观看喷潮| 亚洲视频一区二区在线| 风间由美一区二区av101| 2023国产精品视频| 久久成人精品无人区| 欧美日韩成人综合天天影院 | 日本一区中文字幕| 欧美综合天天夜夜久久| 亚洲精品成人天堂一二三| 不卡的av电影| 成人欧美一区二区三区视频网页| 国内成人精品2018免费看| 日韩免费电影网站| 蜜臀精品一区二区三区在线观看 | 色香蕉成人二区免费| 欧美国产一区二区| 懂色av一区二区三区蜜臀| 亚洲精品一区二区三区蜜桃下载| 狠狠色丁香久久婷婷综合丁香| 日韩欧美在线1卡| 久久国产精品99久久人人澡| 日韩欧美一区二区免费| 久久99精品视频| 久久久精品2019中文字幕之3| 国产丶欧美丶日本不卡视频| 国产精品三级av在线播放| 丁香六月综合激情| 亚洲色图视频免费播放| 91黄色免费版| 蜜臀va亚洲va欧美va天堂| 日韩精品一区二区三区蜜臀| 国产乱国产乱300精品| 国产精品无遮挡| 91国偷自产一区二区三区观看 | 极品销魂美女一区二区三区| 国产婷婷色一区二区三区四区| 成人在线视频一区| 一区二区三区在线影院| 91精品国产综合久久久蜜臀粉嫩| 久草在线在线精品观看| 国产欧美久久久精品影院| 91视频观看免费| 天堂精品中文字幕在线| 日韩精品一区二区在线观看| 成人高清免费观看| 亚洲成人在线观看视频| 久久综合国产精品| 99在线精品免费| 人妖欧美一区二区| 国产欧美视频一区二区| 欧美系列在线观看| 国产伦精品一区二区三区在线观看 | 精品免费国产一区二区三区四区| 国产91精品入口| 日韩激情视频网站| 国产精品乱人伦| 69堂精品视频| 成人avav影音| 精品在线视频一区| 一区二区视频免费在线观看| 精品国产一区二区亚洲人成毛片| 91在线免费视频观看| 久久99国产精品麻豆| 亚洲成人午夜影院| 国产欧美日韩另类一区| 欧美一区二区三区视频| 99国产精品一区| 国产精品自拍av| 日韩中文字幕区一区有砖一区| 国产精品国产自产拍高清av | 免费在线视频一区| 亚洲乱码国产乱码精品精小说| 精品国内二区三区| 在线日韩av片| 国产91精品入口| 久久国产精品99久久人人澡| 亚洲精品欧美二区三区中文字幕| 亚洲精品一区二区精华| 欧美一区二区视频网站| 欧美写真视频网站| 欧美亚男人的天堂| 欧美亚洲综合色| 色吊一区二区三区| 91麻豆免费视频| 99综合电影在线视频| 国产精品综合网| 国产乱国产乱300精品| 美女在线视频一区| 日韩精品亚洲一区| 首页国产丝袜综合| 首页国产丝袜综合| 日韩成人伦理电影在线观看| 亚洲一区av在线| 亚洲成av人片| 三级久久三级久久| 丝袜诱惑制服诱惑色一区在线观看| 亚洲二区在线观看| 亚洲一区二区欧美激情| 亚洲乱码中文字幕| 色噜噜狠狠色综合欧洲selulu| 国产成人亚洲精品青草天美| 国产成人午夜视频| 国产精品538一区二区在线| 蜜桃视频第一区免费观看| 亚洲精品精品亚洲| 一区二区三区精品视频在线| 国产精品电影院| 国产精品久久久久久久久免费樱桃| 久久久亚洲精华液精华液精华液| 91麻豆精品国产91久久久使用方法 | 欧美精彩视频一区二区三区| 精品久久久久香蕉网| 日韩欧美在线不卡| 日韩午夜激情视频| 欧美三级电影一区| 欧美大片日本大片免费观看| 91精品国产91久久久久久最新毛片| 欧美视频日韩视频在线观看| 欧美午夜在线观看| 欧美视频一区二区三区在线观看| 欧美一级淫片007| 欧美成人激情免费网| 精品国偷自产国产一区| 久久婷婷综合激情| 久久亚洲精品小早川怜子| 亚洲天堂精品视频| 亚洲一区二区三区免费视频| 亚洲国产精品影院| 亚洲精品国产一区二区三区四区在线| 亚洲男人的天堂在线aⅴ视频| 中文字幕的久久| 亚洲人123区| 日韩成人一区二区| 9久草视频在线视频精品| 欧美亚洲国产怡红院影院| 欧美一级黄色大片| 欧美精品一区二区三区很污很色的 | 日本亚洲免费观看| 国产成人h网站| 色呦呦日韩精品| 欧美丰满一区二区免费视频 | 国产不卡一区视频| 91日韩在线专区| 欧美久久久久久久久久| 国产丝袜在线精品| 亚洲一区二区三区四区的| 久久精品av麻豆的观看方式| 风间由美中文字幕在线看视频国产欧美| 欧美日韩一区不卡| 久久久久久久综合狠狠综合| 樱桃视频在线观看一区| 久久国产精品免费| 色婷婷久久综合| 久久综合九色综合97婷婷女人 | 久久影视一区二区| 日韩久久一区二区| 老司机精品视频线观看86 | 国产精品五月天| 丝袜美腿亚洲一区| 在线免费观看不卡av| 精品播放一区二区| 亚洲成人资源在线| 成人av在线一区二区三区| 欧美亚洲尤物久久| 国产免费成人在线视频| 偷拍与自拍一区| 成人在线综合网站| 欧美色综合影院| 自拍偷拍亚洲欧美日韩| 精品一区二区在线播放| 色偷偷成人一区二区三区91| 久久综合色之久久综合| 亚洲成人一区在线| 91丨九色丨蝌蚪丨老版| 337p粉嫩大胆色噜噜噜噜亚洲| 亚洲一区二区三区四区五区黄 | 久久综合色一综合色88| 午夜精品一区在线观看| 欧美日韩视频第一区| 亚洲欧洲精品成人久久奇米网| 久久av资源网|