@Override public final void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { Loader loader = selectLoader(state,ea); state.setLoader(loader); loader.startElement(state,ea); }
@Override public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { final Loader loader = selectLoader(state, ea); state.setLoader(loader); loader.startElement(state, ea); }
private void _startElement(TagName tagName) throws SAXException { // remember the current element if we are interested in it. // because the inner peer might not be found while we consume // the enter element token, we need to keep this information // longer than this callback. That's why we assign it to a field. if( assoc!=null ) currentElement = scanner.getCurrentElement(); Loader h = current.loader; current.push(); // tell the parent about the new child h.childElement(current,tagName); assert current.loader!=null; // the childElement should register this // and tell the new child that you are activated current.loader.startElement(current,tagName); }
@Override public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { // install the default value, but don't override the one given by the parent loader if(state.getElementDefaultValue() == null) state.setElementDefaultValue(defaultValue); state.setLoader(l); l.startElement(state,ea); } }
public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { JaxBeanInfo beanInfo = parseXsiType(state,ea,defaultBeanInfo); if(beanInfo==null) beanInfo = defaultBeanInfo; Loader loader = beanInfo.getLoader(null,false); state.setLoader(loader); loader.startElement(state,ea); }
@Override public final void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { state.setLoader(core); state.setIntercepter(this); // TODO: make sure there aren't too many duplicate of this code // create the object to unmarshal Object child; UnmarshallingContext context = state.getContext(); // let's see if we can reuse the existing peer object child = context.getOuterPeer(); if(child!=null && jaxbType!=child.getClass()) child = null; // unexpected type. if(child!=null) reset((JAXBElement)child,context); if(child==null) child = context.createInstance(ElementBeanInfoImpl.this); fireBeforeUnmarshal(ElementBeanInfoImpl.this, child, state); context.recordOuterPeer(child); UnmarshallingContext.State p = state.getPrev(); p.setBackup(p.getTarget()); p.setTarget(child); core.startElement(state,ea); }
@Override public final void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { Loader loader = selectLoader(state,ea); state.setLoader(loader); loader.startElement(state,ea); }
@Override public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { final Loader loader = selectLoader(state, ea); state.setLoader(loader); loader.startElement(state, ea); }
private void _startElement(TagName tagName) throws SAXException { // remember the current element if we are interested in it. // because the inner peer might not be found while we consume // the enter element token, we need to keep this information // longer than this callback. That's why we assign it to a field. if( assoc!=null ) currentElement = scanner.getCurrentElement(); Loader h = current.loader; current.push(); // tell the parent about the new child h.childElement(current,tagName); assert current.loader!=null; // the childElement should register this // and tell the new child that you are activated current.loader.startElement(current,tagName); }
@Override public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { // install the default value, but don't override the one given by the parent loader if(state.getElementDefaultValue() == null) state.setElementDefaultValue(defaultValue); state.setLoader(l); l.startElement(state,ea); } }
public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { JaxBeanInfo beanInfo = parseXsiType(state,ea,defaultBeanInfo); if(beanInfo==null) beanInfo = defaultBeanInfo; Loader loader = beanInfo.getLoader(null,false); state.setLoader(loader); loader.startElement(state,ea); }
@Override public final void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { state.setLoader(core); state.setIntercepter(this); // TODO: make sure there aren't too many duplicate of this code // create the object to unmarshal Object child; UnmarshallingContext context = state.getContext(); // let's see if we can reuse the existing peer object child = context.getOuterPeer(); if(child!=null && jaxbType!=child.getClass()) child = null; // unexpected type. if(child!=null) reset((JAXBElement)child,context); if(child==null) child = context.createInstance(ElementBeanInfoImpl.this); fireBeforeUnmarshal(ElementBeanInfoImpl.this, child, state); context.recordOuterPeer(child); UnmarshallingContext.State p = state.getPrev(); p.setBackup(p.getTarget()); p.setTarget(child); core.startElement(state,ea); }
@Override public final void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { Loader loader = selectLoader(state,ea); state.setLoader(loader); loader.startElement(state,ea); }
@Override public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { final Loader loader = selectLoader(state, ea); state.setLoader(loader); loader.startElement(state, ea); }
@Override public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { final Loader loader = selectLoader(state, ea); state.setLoader(loader); loader.startElement(state, ea); }
@Override public final void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { Loader loader = selectLoader(state,ea); state.setLoader(loader); loader.startElement(state,ea); }
public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { JaxBeanInfo beanInfo = parseXsiType(state,ea,defaultBeanInfo); if(beanInfo==null) beanInfo = defaultBeanInfo; Loader loader = beanInfo.getLoader(null,false); state.setLoader(loader); loader.startElement(state,ea); }
@Override public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { // install the default value, but don't override the one given by the parent loader if(state.getElementDefaultValue() == null) state.setElementDefaultValue(defaultValue); state.setLoader(l); l.startElement(state,ea); } }
public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { JaxBeanInfo beanInfo = parseXsiType(state,ea,defaultBeanInfo); if(beanInfo==null) beanInfo = defaultBeanInfo; Loader loader = beanInfo.getLoader(null,false); state.setLoader(loader); loader.startElement(state,ea); }
@Override public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { // install the default value, but don't override the one given by the parent loader if(state.getElementDefaultValue() == null) state.setElementDefaultValue(defaultValue); state.setLoader(l); l.startElement(state,ea); } }