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

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

?? attribute.java

?? openlogic-jdom-1.1-all-src-1.zip 可以用于操作xml文件
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*-- $Id: Attribute.java,v 1.56 2007/11/10 05:28:58 jhunter Exp $ Copyright (C) 2000-2007 Jason Hunter & Brett McLaughlin. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright    notice, this list of conditions, and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright    notice, this list of conditions, and the disclaimer that follows    these conditions in the documentation and/or other materials    provided with the distribution. 3. The name "JDOM" must not be used to endorse or promote products    derived from this software without prior written permission.  For    written permission, please contact <request_AT_jdom_DOT_org>. 4. Products derived from this software may not be called "JDOM", nor    may "JDOM" appear in their name, without prior written permission    from the JDOM Project Management <request_AT_jdom_DOT_org>. In addition, we request (but do not require) that you include in the end-user documentation provided with the redistribution and/or in the software itself an acknowledgement equivalent to the following:     "This product includes software developed by the      JDOM Project (http://www.jdom.org/)." Alternatively, the acknowledgment may be graphical using the logos available at http://www.jdom.org/images/logos. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This software consists of voluntary contributions made by many individuals on behalf of the JDOM Project and was originally created by Jason Hunter <jhunter_AT_jdom_DOT_org> and Brett McLaughlin <brett_AT_jdom_DOT_org>.  For more information on the JDOM Project, please see <http://www.jdom.org/>. */package org.jdom;import java.io.*;/** * An XML attribute. Methods allow the user to obtain the value of the attribute * as well as namespace and type information. * * @version $Revision: 1.56 $, $Date: 2007/11/10 05:28:58 $ * @author  Brett McLaughlin * @author  Jason Hunter * @author  Elliotte Rusty Harold * @author  Wesley Biggs * @author  Victor Toni */public class Attribute implements Serializable, Cloneable {    private static final String CVS_ID =      "@(#) $RCSfile: Attribute.java,v $ $Revision: 1.56 $ $Date: 2007/11/10 05:28:58 $ $Name: jdom_1_1 $";    /**     * Attribute type: the attribute has not been declared or type     * is unknown.     *     * @see #getAttributeType     */    public final static int UNDECLARED_TYPE = 0;    /**     * Attribute type: the attribute value is a string.     *     * @see #getAttributeType     */    public final static int CDATA_TYPE = 1;    /**     * Attribute type: the attribute value is a unique identifier.     *     * @see #getAttributeType     */    public final static int ID_TYPE = 2;    /**     * Attribute type: the attribute value is a reference to a     * unique identifier.     *     * @see #getAttributeType     */    public final static int IDREF_TYPE = 3;    /**     * Attribute type: the attribute value is a list of references to     * unique identifiers.     *     * @see #getAttributeType     */    public final static int IDREFS_TYPE = 4;    /**     * Attribute type: the attribute value is the name of an entity.     *     * @see #getAttributeType     */    public final static int ENTITY_TYPE = 5;    /**     * <p>     * Attribute type: the attribute value is a list of entity names.     * </p>     *     * @see #getAttributeType     */    public final static int ENTITIES_TYPE = 6;    /**     * Attribute type: the attribute value is a name token.     * <p>     * According to SAX 2.0 specification, attributes of enumerated     * types should be reported as "NMTOKEN" by SAX parsers.  But the     * major parsers (Xerces and Crimson) provide specific values     * that permit to recognize them as {@link #ENUMERATED_TYPE}.     *     * @see #getAttributeType     */    public final static int NMTOKEN_TYPE = 7;    /**     * Attribute type: the attribute value is a list of name tokens.     *     * @see #getAttributeType     */    public final static int NMTOKENS_TYPE = 8;    /**     * Attribute type: the attribute value is the name of a notation.     *     * @see #getAttributeType     */    public final static int NOTATION_TYPE = 9;    /**     * Attribute type: the attribute value is a name token from an     * enumeration.     *     * @see #getAttributeType     */    public final static int ENUMERATED_TYPE = 10;    // Keep the old constant names for one beta cycle to help migration    /** The local name of the <code>Attribute</code> */    protected String name;    /** The <code>{@link Namespace}</code> of the <code>Attribute</code> */    protected transient Namespace namespace;    /** The value of the <code>Attribute</code> */    protected String value;    /** The type of the <code>Attribute</code> */    protected int type = UNDECLARED_TYPE;    /** Parent element, or null if none */    protected Element parent;    /**     * Default, no-args constructor for implementations to use if needed.     */    protected Attribute() {}    /**     * This will create a new <code>Attribute</code> with the     * specified (local) name and value, and in the provided     * <code>{@link Namespace}</code>.     *     * @param name <code>String</code> name of <code>Attribute</code>.     * @param value <code>String</code> value for new attribute.     * @param namespace <code>Namespace</code> namespace for new attribute.     * @throws IllegalNameException if the given name is illegal as an     *         attribute name or if if the new namespace is the default     *         namespace. Attributes cannot be in a default namespace.     * @throws IllegalDataException if the given attribute value is     *         illegal character data (as determined by     *         {@link org.jdom.Verifier#checkCharacterData}).     */    public Attribute(final String name, final String value, final Namespace namespace) {        this(name, value, UNDECLARED_TYPE, namespace);    }    /**     * This will create a new <code>Attribute</code> with the     * specified (local) name, value, and type, and in the provided     * <code>{@link Namespace}</code>.     *     * @param name <code>String</code> name of <code>Attribute</code>.     * @param value <code>String</code> value for new attribute.     * @param type <code>int</code> type for new attribute.     * @param namespace <code>Namespace</code> namespace for new attribute.     * @throws IllegalNameException if the given name is illegal as an     *         attribute name or if if the new namespace is the default     *         namespace. Attributes cannot be in a default namespace.     * @throws IllegalDataException if the given attribute value is     *         illegal character data (as determined by     *         {@link org.jdom.Verifier#checkCharacterData}) or     *         if the given attribute type is not one of the     *         supported types.     */    public Attribute(final String name, final String value, final int type, final Namespace namespace) {        setName(name);        setValue(value);        setAttributeType(type);        setNamespace(namespace);    }    /**     * This will create a new <code>Attribute</code> with the     * specified (local) name and value, and does not place     * the attribute in a <code>{@link Namespace}</code>.     * <p>     * <b>Note</b>: This actually explicitly puts the     * <code>Attribute</code> in the "empty" <code>Namespace</code>     * (<code>{@link Namespace#NO_NAMESPACE}</code>).     *     * @param name <code>String</code> name of <code>Attribute</code>.     * @param value <code>String</code> value for new attribute.     * @throws IllegalNameException if the given name is illegal as an     *         attribute name.     * @throws IllegalDataException if the given attribute value is     *         illegal character data (as determined by     *         {@link org.jdom.Verifier#checkCharacterData}).     */    public Attribute(final String name, final String value) {        this(name, value, UNDECLARED_TYPE, Namespace.NO_NAMESPACE);    }    /**     * This will create a new <code>Attribute</code> with the     * specified (local) name, value and type, and does not place     * the attribute in a <code>{@link Namespace}</code>.     * <p>     * <b>Note</b>: This actually explicitly puts the     * <code>Attribute</code> in the "empty" <code>Namespace</code>     * (<code>{@link Namespace#NO_NAMESPACE}</code>).     *     * @param name <code>String</code> name of <code>Attribute</code>.     * @param value <code>String</code> value for new attribute.     * @param type <code>int</code> type for new attribute.     * @throws IllegalNameException if the given name is illegal as an     *         attribute name.     * @throws IllegalDataException if the given attribute value is     *         illegal character data (as determined by     *         {@link org.jdom.Verifier#checkCharacterData}) or     *         if the given attribute type is not one of the     *         supported types.     */    public Attribute(final String name, final String value, final int type) {        this(name, value, type, Namespace.NO_NAMESPACE);    }    /**     * This will return the parent of this <code>Attribute</code>.     * If there is no parent, then this returns <code>null</code>.     *     * @return parent of this <code>Attribute</code>     */    public Element getParent() {        return parent;    }    /**     * This retrieves the owning <code>{@link Document}</code> for     * this Attribute, or null if not a currently a member of a     * <code>{@link Document}</code>.     *     * @return <code>Document</code> owning this Attribute, or null.     */    public Document getDocument() {        final Element parentElement = getParent();        if (parentElement != null) {	        return parentElement.getDocument();        }        return null;    }    /**     * This will set the parent of this <code>Attribute</code>.     *     * @param parent <code>Element</code> to be new parent.     * @return this <code>Attribute</code> modified.     */    protected Attribute setParent(final Element parent) {        this.parent = parent;        return this;    }    /**     * This detaches the <code>Attribute</code> from its parent, or does     * nothing if the <code>Attribute</code> has no parent.     *     * @return <code>Attribute</code> - this <code>Attribute</code> modified.     */    public Attribute detach() {        final Element parentElement = getParent();        if (parentElement != null) {            parentElement.removeAttribute(getName(),getNamespace());        }        return this;    }    /**     * This will retrieve the local name of the     * <code>Attribute</code>. For any XML attribute     * which appears as     * <code>[namespacePrefix]:[attributeName]</code>,     * the local name of the attribute would be     * <code>[attributeName]</code>. When the attribute     * has no namespace, the local name is simply the attribute     * name.     * <p>     * To obtain the namespace prefix for this     * attribute, the     * <code>{@link #getNamespacePrefix()}</code>     * method should be used.     *     * @return <code>String</code> - name of this attribute,     *                               without any namespace prefix.     */    public String getName() {        return name;    }    /**     * This sets the local name of the <code>Attribute</code>.     *     * @param name the new local name to set     * @return <code>Attribute</code> - the attribute modified.     * @throws IllegalNameException if the given name is illegal as an     *         attribute name.     */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美视频日韩视频| 久久这里只有精品首页| 国产一区二区精品久久99| 亚洲欧美另类久久久精品| 精品国产不卡一区二区三区| 色综合久久久久| 成人午夜激情视频| 国产在线精品一区二区三区不卡| 亚洲已满18点击进入久久| 国产精品青草久久| 精品国产污污免费网站入口| 欧美日韩一级二级| 91年精品国产| 成人免费福利片| 国产福利一区二区三区在线视频| 奇米影视在线99精品| 亚洲国产视频一区二区| 中文成人av在线| 久久久久久久久99精品| 欧美成人精品1314www| 欧美精品在线视频| 欧美视频中文一区二区三区在线观看| av资源站一区| 91在线视频网址| 成人精品在线视频观看| 国产精品一区在线| 国产毛片精品视频| 国产另类ts人妖一区二区| 国内精品写真在线观看| 久久不见久久见中文字幕免费| 天天做天天摸天天爽国产一区| 亚洲与欧洲av电影| 亚洲成人av电影| 偷拍日韩校园综合在线| 日日夜夜一区二区| 日本sm残虐另类| 久久精品国产亚洲a| 精品一区二区在线免费观看| 激情综合亚洲精品| 国产精品99久久久久久久女警| 激情小说亚洲一区| 国模娜娜一区二区三区| 国产91丝袜在线播放| 成人久久18免费网站麻豆| av资源站一区| 91久久香蕉国产日韩欧美9色| 99精品黄色片免费大全| 91看片淫黄大片一级在线观看| hitomi一区二区三区精品| 91热门视频在线观看| 欧美日韩精品一区视频| 欧美一卡2卡3卡4卡| 精品国产一区二区三区四区四| 精品国产乱码久久久久久蜜臀| 久久久国产午夜精品| 中文字幕日韩一区| 一区二区三区精品视频| 奇米777欧美一区二区| 国产一区二区三区最好精华液| 国产成人免费视频一区| 色偷偷一区二区三区| 欧美美女直播网站| 欧美精品一区二区三| 欧美韩国日本不卡| 一区二区三区欧美日| 五月综合激情网| 国产乱理伦片在线观看夜一区| 99re6这里只有精品视频在线观看| 日本高清成人免费播放| 日韩精品中文字幕一区二区三区| 国产清纯白嫩初高生在线观看91| **欧美大码日韩| 日韩高清不卡一区二区三区| 国产精品小仙女| 欧美日本国产一区| 久久久另类综合| 亚洲一区二区av电影| 九九热在线视频观看这里只有精品| 成人国产精品免费观看动漫| 欧美日韩高清一区二区不卡| 精品国产乱码久久久久久久| 亚洲激情综合网| 国产精品一区专区| 欧美日韩亚洲综合在线 | 成人精品小蝌蚪| 欧美美女bb生活片| 国产精品国产自产拍高清av王其 | 欧美v日韩v国产v| 综合色天天鬼久久鬼色| 青青草国产精品亚洲专区无| 成人黄色电影在线| 日韩视频免费观看高清完整版| 中文字幕一区二区三| 久久精品国产精品亚洲综合| 欧洲精品中文字幕| 国产精品网曝门| 麻豆精品精品国产自在97香蕉| 91久久奴性调教| 欧美韩国日本一区| 精品中文av资源站在线观看| 精品视频在线免费观看| 欧美激情一区二区三区全黄| 久久国产人妖系列| 欧美日本免费一区二区三区| 亚洲蜜臀av乱码久久精品| 国产成人亚洲综合a∨婷婷| 国产午夜精品一区二区三区视频| 亚洲国产精品麻豆| 91麻豆福利精品推荐| 中文字幕av在线一区二区三区| 免费看黄色91| 欧美日韩高清一区二区三区| 一区二区三区在线播放| 99久久国产免费看| 中文字幕不卡的av| 国产综合色视频| 精品久久久久久综合日本欧美| 午夜不卡av在线| 亚洲图片另类小说| 粉嫩一区二区三区在线看| 久久亚洲精品小早川怜子| 日本va欧美va欧美va精品| 制服丝袜日韩国产| 午夜av一区二区三区| 欧美日韩激情一区| 日韩专区在线视频| 欧美日韩国产美| 亚洲123区在线观看| 欧美日韩视频专区在线播放| 亚洲专区一二三| 欧美亚洲图片小说| 亚洲午夜久久久久久久久久久| 一本色道久久综合精品竹菊| 亚洲色图在线视频| 91丝袜呻吟高潮美腿白嫩在线观看| 欧美激情一区二区三区不卡| 高潮精品一区videoshd| 国产精品色在线观看| 99久久精品免费| 综合网在线视频| 在线观看日韩毛片| 亚洲高清视频中文字幕| 欧美精品精品一区| 久久精品久久综合| 国产午夜精品久久久久久免费视| 国产精品一卡二卡在线观看| 国产精品欧美综合在线| 91女厕偷拍女厕偷拍高清| 亚洲国产综合在线| 3d动漫精品啪啪1区2区免费| 久久精品久久久精品美女| 久久久久久久综合色一本| 不卡在线观看av| 亚洲国产aⅴ天堂久久| 5858s免费视频成人| 精品写真视频在线观看| 欧美国产亚洲另类动漫| 91农村精品一区二区在线| 亚洲国产精品一区二区久久恐怖片| 制服丝袜在线91| 国精产品一区一区三区mba视频| 中文字幕第一区| 在线观看亚洲一区| 欧美aaaaaa午夜精品| 国产精品色哟哟网站| 欧美日韩三级视频| 精品午夜久久福利影院| 国产精品久久午夜| 欧美日本在线看| 国产馆精品极品| 亚洲自拍偷拍欧美| 久久男人中文字幕资源站| 91美女在线看| 老汉av免费一区二区三区| 国产精品国产自产拍高清av王其 | 国产精品99久久久久| 亚洲精品视频一区二区| 日韩一二在线观看| kk眼镜猥琐国模调教系列一区二区| 亚洲va在线va天堂| 国产亚洲精品bt天堂精选| 在线观看一区二区视频| 国产一二精品视频| 亚洲一级二级在线| 久久久不卡影院| 欧美男生操女生| 99久久精品一区二区| 蜜桃av一区二区| 一级日本不卡的影视| 久久久777精品电影网影网 | 91日韩精品一区| 国产在线精品不卡| 亚洲影院在线观看| 欧美国产日韩精品免费观看| 欧美肥妇free| 一本色道亚洲精品aⅴ| 极品瑜伽女神91| 日韩福利视频网| 亚洲精品视频免费观看| 国产欧美精品一区二区色综合朱莉|