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

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

?? iddefrefmapperbase.java

?? 對xml很好的java處理引擎,編譯中綁定xml
?? JAVA
字號:
/*Copyright (c) 2005, 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.util.HashMap;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>Abstract base custom marshaller/unmarshaller for an object that may have * multiple references. The first time an object is seen when marshalling the * full XML representation is generated; successive uses of the same object then * use XML references to the object ID. To use this class you need to create a * subclass with a constructor using the same signature as the one provided * (calling the base class constructor from your subclass constructor) and * implement the abstract {@link #getIdValue(java.lang.Object)} method in your subclass. You can * also override the provided {@link #getAttributeName()} method to change the * name used for the IDREF attribute, which must not match the name of an * attribute used in the normal marshalled form of the object. The name used for * this marshaller/unmarshaller in the mapping definition must match the name * used for the base object type being handled.</p> *  * @author Dennis M. Sosnoski * @version 1.0 */public abstract class IdDefRefMapperBase    implements IMarshaller, IUnmarshaller, IAliasable {        private String m_uri;    private int m_index;    private String m_name;        /**     * Aliased constructor taking a name definition for reference elements. The     * subclass version will be used by JiBX to define the element name to be     * used with 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 reference element     */    public IdDefRefMapperBase(String uri, int index, String name) {        m_uri = uri;        m_index = index;        m_name = name;    }        /**     * Get the ID value from object being marshalled.     *     * @return ID value     */    protected abstract String getIdValue(Object item);        /**     * Method which can be overridden to supply a different name for the ID     * reference attribute. The attribute name used by default is just "ref".     */    protected String getAttributeName() {        return "ref";    }        /* (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) {            return;        } else if (!(ictx instanceof MarshallingContext)) {            throw new JiBXException("Invalid context type for marshaller");        } else {                        // check if ID already defined            MarshallingContext ctx = (MarshallingContext)ictx;            HashMap map = ctx.getIdMap();            String id = getIdValue(obj);            Object value = map.get(id);            if (value == null) {                if (obj instanceof IMarshallable) {                                        // new id, write full representation and add to map                    map.put(id, obj);                    ((IMarshallable)obj).marshal(ctx);                                    } else {                    throw new JiBXException("Object of type " +                        obj.getClass().getName() + " is not marshallable");                }            } else if (value.equals(obj)) {                                // generate reference to previously-defined item                ctx.startTagAttributes(m_index, m_name);                ctx.attribute(0, getAttributeName(), id);                ctx.closeStartEmpty();                            } else {                throw new JiBXException("Duplicate definition for ID " + id);            }        }    }    /* (non-Javadoc)     * @see org.jibx.runtime.IUnmarshaller#isPresent(org.jibx.runtime.IUnmarshallingContext)     */    public boolean isPresent(IUnmarshallingContext ictx) throws JiBXException {        return ictx.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 (!ctx.isAt(m_uri, m_name)) {            return null;        } else {                        // check for reference to existing ID            String id = ctx.attributeText(null, getAttributeName(), null);            if (id == null) {                                // no ID value supplied, unmarshal full definition                obj = ctx.unmarshalElement();                            } else {                                // find object based on ID                obj = ctx.findID(id, 0);                ctx.parsePastEndTag(m_uri, m_name);                if (obj == null) {                    ctx.throwStartTagException("Reference to undefined ID " +                        id);                }            }        }        return obj;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜精品一区二区三区四区| 亚洲欧美另类久久久精品| 久久久亚洲精品一区二区三区| 国产精品免费视频观看| 午夜在线成人av| 99麻豆久久久国产精品免费| 日韩一级大片在线观看| 亚洲国产日韩a在线播放| 国产成人自拍网| 日韩欧美在线123| 亚洲一区二区精品3399| 成人av电影在线| 国产偷国产偷精品高清尤物| 久久国产精品无码网站| 欧美精品在线观看播放| 亚洲免费观看高清完整版在线 | 日韩视频免费观看高清完整版| 中文字幕不卡在线| 国产综合色视频| 欧美大片顶级少妇| 美女一区二区三区在线观看| 欧美亚洲综合色| 亚洲精品成人精品456| 成人免费高清在线| 国产日韩精品一区二区三区| 国产美女主播视频一区| 欧美v日韩v国产v| 日本aⅴ免费视频一区二区三区| 欧美亚洲一区二区在线| 亚洲综合免费观看高清完整版在线 | 91麻豆精品91久久久久同性| 亚洲国产日产av| 欧美综合欧美视频| 亚洲自拍欧美精品| 在线亚洲高清视频| 一区二区三区免费网站| 色狠狠色狠狠综合| 亚洲一区二区欧美日韩| 欧美卡1卡2卡| 久久av中文字幕片| 国产午夜精品一区二区| 国产成人综合自拍| 亚洲视频中文字幕| 日本韩国一区二区| 亚洲妇熟xx妇色黄| 欧美成人女星排名| 国产伦精一区二区三区| 国产精品美女久久久久久久网站| av在线不卡网| 亚洲成人av在线电影| 制服丝袜日韩国产| 国产一区二区日韩精品| 国产精品少妇自拍| 色婷婷香蕉在线一区二区| 水蜜桃久久夜色精品一区的特点 | 日本精品视频一区二区三区| 亚洲妇女屁股眼交7| 精品久久五月天| 99热99精品| 蜜臀久久久久久久| 国产视频在线观看一区二区三区 | 调教+趴+乳夹+国产+精品| 日韩一区二区高清| 成人夜色视频网站在线观看| 亚洲综合一二三区| 久久久久久久久蜜桃| 972aa.com艺术欧美| 日韩精品一二三区| 中文字幕二三区不卡| 制服丝袜激情欧洲亚洲| 成人性生交大片免费看在线播放| 亚洲精品你懂的| 欧美大白屁股肥臀xxxxxx| 成人激情免费视频| 蜜臀av一区二区| 亚洲男帅同性gay1069| 日韩精品中文字幕一区二区三区| va亚洲va日韩不卡在线观看| 99久久久久免费精品国产| 亚洲成人av电影| 欧美高清在线一区| 国产一区二区三区不卡在线观看| 一区二区三区在线观看国产| ww亚洲ww在线观看国产| 欧美日韩在线三区| 99久久国产免费看| 狠狠色丁香婷综合久久| 日韩av中文字幕一区二区| 中文字幕在线一区| 日韩欧美激情一区| 欧美日韩一区二区三区四区 | 欧美日韩一区二区不卡| 国产高清久久久| 久久精品二区亚洲w码| 一区二区成人在线| 国产精品理伦片| 国产欧美一区二区精品秋霞影院 | 欧美乱妇15p| 91搞黄在线观看| 色综合久久久久久久久| 丁香六月综合激情| 狠狠色2019综合网| 狂野欧美性猛交blacked| 香蕉影视欧美成人| 亚洲电影激情视频网站| 亚洲综合成人网| 亚洲激情图片qvod| 亚洲日本一区二区| 亚洲欧美视频在线观看视频| 中文字幕 久热精品 视频在线| 久久奇米777| xnxx国产精品| 久久日韩精品一区二区五区| 91精品欧美福利在线观看| 欧美一区欧美二区| 91.xcao| 日韩欧美三级在线| 91麻豆精品国产无毒不卡在线观看 | 天天影视色香欲综合网老头| 一区二区三区精品视频在线| 亚洲一级在线观看| 日韩成人一级大片| 免费日本视频一区| 激情都市一区二区| 国产99一区视频免费| 成人丝袜18视频在线观看| av成人免费在线观看| 色94色欧美sute亚洲线路一ni| 色婷婷久久综合| 欧美电影一区二区三区| 日韩欧美在线123| 国产午夜精品一区二区| 亚洲乱码中文字幕| 亚洲午夜激情网站| 久久电影网电视剧免费观看| 国产一区二区三区黄视频 | 亚洲电影激情视频网站| 美女免费视频一区| 国产不卡在线播放| 在线日韩一区二区| 精品日韩一区二区| 最近日韩中文字幕| 五月天中文字幕一区二区| 麻豆精品视频在线| 国产精品资源在线看| 91一区二区三区在线观看| 欧美日韩久久一区| 久久午夜老司机| 亚洲一二三级电影| 国产一区二区三区久久久| 一本一道波多野结衣一区二区| 国产喷白浆一区二区三区| 国产精品黄色在线观看| 26uuu久久天堂性欧美| 久久久久久久综合狠狠综合| 亚洲三级久久久| 全国精品久久少妇| 成人av动漫在线| 精品久久久久久久久久久院品网| 国产精品污网站| 麻豆成人av在线| 91丨porny丨国产入口| 日韩女优毛片在线| 一区二区三区四区不卡在线| 老司机免费视频一区二区三区| 91色|porny| 国产日韩欧美在线一区| 五月婷婷激情综合| 色综合久久99| 国产欧美日韩综合| 久久99久久99小草精品免视看| 91亚洲精华国产精华精华液| 欧美成人video| 亚洲图片欧美一区| 99精品视频一区| 久久综合久久综合亚洲| 水野朝阳av一区二区三区| 91欧美激情一区二区三区成人| 久久久久久久免费视频了| 日韩主播视频在线| 欧美性猛交xxxx乱大交退制版| 中文字幕免费观看一区| 国内精品写真在线观看| 91精品国产综合久久香蕉的特点| 国产精品动漫网站| 国产成人精品一区二区三区四区| 日韩精品一区二区三区视频| 视频一区二区中文字幕| 在线免费观看日韩欧美| 亚洲欧美激情视频在线观看一区二区三区 | 国产精华液一区二区三区| 日韩欧美精品在线| 日本色综合中文字幕| 欧美群妇大交群中文字幕| 亚洲一区视频在线| 91豆麻精品91久久久久久| 亚洲人成在线播放网站岛国| 成人黄页在线观看| 国产精品毛片久久久久久 | 久久精品国产99国产精品|