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

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

?? typedarraymapper.java

?? 對(duì)xml很好的java處理引擎,編譯中綁定xml
?? JAVA
字號(hào):
/*Copyright (c) 2003-2004, Dennis M. SosnoskiAll rights reserved.Redistribution and use in source and binary forms, with or without modification,are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this   list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice,   this list of conditions and the following disclaimer in the documentation   and/or other materials provided with the distribution. * Neither the name of JiBX nor the names of its contributors may be used   to endorse or promote products derived from this software without specific   prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ANDANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FORANY 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 ONANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THISSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/package org.jibx.extras;import java.lang.reflect.Array;import java.util.ArrayList;import org.jibx.runtime.IAliasable;import org.jibx.runtime.IMarshallable;import org.jibx.runtime.IMarshaller;import org.jibx.runtime.IMarshallingContext;import org.jibx.runtime.IUnmarshaller;import org.jibx.runtime.IUnmarshallingContext;import org.jibx.runtime.JiBXException;import org.jibx.runtime.impl.MarshallingContext;import org.jibx.runtime.impl.UnmarshallingContext;/** * <p>Custom marshaller/unmarshaller for reference arrays of a particular type. * This handles mapping arrays typed as <code>object-type[]</code>, where the * <i>object-type</i> is any class name (not a primitive type). All items in the * array must be of a mapped type. If a name is specified by the mapping * definition that name is used as a wrapper around the elements representing * the items in the array; otherwise, the elements are just handled inline.</p> *  * @author Dennis M. Sosnoski * @version 1.0 */public class TypedArrayMapper    implements IMarshaller, IUnmarshaller, IAliasable {        private static final Object[] DUMMY_ARRAY = {};        private String m_uri;    private int m_index;    private String m_name;    private Object[] m_baseArray;    private ArrayList m_holder;        /**     * Aliased constructor. This takes a name definition for the top-level     * wrapper element. It'll be used by JiBX when a name is supplied by the     * mapping which references this custom marshaller/unmarshaller.     *     * @param uri namespace URI for the top-level element     * @param index namespace index corresponding to the defined URI within the     * marshalling context definitions     * @param name local name for the top-level element     * @param type class name for type of items in array     */        public TypedArrayMapper(String uri, int index, String name, String type) {                // save the simple values        m_uri = uri;        m_index = index;        m_name = name;                // strip trailing array bracket sets from type (at least one)        int dimen = 0;        while (type.endsWith("[]")) {            type = type.substring(0, type.length()-2);            dimen++;        }                // now get the class used for array items        try {                        // first try loading item class from context classloader            Class clas = null;            ClassLoader loader =                Thread.currentThread().getContextClassLoader();            if (loader != null) {                try {                    clas = loader.loadClass(type);                } catch (ClassNotFoundException e) { /* fall through */ }            }            if (clas == null) {                                // if not found, try the loader that loaded this class                clas = UnmarshallingContext.class.getClassLoader().                    loadClass(type);            }                        // create a dummy base array of specified type            int[] dimens = new int[dimen];            m_baseArray = (Object[])Array.newInstance(clas, dimens);                    } catch (ClassNotFoundException e) {            throw new IllegalArgumentException                ("Error loading array item class " + type + ": " +                    e.getMessage());        }    }        /**     * Class only constructor. This just sets up for an XML representation with     * no element wrapping the actual item structures. It'll be used by JiBX     * when no name information is supplied by the mapping which references this     * custom marshaller/unmarshaller.     *      * @param type class name for type of items in array     */        public TypedArrayMapper(String type) {        this(null, 0, null, type);    }        /* (non-Javadoc)     * @see org.jibx.runtime.IMarshaller#isExtension(int)     */        public boolean isExtension(int index) {        return false;    }    /* (non-Javadoc)     * @see org.jibx.runtime.IMarshaller#marshal(java.lang.Object,     *  org.jibx.runtime.IMarshallingContext)     */        public void marshal(Object obj, IMarshallingContext ictx)        throws JiBXException {                // make sure the parameters are as expected        if (obj == null) {            if (m_name == null) {                throw new JiBXException                    ("null array not allowed without wrapper");            }        } else if (!(ictx instanceof MarshallingContext)) {            throw new JiBXException("Marshalling context not of expected type");        } else {                        // verify object as a handled array type            Class clas = obj.getClass();            if (!clas.isArray()) {                throw new JiBXException("Invalid object type for marshaller");            } else {                            // start by generating start tag for container                MarshallingContext ctx = (MarshallingContext)ictx;                Object[] array = (Object[])obj;                if (m_name != null) {                    ctx.startTag(m_index, m_name);                }                        // loop through all entries in array                for (int i = 0; i < array.length; i++) {                    Object item = array[i];                    if (item == null) {                        throw new JiBXException("Null value at offset " + i +                            " not supported");                    } else if (item instanceof IMarshallable) {                        ((IMarshallable)item).marshal(ctx);                    } else {                        throw new JiBXException("Array item of type " +                            item.getClass().getName() + " does not implement " +                            "org.jibx.runtime.IMarshallable");                    }                }                        // finish with end tag for container element                if (m_name != null) {                    ctx.endTag(m_index, m_name);                }                            }        }    }    /* (non-Javadoc)     * @see org.jibx.runtime.IUnmarshaller#isPresent(org.jibx.runtime.IUnmarshallingContext)     */         public boolean isPresent(IUnmarshallingContext ctx) throws JiBXException {        return ctx.isAt(m_uri, m_name);    }    /* (non-Javadoc)     * @see org.jibx.runtime.IUnmarshaller#unmarshal(java.lang.Object,     *  org.jibx.runtime.IUnmarshallingContext)     */         public Object unmarshal(Object obj, IUnmarshallingContext ictx)        throws JiBXException {                // make sure we're at the appropriate start tag        UnmarshallingContext ctx = (UnmarshallingContext)ictx;        if (m_name != null) {            if (ctx.isAt(m_uri, m_name)) {                ctx.parsePastStartTag(m_uri, m_name);            } else {                return null;            }        }                // create new array if needed        if (m_holder == null) {            m_holder = new ArrayList();        }                // process all items present in document        while (!ctx.isEnd()) {            Object item = ctx.unmarshalElement();            m_holder.add(item);        }                // discard close tag if used        if (m_name != null) {            ctx.parsePastEndTag(m_uri, m_name);        }                // return array containing all items        Object[] result = m_holder.toArray(m_baseArray);        m_holder.clear();        return result;    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美久久婷婷综合色| 国产在线一区观看| 日韩一区二区三区观看| 国产999精品久久久久久| 亚洲男人的天堂av| 日韩欧美高清一区| jlzzjlzz欧美大全| 日韩国产精品久久| 亚洲人成网站在线| 久久这里只有精品首页| 91福利精品第一导航| 不卡高清视频专区| 免费精品视频在线| 亚洲欧美国产77777| 久久精品男人天堂av| 欧美日韩日日骚| 成人毛片老司机大片| 精品一区二区影视| 一区二区三区四区精品在线视频| 91在线porny国产在线看| 国产在线视频精品一区| 亚洲一区二区三区小说| 91蝌蚪porny九色| 99视频精品全部免费在线| 九色|91porny| 日韩欧美中文字幕一区| 精品视频一区二区不卡| 丁香六月综合激情| 另类调教123区| 五月天婷婷综合| 中文字幕一区二区在线播放| 久久综合色一综合色88| 欧美高清激情brazzers| 色老综合老女人久久久| 国产精品一区二区久久不卡| 麻豆精品一区二区综合av| 亚洲午夜精品一区二区三区他趣| 国产精品三级av| 久久婷婷综合激情| 欧美在线影院一区二区| 99久久国产综合色|国产精品| 国产美女主播视频一区| 亚洲成人av一区| 日日夜夜免费精品视频| 亚洲成av人片一区二区梦乃| 国产精品麻豆网站| 国产夜色精品一区二区av| 精品久久久久久久久久久院品网| 精品sm在线观看| 日韩欧美你懂的| 日韩一卡二卡三卡四卡| 精品国免费一区二区三区| 欧美成人vps| 精品国产一区二区三区av性色| 欧美大片顶级少妇| 欧美电影精品一区二区| 99国产精品久久久久| 欧美日韩在线精品一区二区三区激情| 一本大道av一区二区在线播放| 日韩电影一区二区三区四区| 日韩高清一区二区| 欧美aaaaaa午夜精品| 亚洲一区二区三区中文字幕| 亚洲不卡av一区二区三区| 五月激情综合网| 亚洲免费三区一区二区| 一区二区三区中文在线观看| 一区二区三区**美女毛片| 日本美女一区二区三区视频| 经典三级视频一区| 懂色av一区二区在线播放| 色妞www精品视频| 欧美日韩国产美女| 欧美在线观看视频一区二区| 日韩美女一区二区三区| 国产日韩精品久久久| 7777女厕盗摄久久久| 久久久久久免费毛片精品| 国产精品国产精品国产专区不蜜| 久久久久久毛片| 综合色天天鬼久久鬼色| 亚洲六月丁香色婷婷综合久久 | 欧美国产日韩a欧美在线观看| 久久色成人在线| 国产精品美女视频| 日日夜夜精品视频免费| 国产精品99久久久久久久vr| 色婷婷综合久久久中文一区二区| 欧美群妇大交群中文字幕| 日韩欧美一二三| 亚洲精品国产第一综合99久久| 日韩av中文在线观看| 国产福利一区二区三区| 91麻豆精品国产91久久久久久久久 | 亚洲综合区在线| 乱中年女人伦av一区二区| 国产精品一区二区男女羞羞无遮挡 | 久久―日本道色综合久久| 1024成人网| 亚洲人成精品久久久久| 久久精品二区亚洲w码| 韩国av一区二区三区| 成人精品小蝌蚪| 欧美美女黄视频| 中文字幕av在线一区二区三区| 一区二区欧美在线观看| 日韩不卡一区二区三区| 成人免费高清视频| 色婷婷久久久久swag精品| 精品国产一区二区三区四区四| 亚洲人成伊人成综合网小说| 国产福利一区在线观看| 欧美婷婷六月丁香综合色| 国产亚洲精久久久久久| 久久国产精品一区二区| 欧洲精品一区二区| 国产精品色在线| 国产传媒一区在线| 日韩欧美一卡二卡| 成人免费在线视频观看| 国产一级精品在线| 欧美一区二区观看视频| 亚洲超碰97人人做人人爱| 99免费精品在线观看| 久久综合色一综合色88| 免费的成人av| 欧美日韩国产一级片| 18涩涩午夜精品.www| 成人久久久精品乱码一区二区三区| 7799精品视频| 最新日韩av在线| 国产综合一区二区| 欧美一级黄色录像| 亚洲综合一区在线| 欧美特级限制片免费在线观看| 中文字幕在线观看不卡| 日本不卡在线视频| 欧美一级黄色大片| 爽爽淫人综合网网站| 国产一区欧美一区| 国产日韩欧美激情| 国产盗摄女厕一区二区三区| 国产日韩成人精品| 国内精品久久久久影院色| 欧美成人一区二区三区在线观看| 久久se这里有精品| 精品久久久久久亚洲综合网| 亚洲一区中文在线| 欧美优质美女网站| 亚洲va天堂va国产va久| 欧美久久久影院| 日韩国产精品久久| 欧美视频在线播放| 亚洲狠狠爱一区二区三区| 欧美在线免费视屏| 亚洲综合一区在线| 欧美电影一区二区| 亚洲午夜国产一区99re久久| 欧美亚洲高清一区| 日韩二区在线观看| 在线看不卡av| 视频一区二区欧美| 欧美成人aa大片| 久久精品国内一区二区三区| 精品国产99国产精品| 免费观看91视频大全| 久久久久成人黄色影片| 粗大黑人巨茎大战欧美成人| 夜夜嗨av一区二区三区网页| 欧美三级在线看| 免费成人小视频| 1000部国产精品成人观看| 在线观看视频欧美| 韩国理伦片一区二区三区在线播放| 亚洲国产成人一区二区三区| 91丨九色丨蝌蚪丨老版| 蜜臀av性久久久久av蜜臀妖精 | 久久精品久久99精品久久| 久久久久久免费毛片精品| 成人a区在线观看| 亚洲国产成人porn| 日韩欧美国产一区在线观看| 91一区二区在线| 男人操女人的视频在线观看欧美| 欧美性猛片xxxx免费看久爱| 蜜臀久久99精品久久久久久9| 久久婷婷色综合| 欧美日韩一级片在线观看| 国产一区激情在线| 日本一区免费视频| 欧美日韩国产色站一区二区三区| 国内精品伊人久久久久av一坑| 综合欧美一区二区三区| 欧美一区二区视频在线观看2020 | 久久女同精品一区二区| 国产精品一级在线| 亚洲一卡二卡三卡四卡| 久久人人爽爽爽人久久久| 欧美日韩免费观看一区三区| 国产精品一卡二卡在线观看|