public void childAsRoot(Object obj) throws JAXBException, IOException, SAXException, XMLStreamException { final JaxBeanInfo beanInfo = grammar.getBeanInfo(obj, true); // since the same object will be reported to childAsRoot or // childAsXsiType, don't make it a part of the collision check. // but we do need to push it so that getXMIMEContentType will work. cycleDetectionStack.pushNocheck(obj); final boolean lookForLifecycleMethods = beanInfo.lookForLifecycleMethods(); if (lookForLifecycleMethods) { fireBeforeMarshalEvents(beanInfo, obj); } beanInfo.serializeRoot(obj,this); if (lookForLifecycleMethods) { fireAfterMarshalEvents(beanInfo, obj); } cycleDetectionStack.pop(); }
/** * Fires the afterUnmarshal event if necessary. * * @param state * state of the parent object */ protected final void fireAfterUnmarshal(JaxBeanInfo beanInfo, Object child, UnmarshallingContext.State state) throws SAXException { // fire the event callback if(beanInfo.lookForLifecycleMethods()) { UnmarshallingContext context = state.getContext(); Unmarshaller.Listener listener = context.parent.getListener(); if(beanInfo.hasAfterUnmarshalMethod()) { beanInfo.invokeAfterUnmarshalMethod(context.parent, child, state.getTarget()); } if(listener!=null) listener.afterUnmarshal(child, state.getTarget()); } }
/** * Fires the beforeUnmarshal event if necessary. * * @param state * state of the newly create child object. */ protected final void fireBeforeUnmarshal(JaxBeanInfo beanInfo, Object child, UnmarshallingContext.State state) throws SAXException { if(beanInfo.lookForLifecycleMethods()) { UnmarshallingContext context = state.getContext(); Unmarshaller.Listener listener = context.parent.getListener(); if(beanInfo.hasBeforeUnmarshalMethod()) { beanInfo.invokeBeforeUnmarshalMethod(context.parent, child, state.getPrev().getTarget()); } if(listener!=null) { listener.beforeUnmarshal(child, state.getPrev().getTarget()); } } }
QName actualTypeName = null; if((asExpected) && (actual.lookForLifecycleMethods())) { fireBeforeMarshalEvents(actual, child); try { actual = grammar.getBeanInfo(child,true); if (actual.lookForLifecycleMethods()) { fireBeforeMarshalEvents(actual, child); actual.serializeBody(child,this); if (actual.lookForLifecycleMethods()) { fireAfterMarshalEvents(actual, child);
final boolean lookForLifecycleMethods = beanInfo.lookForLifecycleMethods(); if (lookForLifecycleMethods) { fireBeforeMarshalEvents(beanInfo, child);
public void childAsRoot(Object obj) throws JAXBException, IOException, SAXException, XMLStreamException { final JaxBeanInfo beanInfo = grammar.getBeanInfo(obj, true); // since the same object will be reported to childAsRoot or // childAsXsiType, don't make it a part of the collision check. // but we do need to push it so that getXMIMEContentType will work. cycleDetectionStack.pushNocheck(obj); final boolean lookForLifecycleMethods = beanInfo.lookForLifecycleMethods(); if (lookForLifecycleMethods) { fireBeforeMarshalEvents(beanInfo, obj); } beanInfo.serializeRoot(obj,this); if (lookForLifecycleMethods) { fireAfterMarshalEvents(beanInfo, obj); } cycleDetectionStack.pop(); }
/** * Fires the afterUnmarshal event if necessary. * * @param state * state of the parent object */ protected final void fireAfterUnmarshal(JaxBeanInfo beanInfo, Object child, UnmarshallingContext.State state) throws SAXException { // fire the event callback if(beanInfo.lookForLifecycleMethods()) { UnmarshallingContext context = state.getContext(); Unmarshaller.Listener listener = context.parent.getListener(); if(beanInfo.hasAfterUnmarshalMethod()) { beanInfo.invokeAfterUnmarshalMethod(context.parent, child, state.getTarget()); } if(listener!=null) listener.afterUnmarshal(child, state.getTarget()); } }
/** * Fires the beforeUnmarshal event if necessary. * * @param state * state of the newly create child object. */ protected final void fireBeforeUnmarshal(JaxBeanInfo beanInfo, Object child, UnmarshallingContext.State state) throws SAXException { if(beanInfo.lookForLifecycleMethods()) { UnmarshallingContext context = state.getContext(); Unmarshaller.Listener listener = context.parent.getListener(); if(beanInfo.hasBeforeUnmarshalMethod()) { beanInfo.invokeBeforeUnmarshalMethod(context.parent, child, state.getPrev().getTarget()); } if(listener!=null) { listener.beforeUnmarshal(child, state.getPrev().getTarget()); } } }
QName actualTypeName = null; if((asExpected) && (actual.lookForLifecycleMethods())) { fireBeforeMarshalEvents(actual, child); try { actual = grammar.getBeanInfo(child,true); if (actual.lookForLifecycleMethods()) { fireBeforeMarshalEvents(actual, child); actual.serializeBody(child,this); if (actual.lookForLifecycleMethods()) { fireAfterMarshalEvents(actual, child);
final boolean lookForLifecycleMethods = beanInfo.lookForLifecycleMethods(); if (lookForLifecycleMethods) { fireBeforeMarshalEvents(beanInfo, child);
public void childAsRoot(Object obj) throws JAXBException, IOException, SAXException, XMLStreamException { final JaxBeanInfo beanInfo = grammar.getBeanInfo(obj, true); // since the same object will be reported to childAsRoot or // childAsXsiType, don't make it a part of the collision check. // but we do need to push it so that getXMIMEContentType will work. cycleDetectionStack.pushNocheck(obj); final boolean lookForLifecycleMethods = beanInfo.lookForLifecycleMethods(); if (lookForLifecycleMethods) { fireBeforeMarshalEvents(beanInfo, obj); } beanInfo.serializeRoot(obj,this); if (lookForLifecycleMethods) { fireAfterMarshalEvents(beanInfo, obj); } cycleDetectionStack.pop(); }
public void childAsRoot(Object obj) throws JAXBException, IOException, SAXException, XMLStreamException { final JaxBeanInfo beanInfo = grammar.getBeanInfo(obj, true); // since the same object will be reported to childAsRoot or // childAsXsiType, don't make it a part of the collision check. // but we do need to push it so that getXMIMEContentType will work. cycleDetectionStack.pushNocheck(obj); final boolean lookForLifecycleMethods = beanInfo.lookForLifecycleMethods(); if (lookForLifecycleMethods) { fireBeforeMarshalEvents(beanInfo, obj); } beanInfo.serializeRoot(obj,this); if (lookForLifecycleMethods) { fireAfterMarshalEvents(beanInfo, obj); } cycleDetectionStack.pop(); }
/** * Fires the afterUnmarshal event if necessary. * * @param state * state of the parent object */ protected final void fireAfterUnmarshal(JaxBeanInfo beanInfo, Object child, UnmarshallingContext.State state) throws SAXException { // fire the event callback if(beanInfo.lookForLifecycleMethods()) { UnmarshallingContext context = state.getContext(); Unmarshaller.Listener listener = context.parent.getListener(); if(beanInfo.hasAfterUnmarshalMethod()) { beanInfo.invokeAfterUnmarshalMethod(context.parent, child, state.getTarget()); } if(listener!=null) listener.afterUnmarshal(child, state.getTarget()); } }
/** * Fires the afterUnmarshal event if necessary. * * @param state * state of the parent object */ protected final void fireAfterUnmarshal(JaxBeanInfo beanInfo, Object child, UnmarshallingContext.State state) throws SAXException { // fire the event callback if(beanInfo.lookForLifecycleMethods()) { UnmarshallingContext context = state.getContext(); Unmarshaller.Listener listener = context.parent.getListener(); if(beanInfo.hasAfterUnmarshalMethod()) { beanInfo.invokeAfterUnmarshalMethod(context.parent, child, state.getTarget()); } if(listener!=null) listener.afterUnmarshal(child, state.getTarget()); } }
/** * Fires the beforeUnmarshal event if necessary. * * @param state * state of the newly create child object. */ protected final void fireBeforeUnmarshal(JaxBeanInfo beanInfo, Object child, UnmarshallingContext.State state) throws SAXException { if(beanInfo.lookForLifecycleMethods()) { UnmarshallingContext context = state.getContext(); Unmarshaller.Listener listener = context.parent.getListener(); if(beanInfo.hasBeforeUnmarshalMethod()) { beanInfo.invokeBeforeUnmarshalMethod(context.parent, child, state.getPrev().getTarget()); } if(listener!=null) { listener.beforeUnmarshal(child, state.getPrev().getTarget()); } } }
/** * Fires the beforeUnmarshal event if necessary. * * @param state * state of the newly create child object. */ protected final void fireBeforeUnmarshal(JaxBeanInfo beanInfo, Object child, UnmarshallingContext.State state) throws SAXException { if(beanInfo.lookForLifecycleMethods()) { UnmarshallingContext context = state.getContext(); Unmarshaller.Listener listener = context.parent.getListener(); if(beanInfo.hasBeforeUnmarshalMethod()) { beanInfo.invokeBeforeUnmarshalMethod(context.parent, child, state.getPrev().getTarget()); } if(listener!=null) { listener.beforeUnmarshal(child, state.getPrev().getTarget()); } } }
QName actualTypeName = null; if((asExpected) && (actual.lookForLifecycleMethods())) { fireBeforeMarshalEvents(actual, child); try { actual = grammar.getBeanInfo(child,true); if (actual.lookForLifecycleMethods()) { fireBeforeMarshalEvents(actual, child); actual.serializeBody(child,this); if (actual.lookForLifecycleMethods()) { fireAfterMarshalEvents(actual, child);
QName actualTypeName = null; if((asExpected) && (actual.lookForLifecycleMethods())) { fireBeforeMarshalEvents(actual, child); try { actual = grammar.getBeanInfo(child,true); if (actual.lookForLifecycleMethods()) { fireBeforeMarshalEvents(actual, child); actual.serializeBody(child,this); if (actual.lookForLifecycleMethods()) { fireAfterMarshalEvents(actual, child);
final boolean lookForLifecycleMethods = beanInfo.lookForLifecycleMethods(); if (lookForLifecycleMethods) { fireBeforeMarshalEvents(beanInfo, child);
final boolean lookForLifecycleMethods = beanInfo.lookForLifecycleMethods(); if (lookForLifecycleMethods) { fireBeforeMarshalEvents(beanInfo, child);