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

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

?? verifier.java

?? openlogic-jdom-1.1-all-src-1.zip 可以用于操作xml文件
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
/*--  $Id: Verifier.java,v 1.55 2007/11/10 05:28:59 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.util.*;/** * A utility class to handle well-formedness checks on names, data, and other * verification tasks for JDOM. The class is final and may not be subclassed. * * @version $Revision: 1.55 $, $Date: 2007/11/10 05:28:59 $ * @author  Brett McLaughlin * @author  Elliotte Rusty Harold * @author  Jason Hunter * @author  Bradley S. Huffman */final public class Verifier {    private static final String CVS_ID =       "@(#) $RCSfile: Verifier.java,v $ $Revision: 1.55 $ $Date: 2007/11/10 05:28:59 $ $Name: jdom_1_1 $";    /**     * Ensure instantation cannot occur.     */    private Verifier() { }    /**     * This will check the supplied name to see if it is legal for use as     * a JDOM <code>{@link Element}</code> name.     *     * @param name <code>String</code> name to check.     * @return <code>String</code> reason name is illegal, or     *         <code>null</code> if name is OK.     */    public static String checkElementName(String name) {        // Check basic XML name rules first        String reason;        if ((reason = checkXMLName(name)) != null) {            return reason;        }        // No colons allowed, since elements handle this internally        if (name.indexOf(":") != -1) {            return "Element names cannot contain colons";        }        // If we got here, everything is OK        return null;    }    /**     * This will check the supplied name to see if it is legal for use as     * a JDOM <code>{@link Attribute}</code> name.     *     * @param name <code>String</code> name to check.     * @return <code>String</code> reason name is illegal, or     *         <code>null</code> if name is OK.     */    public static String checkAttributeName(String name) {        // Check basic XML name rules first        String reason;        if ((reason = checkXMLName(name)) != null) {            return reason;        }        // No colons are allowed, since attributes handle this internally        if (name.indexOf(":") != -1) {            return "Attribute names cannot contain colons";        }        // Attribute names may not be xmlns since we do this internally too        if (name.equals("xmlns")) {            return "An Attribute name may not be \"xmlns\"; " +                   "use the Namespace class to manage namespaces";        }        // If we got here, everything is OK        return null;    }        /**     * This will check the supplied string to see if it only contains     * characters allowed by the XML 1.0 specification. The C0 controls     * (e.g. null, vertical tab, formfeed, etc.) are specifically excluded     * except for carriage return, linefeed, and the horizontal tab.     * Surrogates are also excluded.      * <p>     * This method is useful for checking element content and attribute     * values. Note that characters      * like " and &lt; are allowed in attribute values and element content.      * They will simply be escaped as &quot; or &lt;      * when the value is serialized.      * </p>     *     * @param text <code>String</code> value to check.     * @return <code>String</code> reason name is illegal, or     *         <code>null</code> if name is OK.     */    public static String checkCharacterData(String text) {        if (text == null) {            return "A null is not a legal XML value";        }        // Do check        for (int i = 0, len = text.length(); i<len; i++) {            int ch = text.charAt(i);                        // Check if high part of a surrogate pair            if (ch >= 0xD800 && ch <= 0xDBFF) {                // Check if next char is the low-surrogate                i++;                if (i < len) {                    char low = text.charAt(i);                    if (low < 0xDC00 || low > 0xDFFF) {                        return "Illegal Surrogate Pair";                    }                    // It's a good pair, calculate the true value of                    // the character to then fall thru to isXMLCharacter                    ch = 0x10000 + (ch - 0xD800) * 0x400 + (low - 0xDC00);                }                else {                    return "Surrogate Pair Truncated";                }            }            if (!isXMLCharacter(ch)) {                // Likely this character can't be easily displayed                // because it's a control so we use it'd hexadecimal                 // representation in the reason.                return ("0x" + Integer.toHexString(ch) +                        " is not a legal XML character");            }        }        // If we got here, everything is OK        return null;    }    /**     * This will check the supplied data to see if it is legal for use as     * JDOM <code>{@link CDATA}</code>.     *     * @param data <code>String</code> data to check.     * @return <code>String</code> reason data is illegal, or     *         <code>null</code> is name is OK.     */    public static String checkCDATASection(String data) {        String reason = null;        if ((reason = checkCharacterData(data)) != null) {            return reason;        }        if (data.indexOf("]]>") != -1) {            return "CDATA cannot internally contain a CDATA ending " +                   "delimiter (]]>)";        }        // If we got here, everything is OK        return null;    }    /**     * This will check the supplied name to see if it is legal for use as     * a JDOM <code>{@link Namespace}</code> prefix.     *     * @param prefix <code>String</code> prefix to check.     * @return <code>String</code> reason name is illegal, or     *         <code>null</code> if name is OK.     */    public static String checkNamespacePrefix(String prefix) {        // Manually do rules, since URIs can be null or empty        if ((prefix == null) || (prefix.equals(""))) {            return null;        }        // Cannot start with a number        char first = prefix.charAt(0);        if (isXMLDigit(first)) {            return "Namespace prefixes cannot begin with a number";        }        // Cannot start with a $        if (first == '$') {            return "Namespace prefixes cannot begin with a dollar sign ($)";        }        // Cannot start with a -        if (first == '-') {            return "Namespace prefixes cannot begin with a hyphen (-)";        }        // Cannot start with a .        if (first == '.') {            return "Namespace prefixes cannot begin with a period (.)";        }        // Cannot start with "xml" in any character case        if (prefix.toLowerCase().startsWith("xml")) {            return "Namespace prefixes cannot begin with " +                   "\"xml\" in any combination of case";        }        // Ensure legal content        for (int i=0, len = prefix.length(); i<len; i++) {            char c = prefix.charAt(i);            if (!isXMLNameCharacter(c)) {                return "Namespace prefixes cannot contain the character \"" +                        c + "\"";            }        }        // No colons allowed        if (prefix.indexOf(":") != -1) {            return "Namespace prefixes cannot contain colons";        }        // If we got here, everything is OK        return null;    }    /**     * This will check the supplied name to see if it is legal for use as     * a JDOM <code>{@link Namespace}</code> URI.     *     * @param uri <code>String</code> URI to check.     * @return <code>String</code> reason name is illegal, or     *         <code>null</code> if name is OK.     */    public static String checkNamespaceURI(String uri) {        // Manually do rules, since URIs can be null or empty        if ((uri == null) || (uri.equals(""))) {            return null;        }        // Cannot start with a number        char first = uri.charAt(0);        if (Character.isDigit(first)) {            return "Namespace URIs cannot begin with a number";        }        // Cannot start with a $        if (first == '$') {            return "Namespace URIs cannot begin with a dollar sign ($)";        }        // Cannot start with a -        if (first == '-') {            return "Namespace URIs cannot begin with a hyphen (-)";        }        // If we got here, everything is OK        return null;    }    /**     * Check if two namespaces collide.     *     * @param namespace <code>Namespace</code> to check.     * @param other <code>Namespace</code> to check against.     * @return <code>String</code> reason for collision, or     *         <code>null</code> if no collision.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91影院在线观看| 日韩一区二区免费在线电影| 日日摸夜夜添夜夜添精品视频| 久久亚区不卡日本| 欧美在线小视频| 福利电影一区二区三区| 日本强好片久久久久久aaa| 18涩涩午夜精品.www| 精品久久国产字幕高潮| 欧美亚洲国产一区二区三区va| 国产乱国产乱300精品| 天天影视涩香欲综合网 | 中文字幕一区二区三区在线播放| 欧美高清www午色夜在线视频| 成人性生交大合| 国模冰冰炮一区二区| 亚洲电影第三页| 亚洲欧洲色图综合| 久久久www免费人成精品| 欧美电影精品一区二区| 欧美日韩国产综合视频在线观看 | 日韩一卡二卡三卡国产欧美| 91麻豆123| 一本大道综合伊人精品热热| 成人激情动漫在线观看| 国产精品一区不卡| 国产一区亚洲一区| 免费美女久久99| 人人超碰91尤物精品国产| 天天综合天天综合色| 五月天丁香久久| 天天综合色天天综合色h| 亚洲一区二区五区| 亚洲精品视频免费看| 亚洲男人都懂的| 亚洲黄色片在线观看| 亚洲精品福利视频网站| 亚洲美女免费视频| 一区二区在线观看免费| 一片黄亚洲嫩模| 亚洲电影视频在线| 天堂影院一区二区| 日本麻豆一区二区三区视频| 日韩中文字幕麻豆| 蜜臀va亚洲va欧美va天堂| 麻豆精品新av中文字幕| 国产资源在线一区| 国产乱淫av一区二区三区| 国产麻豆精品一区二区| 成人免费看视频| av电影天堂一区二区在线| 99re热视频精品| 欧洲国内综合视频| 91精品国产一区二区三区蜜臀| 欧美一区二区性放荡片| 日韩精品在线一区二区| 国产日韩欧美激情| 中文字幕在线观看一区二区| 一区二区三区精品视频| 免费成人av资源网| 国产成人自拍在线| 91黄色免费网站| 7777精品伊人久久久大香线蕉经典版下载 | 国产精品日韩精品欧美在线| 亚洲图片你懂的| 午夜一区二区三区视频| 美女视频黄免费的久久 | 国产**成人网毛片九色| 欧洲av在线精品| 亚洲精品在线网站| 亚洲天堂久久久久久久| 日韩中文字幕91| 成人午夜激情片| 欧美日本高清视频在线观看| 精品国产麻豆免费人成网站| 国产精品护士白丝一区av| 亚洲成人自拍一区| 国精产品一区一区三区mba桃花 | 欧美久久一二三四区| 日韩欧美的一区| 亚洲欧洲av一区二区三区久久| 亚洲成a人片在线观看中文| 精品亚洲免费视频| 色婷婷av一区二区三区软件 | 国产精品美女久久福利网站| 亚洲午夜激情网页| 国产高清不卡一区| 欧美人动与zoxxxx乱| 国产欧美日韩亚州综合 | 在线视频你懂得一区二区三区| 在线观看免费成人| 国产日产欧产精品推荐色| 亚洲在线观看免费视频| 国产成人av电影在线播放| 欧美高清激情brazzers| 亚洲免费视频成人| 韩国三级中文字幕hd久久精品| 在线观看国产日韩| 日本一区二区成人| 青草av.久久免费一区| 91久久久免费一区二区| 欧美经典一区二区三区| 日韩高清一区在线| 色狠狠色噜噜噜综合网| 国产精品私人自拍| 激情六月婷婷久久| 91精品久久久久久久91蜜桃| 亚洲综合一区在线| 成人精品小蝌蚪| 久久久www免费人成精品| 蜜桃av一区二区三区电影| 欧美主播一区二区三区美女| 国产精品久久久久久亚洲毛片| 精品无人码麻豆乱码1区2区| 777精品伊人久久久久大香线蕉| 一区二区三区加勒比av| 99久久国产综合精品女不卡| 欧美一区二区三区在线观看| 亚洲精品久久久蜜桃| www.亚洲在线| 国产精品素人视频| 国产高清不卡一区二区| 久久久久久久久99精品| 精品午夜久久福利影院| 日韩精品专区在线影院重磅| 免费成人av资源网| 欧美一区二区三区啪啪| 日日欢夜夜爽一区| 欧美群妇大交群中文字幕| 亚洲成人免费在线| 欧美人动与zoxxxx乱| 午夜成人免费视频| 欧美日韩另类一区| 亚洲成av人片在www色猫咪| 欧美视频精品在线观看| 性感美女极品91精品| 91麻豆精品国产91久久久久久| 天天综合日日夜夜精品| 欧美一区中文字幕| 蜜臀久久99精品久久久久宅男 | www激情久久| 国产综合色在线视频区| 国产清纯美女被跳蛋高潮一区二区久久w | 一区二区三区在线视频免费观看 | 欧美日韩免费视频| 亚洲成人一区在线| 51精品国自产在线| 蜜桃传媒麻豆第一区在线观看| 精品国产一区二区亚洲人成毛片 | 欧美精品第一页| 日本欧美肥老太交大片| 欧美成人福利视频| 国产精品小仙女| 日韩理论片在线| 欧美三级电影一区| 美女免费视频一区| 国产日韩欧美综合在线| 91色九色蝌蚪| 五月开心婷婷久久| 久久久精品tv| 日本道精品一区二区三区| 人妖欧美一区二区| 欧美国产一区二区| 在线观看日产精品| 久久国产婷婷国产香蕉| 中文一区一区三区高中清不卡| 91网站视频在线观看| 偷窥国产亚洲免费视频| 久久久综合精品| 这里只有精品免费| 精久久久久久久久久久| 国产精品三级av在线播放| 91看片淫黄大片一级在线观看| 亚洲成人综合在线| 久久精品夜夜夜夜久久| 色噜噜狠狠成人中文综合| 蜜桃av一区二区三区| 中文字幕欧美一区| 欧美一级高清片| 成人在线视频首页| 天天综合网天天综合色| 中文字幕欧美日韩一区| 欧美精品 国产精品| 国产精品99久久久久久久女警 | 国产一区不卡视频| 18成人在线观看| 2023国产精品视频| 欧美亚洲尤物久久| 成人免费看的视频| 久久er精品视频| 亚洲成a人在线观看| 国产精品成人一区二区三区夜夜夜| 欧美另类变人与禽xxxxx| www.综合网.com| 国产一区二区三区四区五区美女| 亚洲小少妇裸体bbw| 国产精品丝袜黑色高跟| 精品日韩一区二区| 8x福利精品第一导航| 色婷婷综合久色|