亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
免费av网站大全久久| 玖玖九九国产精品| 欧美一级高清大全免费观看| 蜜桃精品视频在线观看| 91精品国产一区二区| 国产成人午夜片在线观看高清观看 | 亚洲色图欧洲色图婷婷| 3d动漫精品啪啪| 成人三级伦理片| 爽好多水快深点欧美视频| 久久久久久久久97黄色工厂| 欧美色综合影院| 国产99久久久国产精品| 亚洲一区二区在线观看视频| 久久久影视传媒| 欧美精品自拍偷拍动漫精品| 国产精品一区二区在线观看网站| 亚洲与欧洲av电影| 国产女主播在线一区二区| 欧美精品1区2区3区| 不卡电影一区二区三区| 日本视频免费一区| 一区二区三区资源| 日韩欧美自拍偷拍| 色综合久久久网| 国产成人精品免费在线| 日韩精品一卡二卡三卡四卡无卡| 亚洲欧洲性图库| 精品国产1区二区| 欧美精品在线观看播放| 懂色av一区二区在线播放| 成人黄色综合网站| 激情五月激情综合网| 午夜精品福利一区二区三区av| 日本一区二区三区dvd视频在线| 日韩一区二区电影| 欧美日韩午夜在线| 色www精品视频在线观看| 粉嫩aⅴ一区二区三区四区| 韩国一区二区三区| 青青草国产精品亚洲专区无| 亚洲国产精品综合小说图片区| 国产精品久久二区二区| 国产亚洲欧美日韩日本| 久久久久久夜精品精品免费| 精品国产一区二区精华| 欧美一区二区三区四区视频| 欧美精品日日鲁夜夜添| 欧美日韩三级在线| 欧美色综合网站| 欧美另类一区二区三区| 在线看不卡av| 色又黄又爽网站www久久| 波多野结衣中文字幕一区二区三区| 国产成人日日夜夜| 国产电影一区二区三区| 国产精品一区二区在线看| 国产乱子伦一区二区三区国色天香| 美女视频黄a大片欧美| 日本不卡一区二区| 久久国产生活片100| 久久精品国产第一区二区三区| 国内精品自线一区二区三区视频| 国产福利一区在线| 色综合久久天天综合网| 欧美一区二区三区视频| 日本一区二区视频在线观看| 一级精品视频在线观看宜春院| 天天射综合影视| 国产麻豆一精品一av一免费| 91亚洲永久精品| 91精品国产综合久久精品图片| 精品福利av导航| 亚洲视频免费看| 极品瑜伽女神91| 在线一区二区三区四区五区| 91麻豆精品国产| 综合自拍亚洲综合图不卡区| 亚洲成人av一区| 国产不卡视频在线播放| 欧美日韩综合在线免费观看| 国产日产欧美一区二区视频| 亚洲国产成人av| 国产91在线观看| 3atv在线一区二区三区| 中文字幕亚洲一区二区va在线| 日韩黄色片在线观看| hitomi一区二区三区精品| 欧美日韩国产精品成人| 中文字幕欧美激情一区| 日本人妖一区二区| 一本大道久久a久久综合婷婷| 精品奇米国产一区二区三区| 亚洲午夜日本在线观看| 成人手机电影网| 日韩精品一区二区三区中文精品| 亚洲色图19p| 国产精品一区二区久久不卡 | 色菇凉天天综合网| 精品国产乱码久久| 一区二区三区.www| 国产河南妇女毛片精品久久久| 欧美日韩免费观看一区二区三区 | 偷拍亚洲欧洲综合| 99这里都是精品| 亚洲精品在线网站| 奇米在线7777在线精品| 一本色道**综合亚洲精品蜜桃冫| 国产亚洲视频系列| 日本欧洲一区二区| 欧美情侣在线播放| 亚洲精品大片www| 国产91综合网| 亚洲精品一区在线观看| 免费成人在线播放| 欧美精选在线播放| 亚洲精品视频在线观看网站| 高清日韩电视剧大全免费| 日韩美一区二区三区| 午夜av区久久| 在线观看不卡视频| 一区二区三区四区不卡在线 | 日韩亚洲欧美高清| 偷偷要91色婷婷| 欧美性猛交xxxx乱大交退制版 | 日韩一区二区在线免费观看| 亚洲国产成人av网| 在线观看国产日韩| 亚洲在线视频一区| 91丨国产丨九色丨pron| 国产精品久久网站| 成人国产精品免费网站| 久久嫩草精品久久久久| 狠狠色狠狠色综合| 26uuu久久综合| 国产精品亚洲人在线观看| 精品国产一区二区三区忘忧草 | 国产福利不卡视频| 久久嫩草精品久久久精品| 国产在线视频一区二区三区| 欧美不卡在线视频| 国产一区在线观看麻豆| 久久久精品黄色| 成人精品视频网站| 日韩理论在线观看| 91国产丝袜在线播放| 亚洲小说欧美激情另类| 欧美精品自拍偷拍动漫精品| 七七婷婷婷婷精品国产| 精品美女一区二区| 国产精品一区二区久久精品爱涩| 欧美国产一区视频在线观看| 91丨九色丨黑人外教| 亚洲大片免费看| 日韩精品一区二区三区在线播放 | 亚洲欧美日韩国产另类专区| 色成人在线视频| 日韩综合一区二区| ww亚洲ww在线观看国产| 成人免费视频视频| 亚洲自拍另类综合| 日韩一级在线观看| 国产精品一区二区黑丝| 亚洲欧美在线aaa| 欧美伦理电影网| 精品无码三级在线观看视频| 国产欧美日韩中文久久| 欧美亚洲一区三区| 精品一区二区三区在线观看| 欧美高清一级片在线观看| 在线观看精品一区| 久久99在线观看| 亚洲免费在线视频| 日韩欧美国产综合| 99久久精品国产精品久久| 日韩高清一级片| 国产日产欧产精品推荐色| 在线观看日韩av先锋影音电影院| 韩国午夜理伦三级不卡影院| 国产精品久久久久久久久快鸭| 欧美性极品少妇| 国产呦精品一区二区三区网站 | 国产精品亚洲视频| 亚洲一卡二卡三卡四卡无卡久久| 欧美大片在线观看| 91麻豆国产精品久久| 精久久久久久久久久久| 一区二区三区四区视频精品免费| 久久这里只精品最新地址| 欧美中文字幕一二三区视频| 国产最新精品精品你懂的| 亚洲一区中文在线| 欧美国产精品一区| 日韩一区二区电影| 在线亚洲一区观看| 99久久婷婷国产| 国产精品1024| 日本伊人色综合网| 亚洲精品高清在线| 国产精品人妖ts系列视频|