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

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

?? attribute.java

?? openlogic-jdom-1.1-all-src-1.zip 可以用于操作xml文件
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
    public Attribute setName(final String name) {        final String reason  = Verifier.checkAttributeName(name);        if (reason != null) {            throw new IllegalNameException(name, "attribute", reason);        }        this.name = name;        return this;    }    /**     * This will retrieve the qualified name of the <code>Attribute</code>.     * For any XML attribute whose name is     * <code>[namespacePrefix]:[elementName]</code>,     * the qualified name of the attribute would be     * everything (both namespace prefix and     * element name). When the attribute has no     * namespace, the qualified name is simply the attribute's     * local name.     * <p>     * To obtain the local name of the attribute, the     * <code>{@link #getName()}</code> method should be used.     * <p>     * To obtain the namespace prefix for this attribute,     * the <code>{@link #getNamespacePrefix()}</code>     * method should be used.     *     * @return <code>String</code> - full name for this element.     */    public String getQualifiedName() {        // Note: Any changes here should be reflected in        // XMLOutputter.printQualifiedName()        final String prefix = namespace.getPrefix();                // no prefix found        if ((prefix == null) || ("".equals(prefix))) {            return getName();        } else {            return new StringBuffer(prefix)                .append(':')                .append(getName())                .toString();        }    }    /**     * This will retrieve the namespace prefix of the     * <code>Attribute</code>. For any XML attribute     * which appears as     * <code>[namespacePrefix]:[attributeName]</code>,     * the namespace prefix of the attribute would be     * <code>[namespacePrefix]</code>. When the attribute     * has no namespace, an empty <code>String</code> is returned.     *     * @return <code>String</code> - namespace prefix of this     *                               attribute.     */    public String getNamespacePrefix() {        return namespace.getPrefix();    }    /**     * This returns the URI mapped to this <code>Attribute</code>'s     * prefix. If no mapping is found, an empty <code>String</code> is     * returned.     *     * @return <code>String</code> - namespace URI for this <code>Attribute</code>.     */    public String getNamespaceURI() {        return namespace.getURI();    }    /**     * This will return this <code>Attribute</code>'s     * <code>{@link Namespace}</code>.     *     * @return <code>Namespace</code> - Namespace object for this <code>Attribute</code>     */    public Namespace getNamespace() {        return namespace;    }    /**     * This sets this <code>Attribute</code>'s <code>{@link Namespace}</code>.     * If the provided namespace is null, the attribute will have no namespace.     * The namespace must have a prefix.     *     * @param namespace the new namespace     * @return <code>Element</code> - the element modified.     * @throws IllegalNameException if the new namespace is the default     *         namespace. Attributes cannot be in a default namespace.     */    public Attribute setNamespace(Namespace namespace) {        if (namespace == null) {            namespace = Namespace.NO_NAMESPACE;        }        // Verify the attribute isn't trying to be in a default namespace        // Attributes can't be in a default namespace        if (namespace != Namespace.NO_NAMESPACE &&            "".equals(namespace.getPrefix())) {            throw new IllegalNameException("", "attribute namespace",                "An attribute namespace without a prefix can only be the " +                "NO_NAMESPACE namespace");        }        this.namespace = namespace;        return this;    }    /**     * This will return the actual textual value of this     * <code>Attribute</code>.  This will include all text     * within the quotation marks.     *     * @return <code>String</code> - value for this attribute.     */    public String getValue() {        return value;    }    /**     * This will set the value of the <code>Attribute</code>.     *     * @param value <code>String</code> value for the attribute.     * @return <code>Attribute</code> - this Attribute modified.     * @throws IllegalDataException if the given attribute value is     *         illegal character data (as determined by     *         {@link org.jdom.Verifier#checkCharacterData}).     */    public Attribute setValue(final String value) {        final String reason = Verifier.checkCharacterData(value);        if (reason != null) {            throw new IllegalDataException(value, "attribute", reason);        }        this.value = value;        return this;    }    /**     * This will return the actual declared type of this     * <code>Attribute</code>.     *     * @return <code>int</code> - type for this attribute.     */    public int getAttributeType() {        return type;    }    /**     * This will set the type of the <code>Attribute</code>.     *     * @param type <code>int</code> type for the attribute.     * @return <code>Attribute</code> - this Attribute modified.     * @throws IllegalDataException if the given attribute type is     *         not one of the supported types.     */    public Attribute setAttributeType(final int type) {        if ((type < UNDECLARED_TYPE) || (type > ENUMERATED_TYPE)) {            throw new IllegalDataException(String.valueOf(type),                                        "attribute", "Illegal attribute type");        }        this.type = type;        return this;    }    /**     * This returns a <code>String</code> representation of the     * <code>Attribute</code>, suitable for debugging.     *     * @return <code>String</code> - information about the     *         <code>Attribute</code>     */    public String toString() {        return new StringBuffer()            .append("[Attribute: ")            .append(getQualifiedName())            .append("=\"")            .append(value)            .append("\"")            .append("]")            .toString();    }    /**     * This tests for equality of this <code>Attribute</code> to the supplied     * <code>Object</code>.     *     * @param ob <code>Object</code> to compare to.     * @return <code>boolean</code> - whether the <code>Attribute</code> is     *         equal to the supplied <code>Object</code>.     */    public final boolean equals(final Object ob) {        return (ob == this);    }    /**     * This returns the hash code for this <code>Attribute</code>.     *     * @return <code>int</code> - hash code.     */    public final int hashCode() {        return super.hashCode();    }    /**     * This will return a clone of this <code>Attribute</code>.     *     * @return <code>Object</code> - clone of this <code>Attribute</code>.     */    public Object clone() {        Attribute attribute = null;        try {            attribute = (Attribute) super.clone();        }        catch (final CloneNotSupportedException ignore) {            // Won't happen        }        // Name, namespace, and value are references to imutable objects        // and are copied by super.clone() (aka Object.clone())        // super.clone() copies reference to set parent to null        attribute.parent = null;        return attribute;    }    /////////////////////////////////////////////////////////////////    // Convenience Methods below here    /////////////////////////////////////////////////////////////////    /**     * This gets the value of the attribute, in     * <code>int</code> form, and if no conversion     * can occur, throws a     * <code>{@link DataConversionException}</code>     *     * @return <code>int</code> value of attribute.     * @throws DataConversionException when conversion fails.     */    public int getIntValue() throws DataConversionException {        try {            return Integer.parseInt(value.trim());        } catch (final NumberFormatException e) {            throw new DataConversionException(name, "int");        }    }    /**     * This gets the value of the attribute, in     * <code>long</code> form, and if no conversion     * can occur, throws a     * <code>{@link DataConversionException}</code>     *     * @return <code>long</code> value of attribute.     * @throws DataConversionException when conversion fails.     */    public long getLongValue() throws DataConversionException {        try {            return Long.parseLong(value.trim());        } catch (final NumberFormatException e) {            throw new DataConversionException(name, "long");        }    }    /**     * This gets the value of the attribute, in     * <code>float</code> form, and if no conversion     * can occur, throws a     * <code>{@link DataConversionException}</code>     *     * @return <code>float</code> value of attribute.     * @throws DataConversionException when conversion fails.     */    public float getFloatValue() throws DataConversionException {        try {            // Avoid Float.parseFloat() to support JDK 1.1            return Float.valueOf(value.trim()).floatValue();        } catch (final NumberFormatException e) {            throw new DataConversionException(name, "float");        }    }    /**     * This gets the value of the attribute, in     * <code>double</code> form, and if no conversion     * can occur, throws a     * <code>{@link DataConversionException}</code>     *     * @return <code>double</code> value of attribute.     * @throws DataConversionException when conversion fails.     */    public double getDoubleValue() throws DataConversionException {        try {            // Avoid Double.parseDouble() to support JDK 1.1            return Double.valueOf(value.trim()).doubleValue();        } catch (final NumberFormatException e) {            // Specially handle INF and -INF that Double.valueOf doesn't do            String v = value.trim();            if ("INF".equals(v)) {                return Double.POSITIVE_INFINITY;            }            if ("-INF".equals(v)) {                return Double.NEGATIVE_INFINITY;            }            throw new DataConversionException(name, "double");        }    }    /**     * This gets the effective boolean value of the attribute, or throws a     * <code>{@link DataConversionException}</code> if a conversion can't be     * performed.  True values are: "true", "on", "1", and "yes".  False     * values are: "false", "off", "0", and "no".  Values are trimmed before     * comparison.  Values other than those listed here throw the exception.     *     * @return <code>boolean</code> value of attribute.     * @throws DataConversionException when conversion fails.     */    public boolean getBooleanValue() throws DataConversionException {        final String valueTrim = value.trim();        if (            (valueTrim.equalsIgnoreCase("true")) ||            (valueTrim.equalsIgnoreCase("on")) ||            (valueTrim.equalsIgnoreCase("1")) ||            (valueTrim.equalsIgnoreCase("yes"))) {            return true;        } else if (            (valueTrim.equalsIgnoreCase("false")) ||            (valueTrim.equalsIgnoreCase("off")) ||            (valueTrim.equalsIgnoreCase("0")) ||            (valueTrim.equalsIgnoreCase("no"))        ) {            return false;        } else {            throw new DataConversionException(name, "boolean");        }    }    // Support a custom Namespace serialization so no two namespace    // object instances may exist for the same prefix/uri pair    private void writeObject(final ObjectOutputStream out) throws IOException {        out.defaultWriteObject();        // We use writeObject() and not writeUTF() to minimize space        // This allows for writing pointers to already written strings        out.writeObject(namespace.getPrefix());        out.writeObject(namespace.getURI());    }    private void readObject(final ObjectInputStream in)        throws IOException, ClassNotFoundException {        in.defaultReadObject();        namespace = Namespace.getNamespace(            (String) in.readObject(), (String) in.readObject());    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲男同性恋视频| 日本久久一区二区| 久久久亚洲国产美女国产盗摄| 天堂一区二区在线| 在线播放中文一区| 日本aⅴ亚洲精品中文乱码| 日韩一区二区三区在线视频| 另类欧美日韩国产在线| 久久久无码精品亚洲日韩按摩| 成人黄色综合网站| 日韩久久一区二区| 欧美色涩在线第一页| 青娱乐精品视频| 国产性色一区二区| 97se狠狠狠综合亚洲狠狠| 一区二区在线看| 欧美一级久久久| 国产91精品一区二区麻豆网站| 国产精品妹子av| 欧美日韩一区二区在线观看 | 中文字幕av在线一区二区三区| 91尤物视频在线观看| 亚洲自拍偷拍九九九| 欧美成va人片在线观看| 成人性生交大片免费看中文网站| 亚洲图片另类小说| 欧美一区二区三区色| hitomi一区二区三区精品| 亚瑟在线精品视频| 久久精品一二三| 欧美体内she精视频| 国产一区二区伦理片| 亚洲精品第一国产综合野| 欧美哺乳videos| 日本精品一级二级| 国产一区二三区好的| 亚洲一区av在线| 欧美经典一区二区三区| 欧美人妇做爰xxxⅹ性高电影| 国产成人一区在线| 日本不卡高清视频| 樱花影视一区二区| 中文字幕高清一区| 日韩一区二区三区免费看 | 99久久综合精品| 婷婷六月综合亚洲| 国产精品成人网| 久久天堂av综合合色蜜桃网| 在线观看网站黄不卡| 成人综合婷婷国产精品久久免费| 免费av成人在线| 亚洲一区二三区| 亚洲私人黄色宅男| 久久久久久麻豆| 日韩欧美第一区| 欧美人xxxx| 欧美日韩一级视频| 91蝌蚪porny成人天涯| 国产精品88888| 久久99国产精品免费| 亚洲成av人在线观看| 亚洲另类在线一区| 亚洲欧洲韩国日本视频| 日本一区二区三区高清不卡| 精品久久国产老人久久综合| 911精品产国品一二三产区| 91黄色免费版| 在线观看91视频| 成人97人人超碰人人99| 国产精品乡下勾搭老头1| 久久99精品国产麻豆不卡| 奇米色一区二区三区四区| 奇米综合一区二区三区精品视频| 性欧美疯狂xxxxbbbb| 亚洲不卡av一区二区三区| 亚洲高清中文字幕| 亚洲成a人片在线观看中文| 亚洲国产精品久久不卡毛片 | 一区二区三区国产精品| 亚洲精选一二三| 亚洲毛片av在线| 亚洲国产一区二区三区| 亚洲一二三四在线| 亚洲成人av一区| 美女免费视频一区二区| 美日韩黄色大片| 国产伦精品一区二区三区免费迷| 国产精品影音先锋| 国产黄色精品视频| 成人激情小说乱人伦| 91丨九色丨尤物| 欧美午夜电影一区| 日韩欧美一级精品久久| 久久综合色鬼综合色| 国产精品私房写真福利视频| 亚洲图片激情小说| 午夜免费久久看| 精品一区二区三区免费观看| 成人毛片在线观看| 91成人国产精品| 欧美电影精品一区二区| 国产精品久久午夜夜伦鲁鲁| 一区二区三区国产精品| 日本aⅴ免费视频一区二区三区 | eeuss鲁片一区二区三区在线看| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | eeuss国产一区二区三区| 91激情在线视频| 欧美大片国产精品| 中文字幕一区在线观看| 亚洲高清在线视频| 国产大陆精品国产| 欧美性一级生活| 久久女同性恋中文字幕| 亚洲激情成人在线| 精品在线免费视频| 色综合久久精品| 日韩精品一区二| 亚洲日本韩国一区| 精品在线你懂的| 欧美亚洲一区二区在线| 久久久噜噜噜久噜久久综合| 一二三区精品福利视频| 国产精品66部| 欧美少妇性性性| 国产欧美日韩久久| 日韩av高清在线观看| 成人黄色综合网站| 欧美v亚洲v综合ⅴ国产v| 亚洲视频电影在线| 极品少妇一区二区| 欧美三级视频在线播放| 日本一二三不卡| 麻豆视频观看网址久久| 色美美综合视频| 欧美国产视频在线| 极品尤物av久久免费看| 欧美精品18+| 亚洲青青青在线视频| 国产一区不卡视频| 制服丝袜亚洲色图| 一区二区三区日韩欧美精品| 国产精品77777竹菊影视小说| 91麻豆精品国产自产在线观看一区| 日本一区二区不卡视频| 久久se这里有精品| 欧美一区欧美二区| 亚洲午夜三级在线| 色偷偷久久人人79超碰人人澡| 久久女同精品一区二区| 麻豆国产欧美一区二区三区| 欧美色网站导航| 一区二区三区在线播放| 成人av在线网| 国产精品乱人伦| 国产精品系列在线播放| 久久久一区二区三区捆绑**| 蜜臀av性久久久久av蜜臀妖精| 欧美日本精品一区二区三区| 亚洲一区影音先锋| 在线观看91视频| 亚洲一区二区欧美激情| 91在线无精精品入口| 国产精品网站导航| 丁香婷婷综合激情五月色| 欧美精品一区二区三区高清aⅴ | 91麻豆精品久久久久蜜臀| 一区二区高清免费观看影视大全 | 中文字幕乱码日本亚洲一区二区| 激情综合色综合久久综合| 日韩一区国产二区欧美三区| 日韩1区2区日韩1区2区| 日韩欧美不卡一区| 激情综合色综合久久综合| 亚洲精品在线一区二区| 国内精品免费**视频| 久久亚洲精品国产精品紫薇| 裸体一区二区三区| 久久综合色一综合色88| 国产成人午夜精品影院观看视频 | 国产精品一区二区你懂的| 久久亚区不卡日本| 成人一区二区三区在线观看| 中文幕一区二区三区久久蜜桃| 91小视频免费看| 亚洲成人福利片| 精品国产一区二区三区忘忧草 | 久久久欧美精品sm网站| 成人免费av网站| 一区二区免费视频| 日韩精品一区二| 不卡一区二区在线| 亚洲一区二区三区视频在线播放| 欧美一区二区三区视频免费播放 | 亚洲免费在线观看视频| 欧美日韩综合在线| 另类小说综合欧美亚洲| 国产精品国产三级国产普通话蜜臀 | 99这里只有精品| 亚洲一二三四在线|