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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? xmlattribute.java

?? structs源碼
?? JAVA
字號(hào):
/*
 * $Id: XmlAttribute.java 471754 2006-11-06 14:55:09Z husted $
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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;
    }
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩综合一区二区| 国产精品欧美久久久久一区二区| 麻豆极品一区二区三区| 国产日韩成人精品| 欧美人妖巨大在线| 成人福利视频在线| 六月丁香综合在线视频| 一区二区三区四区高清精品免费观看| 日韩精品在线一区| 色久综合一二码| 高清shemale亚洲人妖| 日本成人在线电影网| 日韩伦理av电影| www国产成人| 91精品国产综合久久久久久久久久| 国产成人av一区二区三区在线| 国产成人在线免费观看| 亚洲高清在线视频| 欧美国产综合色视频| 666欧美在线视频| 一本久久精品一区二区| 国产精品资源站在线| 免费的国产精品| 亚洲一区二区三区四区不卡| 中文无字幕一区二区三区| 日韩精品最新网址| 欧美精品在欧美一区二区少妇 | 加勒比av一区二区| 亚洲国产精品欧美一二99| 综合激情网...| 国产日韩欧美激情| 久久影院视频免费| 精品人在线二区三区| 51精品国自产在线| 欧美少妇一区二区| 日本韩国一区二区三区视频| 99精品欧美一区| 成人免费视频免费观看| 国产日韩精品一区二区浪潮av| 日韩精品一区二区三区在线| 91看片淫黄大片一级在线观看| 国产不卡免费视频| 国模娜娜一区二区三区| 久久国产麻豆精品| 久久精品国产亚洲a| 五月天久久比比资源色| 午夜精品久久久久影视| 亚洲一区二区三区视频在线播放 | 精品一区二区三区在线观看国产 | 色综合欧美在线视频区| 99精品久久免费看蜜臀剧情介绍| 国产宾馆实践打屁股91| 激情国产一区二区| 国产露脸91国语对白| 精品奇米国产一区二区三区| 欧美亚洲图片小说| 欧美丝袜第三区| 欧美色综合天天久久综合精品| 精品视频999| 欧美一区二区性放荡片| 欧美少妇xxx| 在线电影院国产精品| 日韩欧美高清一区| 国产亚洲一区二区三区四区| 国产精品免费视频网站| 国产精品灌醉下药二区| 国产精品高清亚洲| 亚洲韩国一区二区三区| 蜜臀va亚洲va欧美va天堂| 狠狠色综合日日| 国产成人av福利| 色综合久久久久| 欧美疯狂性受xxxxx喷水图片| 欧美成人精品1314www| 国产天堂亚洲国产碰碰| 亚洲欧美另类综合偷拍| 视频在线在亚洲| 国产精品资源在线| 色8久久精品久久久久久蜜| 在线91免费看| 国产欧美1区2区3区| 亚洲免费大片在线观看| 日韩成人av影视| 国产精品1024| 欧美性受xxxx| 久久精品一二三| 亚洲自拍都市欧美小说| 国产一区二区网址| 日本韩国欧美三级| 久久综合久久久久88| 亚洲色图视频免费播放| 麻豆视频一区二区| 色婷婷av一区二区三区gif| 4438成人网| 亚洲同性同志一二三专区| 日本视频一区二区三区| caoporm超碰国产精品| 91麻豆精品国产综合久久久久久 | 欧美一区二区三区免费观看视频| 国产三级三级三级精品8ⅰ区| 亚洲精品久久7777| 国产一区福利在线| 欧美三级电影精品| 中文天堂在线一区| 蜜臀av国产精品久久久久| 99综合影院在线| 欧美本精品男人aⅴ天堂| 中文字幕制服丝袜一区二区三区 | 亚洲成av人片在线| 粉嫩蜜臀av国产精品网站| 在线电影院国产精品| 亚洲天堂久久久久久久| 国内精品视频666| 欧美美女网站色| 亚洲日本免费电影| 国产精品一区二区久久不卡| 91精品国产手机| 亚洲午夜私人影院| 99国产精品久久久| 国产亚洲综合av| 久热成人在线视频| 欧美精品一二三| 亚洲一区二区三区影院| www.色精品| 久久久久国产一区二区三区四区| 无码av免费一区二区三区试看 | 中文字幕在线不卡| 国产麻豆9l精品三级站| 91精品国产一区二区三区香蕉| 亚洲综合激情网| 91小宝寻花一区二区三区| 国产精品视频观看| 成人免费福利片| 国产视频一区二区在线观看| 久久精品久久综合| 51精品秘密在线观看| 视频一区视频二区在线观看| 欧美日韩在线播放三区四区| 亚洲综合色在线| 在线日韩国产精品| 亚洲福利视频一区二区| 欧美专区亚洲专区| 亚洲福利一区二区| 欧美高清一级片在线| 婷婷国产在线综合| 3d成人动漫网站| 免费成人美女在线观看| 日韩午夜av电影| 免费欧美高清视频| 日韩欧美国产三级电影视频| 久久99国产精品久久| 久久综合色播五月| 高清不卡一二三区| 中文字幕在线一区免费| 99re热这里只有精品视频| 亚洲乱码日产精品bd| 在线日韩国产精品| 日本伊人精品一区二区三区观看方式| 8v天堂国产在线一区二区| 青青国产91久久久久久| 日韩午夜在线观看视频| 国产精品一区二区三区四区| 亚洲国产成人一区二区三区| 免费观看30秒视频久久| 欧美久久一二区| 精品一区二区三区欧美| 在线91免费看| 奇米一区二区三区av| 日韩一区二区免费在线电影| 日本一不卡视频| 久久久不卡网国产精品一区| 成人av在线资源网站| 一卡二卡欧美日韩| 欧美剧在线免费观看网站| 久久99久久久久| 国产精品动漫网站| 91 com成人网| 国产99久久久国产精品潘金 | 天堂影院一区二区| 精品欧美久久久| 99久久99精品久久久久久| 亚洲成va人在线观看| 2014亚洲片线观看视频免费| 一本久道中文字幕精品亚洲嫩| 日韩精品一二三| 国产精品美女一区二区| 欧美剧情电影在线观看完整版免费励志电影| 久久国产综合精品| 亚洲三级电影网站| 精品国产免费一区二区三区香蕉 | 91麻豆国产福利在线观看| 日韩高清在线一区| 国产校园另类小说区| 欧美日韩国产美| 国产91富婆露脸刺激对白| 婷婷国产在线综合| 1000部国产精品成人观看| 日韩欧美国产一二三区| 色8久久人人97超碰香蕉987| 国产精选一区二区三区|