public CompositeContextDependentTransducedAccessorImpl(JAXBContextImpl context,Transducer<ValueT> xducer, Accessor<BeanT,ValueT> acc) { super(context,xducer,acc); assert xducer.useNamespace(); }
public boolean useNamespace() { return core.useNamespace(); }
public boolean useNamespace() { return baseXducer.useNamespace(); }
public boolean useNamespace() { return xducer.useNamespace(); }
public final void serializeURIs(Object array, XMLSerializer target) throws SAXException { if(xducer.useNamespace()) { int len = Array.getLength(array); for( int i=0; i<len; i++ ) { Object item = Array.get(array,i); try { xducer.declareNamespace(item,target); } catch (AccessorException e) { target.reportError("arrayItem",e); } } } }
public final void serializeURIs(BeanT bean, XMLSerializer target) throws SAXException { // TODO: maybe we should create another LeafBeanInfoImpl class for // context-dependent xducers? if(xducer.useNamespace()) { try { xducer.declareNamespace(bean,target); } catch (AccessorException e) { target.reportError(null,e); } } }
public CompositeContextDependentTransducedAccessorImpl(JAXBContextImpl context,Transducer<ValueT> xducer, Accessor<BeanT,ValueT> acc) { super(context,xducer,acc); assert xducer.useNamespace(); }
public boolean useNamespace() { return core.useNamespace(); }
public boolean useNamespace() { return xducer.useNamespace(); }
public boolean useNamespace() { return baseXducer.useNamespace(); }
/** * Gets the {@link TransducedAccessor} appropriately configured for * the given property. * * <p> * This allows the implementation to use an optimized code. */ public static <T> TransducedAccessor<T> get(JAXBContextImpl context, RuntimeNonElementRef ref) { Transducer xducer = RuntimeModelBuilder.createTransducer(ref); RuntimePropertyInfo prop = ref.getSource(); if(prop.isCollection()) { return new ListTransducedAccessorImpl(xducer,prop.getAccessor(), Lister.create(Utils.REFLECTION_NAVIGATOR.erasure(prop.getRawType()), prop.id(), prop.getAdapter())); } if(prop.id()==ID.IDREF) return new IDREFTransducedAccessorImpl(prop.getAccessor()); if(xducer.useNamespace()) return new CompositeContextDependentTransducedAccessorImpl( context, xducer, prop.getAccessor() ); else return new CompositeTransducedAccessorImpl( context, xducer, prop.getAccessor() ); }
public final void serializeURIs(Object array, XMLSerializer target) throws SAXException { if(xducer.useNamespace()) { int len = Array.getLength(array); for( int i=0; i<len; i++ ) { Object item = Array.get(array,i); try { xducer.declareNamespace(item,target); } catch (AccessorException e) { target.reportError("arrayItem",e); } } } }
public final void serializeURIs(BeanT bean, XMLSerializer target) throws SAXException { // TODO: maybe we should create another LeafBeanInfoImpl class for // context-dependent xducers? if(xducer.useNamespace()) { try { xducer.declareNamespace(bean,target); } catch (AccessorException e) { target.reportError(null,e); } } }
public CompositeContextDependentTransducedAccessorImpl(JAXBContextImpl context,Transducer<ValueT> xducer, Accessor<BeanT,ValueT> acc) { super(context,xducer,acc); assert xducer.useNamespace(); }
public boolean useNamespace() { return core.useNamespace(); }
public CompositeContextDependentTransducedAccessorImpl(JAXBContextImpl context,Transducer<ValueT> xducer, Accessor<BeanT,ValueT> acc) { super(context,xducer,acc); assert xducer.useNamespace(); }
/** * Gets the {@link TransducedAccessor} appropriately configured for * the given property. * * <p> * This allows the implementation to use an optimized code. */ public static <T> TransducedAccessor<T> get(JAXBContextImpl context, RuntimeNonElementRef ref) { Transducer xducer = RuntimeModelBuilder.createTransducer(ref); RuntimePropertyInfo prop = ref.getSource(); if(prop.isCollection()) { return new ListTransducedAccessorImpl(xducer,prop.getAccessor(), Lister.create(Utils.REFLECTION_NAVIGATOR.erasure(prop.getRawType()), prop.id(), prop.getAdapter())); } if(prop.id()==ID.IDREF) return new IDREFTransducedAccessorImpl(prop.getAccessor()); if(xducer.useNamespace()) return new CompositeContextDependentTransducedAccessorImpl( context, xducer, prop.getAccessor() ); else return new CompositeTransducedAccessorImpl( context, xducer, prop.getAccessor() ); }
public final void serializeURIs(Object array, XMLSerializer target) throws SAXException { if(xducer.useNamespace()) { int len = Array.getLength(array); for( int i=0; i<len; i++ ) { Object item = Array.get(array,i); try { xducer.declareNamespace(item,target); } catch (AccessorException e) { target.reportError("arrayItem",e); } } } }
public final void serializeURIs(BeanT bean, XMLSerializer target) throws SAXException { // TODO: maybe we should create another LeafBeanInfoImpl class for // context-dependent xducers? if(xducer.useNamespace()) { try { xducer.declareNamespace(bean,target); } catch (AccessorException e) { target.reportError(null,e); } } }
public final void serializeURIs(BeanT bean, XMLSerializer target) throws SAXException { // TODO: maybe we should create another LeafBeanInfoImpl class for // context-dependent xducers? if(xducer.useNamespace()) { try { xducer.declareNamespace(bean,target); } catch (AccessorException e) { target.reportError(null,e); } } }