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

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

?? verifier.java

?? openlogic-jdom-1.1-all-src-1.zip 可以用于操作xml文件
?? JAVA
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
/*--  $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.

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧洲成人精品av97| 中文字幕 久热精品 视频在线| 蜜乳av一区二区| 国产精品萝li| 欧美一级一区二区| 99久久99久久精品国产片果冻| 日韩电影免费在线看| 中文字幕亚洲一区二区av在线 | 久久99最新地址| 亚洲欧美日本韩国| 久久久精品综合| 制服丝袜亚洲播放| 色婷婷激情综合| 成人一级片在线观看| 美国毛片一区二区| 亚洲成av人片| 亚洲欧美国产三级| 中文字幕第一区| 欧美精品一区二区三区视频| 欧美精品三级在线观看| 91在线观看下载| 成人精品电影在线观看| 国产一区二区日韩精品| 免费成人你懂的| 亚洲成人一区在线| 亚洲精品精品亚洲| 综合久久久久久| 国产精品三级电影| 国产婷婷色一区二区三区| 欧美v亚洲v综合ⅴ国产v| 欧美巨大另类极品videosbest | 91精品在线麻豆| 欧美午夜影院一区| 欧美在线三级电影| 色综合久久久久综合| 成人精品鲁一区一区二区| 国产大陆亚洲精品国产| 国产在线观看免费一区| 精品在线观看视频| 久色婷婷小香蕉久久| 免费在线观看精品| 另类小说视频一区二区| 久久国产精品第一页| 六月丁香综合在线视频| 老司机免费视频一区二区三区| 男女男精品视频| 久久电影网电视剧免费观看| 久久精品国产免费| 韩国精品久久久| 国产精品亚洲视频| 国产91精品精华液一区二区三区| 国产成人av资源| 欧美亚洲一区二区在线| 欧美体内she精视频| 精品视频全国免费看| 欧美男同性恋视频网站| 91精品国产麻豆| 日韩欧美国产精品一区| 久久亚洲精精品中文字幕早川悠里| 久久久久9999亚洲精品| 国产精品久久久久久久久晋中 | 国产精品盗摄一区二区三区| 中文字幕一区二| 亚洲男人天堂av| 午夜精品免费在线观看| 精品一区二区综合| 成人精品视频.| 欧美三级日韩三级| 日韩午夜激情视频| 国产嫩草影院久久久久| 中文字幕在线免费不卡| 亚洲午夜精品17c| 久久99精品网久久| 99久久婷婷国产| 91精品国产综合久久久久久久| 欧美xxxxxxxxx| 国产精品高潮呻吟久久| 婷婷久久综合九色国产成人| 激情伊人五月天久久综合| 97精品久久久午夜一区二区三区 | 中文字幕第一区| 亚洲成人黄色小说| 国产乱码精品一区二区三区忘忧草 | 韩国欧美国产一区| 97se狠狠狠综合亚洲狠狠| 欧美日韩国产精选| 欧美国产日韩亚洲一区| 一区二区三区高清在线| 国内偷窥港台综合视频在线播放| 99国产精品久久久久久久久久久| 91精品在线观看入口| 国产精品网站在线播放| 日韩中文字幕麻豆| 成人av午夜影院| 日韩免费视频一区二区| 一区二区三区影院| 国产一区二区调教| 欧美日韩一卡二卡| 国产精品久久影院| 精品一区免费av| 欧美日韩一区国产| 中文字幕日韩一区| 国内精品久久久久影院一蜜桃| 在线精品视频免费观看| 国产日韩欧美一区二区三区乱码| 五月天中文字幕一区二区| 成人av电影在线| 久久综合999| 日韩av电影天堂| 日本精品免费观看高清观看| 国产三级欧美三级日产三级99| 日韩中文字幕av电影| 91丨九色丨黑人外教| 国产调教视频一区| 老司机精品视频导航| 欧美群妇大交群中文字幕| 亚洲欧洲日韩av| 国产精品一区二区黑丝| 日韩精品一区二区三区在线观看 | 国产精品77777竹菊影视小说| 欧美一区二视频| 亚洲国产日韩一区二区| 色综合中文字幕| 日本一区二区三区国色天香| 国产麻豆精品久久一二三| 日韩午夜在线观看视频| 日本不卡123| 欧美日韩一本到| 亚洲成人一区二区在线观看| 色综合中文字幕国产| 国产午夜精品福利| 国产美女视频一区| 2017欧美狠狠色| 精品中文字幕一区二区| 欧美电影精品一区二区| 美腿丝袜一区二区三区| 日韩欧美国产麻豆| 久久国产精品露脸对白| 欧美成人三级电影在线| 毛片av一区二区三区| 日韩美女视频在线| 精品一区二区三区香蕉蜜桃| 日韩精品资源二区在线| 看电影不卡的网站| 精品99一区二区| 国产福利91精品| 国产精品人人做人人爽人人添 | 这里只有精品视频在线观看| 午夜亚洲国产au精品一区二区| 欧美私人免费视频| 亚洲一二三专区| 欧美一区二区在线免费播放| 免费国产亚洲视频| 久久久久久免费网| 成人午夜看片网址| 亚洲精品视频在线| 欧美日韩国产123区| 蜜桃视频在线观看一区二区| 久久久影院官网| 99久久久无码国产精品| 亚洲香肠在线观看| 欧美一级艳片视频免费观看| 国产真实乱子伦精品视频| 中文字幕免费不卡| 色国产综合视频| 手机精品视频在线观看| 欧美不卡一区二区三区| 国产精品一区二区黑丝| 亚洲欧美偷拍卡通变态| 717成人午夜免费福利电影| 国内不卡的二区三区中文字幕 | 日韩精品电影一区亚洲| 久久综合精品国产一区二区三区| 成人性生交大片免费看中文 | 国产福利精品一区| 一区二区在线观看免费视频播放| 欧美日本在线视频| 国产传媒欧美日韩成人| 一区二区三区 在线观看视频| 日韩三级视频在线看| 福利电影一区二区三区| 亚洲午夜久久久| 国产偷国产偷精品高清尤物| 欧美性大战久久久久久久| 国产做a爰片久久毛片 | 加勒比av一区二区| 一区二区三区视频在线观看| 日韩精品一区二区三区蜜臀| 99久久国产综合色|国产精品| 日韩精品一卡二卡三卡四卡无卡| 国产夜色精品一区二区av| 欧美三级电影在线观看| 国产黄人亚洲片| 天堂午夜影视日韩欧美一区二区| 中文一区二区在线观看| 91精品国产一区二区三区香蕉| 99久久国产免费看| 国产在线一区观看| 天天综合色天天综合色h| 国产精品久久久久婷婷二区次|