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

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

?? xmlattribute.java

?? struts的源代碼
?? 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一区二区三区免费野_久草精品视频
一本到三区不卡视频| 国产精品乱人伦| 久久免费精品国产久精品久久久久| 久久久影视传媒| 亚洲免费在线视频一区 二区| 国产区在线观看成人精品| 国产麻豆精品久久一二三| 国产一区二区精品久久| 99国产精品国产精品毛片| 欧美日韩美少妇| 欧美精品一区二区蜜臀亚洲| 中文字幕亚洲精品在线观看| 亚洲国产成人porn| 懂色av一区二区三区蜜臀| 欧美中文字幕亚洲一区二区va在线| 欧美一二三在线| 最新国产の精品合集bt伙计| 老司机午夜精品| 91亚洲资源网| 日韩精品一区二区在线观看| 亚洲人成网站影音先锋播放| 久久精品国产999大香线蕉| kk眼镜猥琐国模调教系列一区二区| 欧美一区二区三区在线电影| 日韩一区欧美小说| 韩国欧美国产一区| 欧美午夜精品一区二区蜜桃| 国产性天天综合网| 日本午夜精品一区二区三区电影| 91啪九色porn原创视频在线观看| 精品精品欲导航| 91精品在线一区二区| 亚洲国产视频网站| 国产精品一区二区在线播放| 在线观看成人小视频| 久久久www成人免费毛片麻豆 | 一区二区三区在线免费播放| 久久成人综合网| 欧美日韩国产在线观看| 国产精品欧美久久久久无广告| 麻豆成人久久精品二区三区红 | 亚洲午夜一区二区| 99精品欧美一区二区蜜桃免费 | 国产成人综合在线| 欧美一区二区美女| 亚洲福利一区二区| 91浏览器打开| 国产精品美女久久久久高潮| 国内成人免费视频| 日韩一区二区三区视频在线观看| 亚洲精品乱码久久久久久久久| 国产一区二区三区美女| 欧美一级理论性理论a| 一色屋精品亚洲香蕉网站| 国产麻豆精品视频| 精品国产伦一区二区三区观看方式| 天堂蜜桃91精品| 欧美艳星brazzers| 亚洲最快最全在线视频| 91麻豆国产福利精品| 国产精品久久久久天堂| 成人综合婷婷国产精品久久| 久久亚洲精品国产精品紫薇| 久久精品国产99久久6| 欧美成人午夜电影| 91尤物视频在线观看| 久久综合久色欧美综合狠狠| 精品影视av免费| 日韩精品一区二区三区在线| 日本人妖一区二区| 日韩三级电影网址| 久久精品国产精品亚洲综合| 欧美成人三级在线| 国产一区二区三区蝌蚪| 久久精品亚洲精品国产欧美| 国产精品911| 亚洲国产精品国自产拍av| 处破女av一区二区| 国产精品日日摸夜夜摸av| 大陆成人av片| 日韩一区欧美小说| 91在线视频网址| 国产精品女主播在线观看| 高清beeg欧美| 国产精品电影院| 91国产免费观看| 午夜av区久久| 精品国产免费一区二区三区香蕉| 韩国女主播一区| 欧美激情中文不卡| 色噜噜狠狠成人网p站| 亚洲国产精品一区二区久久| 日韩三级在线免费观看| 国产成人啪免费观看软件| 国产精品久久久久久户外露出| 色综合久久久网| 视频一区视频二区在线观看| 欧美va亚洲va国产综合| 国产iv一区二区三区| 一区二区在线观看av| 91精品国产全国免费观看| 国产一区二区三区四| 国产精品久久久99| 欧美午夜在线观看| 激情欧美日韩一区二区| 国产精品久久久久久一区二区三区| 欧美亚洲综合在线| 激情丁香综合五月| 亚洲视频在线观看三级| 欧美丝袜第三区| 国内外成人在线| 伊人性伊人情综合网| 欧美一级久久久| 99vv1com这只有精品| 日韩高清不卡一区| 国产精品欧美一级免费| 777久久久精品| 国产91精品一区二区| 午夜欧美视频在线观看| 欧美韩国一区二区| 亚洲一区二区在线免费看| 欧美日韩激情在线| 国产成人精品亚洲日本在线桃色| 亚洲精品国产品国语在线app| 日韩欧美亚洲另类制服综合在线| 成人永久免费视频| 日韩电影一区二区三区四区| 久久久久久久久久久久久女国产乱| 欧洲av一区二区嗯嗯嗯啊| 韩国毛片一区二区三区| 亚洲综合色成人| 国产婷婷色一区二区三区四区| 欧美日韩中文另类| 高清免费成人av| 在线免费av一区| 国产伦精品一区二区三区视频青涩| 亚洲黄色免费电影| 国产清纯美女被跳蛋高潮一区二区久久w| 欧美伊人精品成人久久综合97 | 国产精品视频第一区| 91精品免费在线| 97久久人人超碰| 国产在线国偷精品免费看| 亚洲一区二区三区四区在线观看 | av在线播放不卡| 精品一区二区三区久久久| 亚洲一区在线播放| 中文字幕一区二区在线播放 | 国产成人免费在线| 日本最新不卡在线| 日韩美女视频19| 国产精品免费丝袜| 亚洲精品在线电影| 欧美一级免费观看| 欧美男生操女生| 欧美视频在线不卡| 色综合久久久久| 99精品欧美一区二区三区综合在线| 国产精品一区二区久久精品爱涩 | 精品国产伦一区二区三区观看体验| 欧美三级视频在线| 在线视频国产一区| 99精品视频在线观看| 国产91清纯白嫩初高中在线观看| 看电影不卡的网站| 免费观看久久久4p| 日韩国产精品久久| 性欧美疯狂xxxxbbbb| 一区二区欧美视频| 亚洲精品国产视频| 亚洲乱码日产精品bd| 国产精品久久久久7777按摩| 欧美经典三级视频一区二区三区| 国产日韩欧美制服另类| 久久久久久99精品| 国产亚洲综合性久久久影院| 久久这里只有精品视频网| 精品区一区二区| 日韩免费高清av| 日韩欧美电影一二三| 日韩午夜在线影院| 欧美大片在线观看一区二区| 日韩一二在线观看| 日韩一级片在线观看| 欧美成人国产一区二区| 久久亚洲综合色| 久久久久久97三级| 国产精品久久久久影院老司| 国产精品美女久久久久久久久久久 | 午夜精品久久久久| 首页综合国产亚洲丝袜| 日本欧美加勒比视频| 久久精工是国产品牌吗| 韩日av一区二区| 成人va在线观看| 91天堂素人约啪| 在线视频一区二区三| 欧美伦理影视网| 欧美v国产在线一区二区三区| 亚洲精品在线观|