com.sun.xml.internal.ws.model.WrapperParameter Java Examples
The following examples show how to use
com.sun.xml.internal.ws.model.WrapperParameter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BodyBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #2
Source File: BodyBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #3
Source File: BodyBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #4
Source File: BodyBuilder.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #5
Source File: BodyBuilder.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #6
Source File: ResponseBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public DocLit(WrapperParameter wp, ValueSetterFactory setterFactory) { wrapperName = wp.getName(); wrapper = wp.getXMLBridge(); Class wrapperType = (Class) wrapper.getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapperType); List<PartBuilder> tempParts = new ArrayList<PartBuilder>(); List<ParameterImpl> children = wp.getWrapperChildren(); for (ParameterImpl p : children) { if(p.isIN()) continue; QName name = p.getName(); if (dynamicWrapper) { if (wrappedParts == null) wrappedParts = new HashMap<QName,WrappedPartBuilder>(); XMLBridge xmlBridge = p.getInlinedRepeatedElementBridge(); if (xmlBridge == null) xmlBridge = p.getXMLBridge(); wrappedParts.put( p.getName(), new WrappedPartBuilder(xmlBridge, setterFactory.get(p))); } else { try { tempParts.add(new PartBuilder( wp.getOwner().getBindingContext().getElementPropertyAccessor( wrapperType, name.getNamespaceURI(), p.getName().getLocalPart()), setterFactory.get(p) )); // wrapper parameter itself always bind to body, and // so do all its children assert p.getBinding()== ParameterBinding.BODY; } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapperType+" do not have a property of the name "+name,e); } } } this.parts = tempParts.toArray(new PartBuilder[tempParts.size()]); }
Example #7
Source File: EndpointResponseMessageBuilder.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Creates a {@link EndpointResponseMessageBuilder} from a {@link WrapperParameter}. */ public RpcLit(WrapperParameter wp, SOAPVersion soapVersion) { super(wp, soapVersion); // we'll use CompositeStructure to pack requests assert wp.getTypeInfo().type==WrapperComposite.class; parameterBridges = new XMLBridge[children.size()]; for( int i=0; i<parameterBridges.length; i++ ) parameterBridges[i] = children.get(i).getXMLBridge(); }
Example #8
Source File: EndpointResponseMessageBuilder.java From hottub with GNU General Public License v2.0 | 5 votes |
protected Wrapped(WrapperParameter wp, SOAPVersion soapVersion) { super(wp.getXMLBridge(), soapVersion); children = wp.getWrapperChildren(); indices = new int[children.size()]; getters = new ValueGetter[children.size()]; for( int i=0; i<indices.length; i++ ) { ParameterImpl p = children.get(i); indices[i] = p.getIndex(); getters[i] = ValueGetter.get(p); } }
Example #9
Source File: BodyBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected Wrapped(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp.getXMLBridge(), soapVersion); children = wp.getWrapperChildren(); indices = new int[children.size()]; getters = new ValueGetter[children.size()]; for( int i=0; i<indices.length; i++ ) { ParameterImpl p = children.get(i); indices[i] = p.getIndex(); getters[i] = getter.get(p); } }
Example #10
Source File: ResponseBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public DocLit(WrapperParameter wp, ValueSetterFactory setterFactory) { wrapperName = wp.getName(); wrapper = wp.getXMLBridge(); Class wrapperType = (Class) wrapper.getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapperType); List<PartBuilder> tempParts = new ArrayList<PartBuilder>(); List<ParameterImpl> children = wp.getWrapperChildren(); for (ParameterImpl p : children) { if(p.isIN()) continue; QName name = p.getName(); if (dynamicWrapper) { if (wrappedParts == null) wrappedParts = new HashMap<QName,WrappedPartBuilder>(); XMLBridge xmlBridge = p.getInlinedRepeatedElementBridge(); if (xmlBridge == null) xmlBridge = p.getXMLBridge(); wrappedParts.put( p.getName(), new WrappedPartBuilder(xmlBridge, setterFactory.get(p))); } else { try { tempParts.add(new PartBuilder( wp.getOwner().getBindingContext().getElementPropertyAccessor( wrapperType, name.getNamespaceURI(), p.getName().getLocalPart()), setterFactory.get(p) )); // wrapper parameter itself always bind to body, and // so do all its children assert p.getBinding()== ParameterBinding.BODY; } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapperType+" do not have a property of the name "+name,e); } } } this.parts = tempParts.toArray(new PartBuilder[tempParts.size()]); }
Example #11
Source File: ResponseBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public RpcLit(WrapperParameter wp, ValueSetterFactory setterFactory) { assert wp.getTypeInfo().type== WrapperComposite.class; wrapperName = wp.getName(); wrappedParts = new HashMap<QName,WrappedPartBuilder>(); List<ParameterImpl> children = wp.getWrapperChildren(); for (ParameterImpl p : children) { wrappedParts.put( p.getName(), new WrappedPartBuilder( p.getXMLBridge(), setterFactory.get(p) )); // wrapper parameter itself always bind to body, and // so do all its children assert p.getBinding()== ParameterBinding.BODY; } }
Example #12
Source File: BodyBuilder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected Wrapped(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp.getXMLBridge(), soapVersion); children = wp.getWrapperChildren(); indices = new int[children.size()]; getters = new ValueGetter[children.size()]; for( int i=0; i<indices.length; i++ ) { ParameterImpl p = children.get(i); indices[i] = p.getIndex(); getters[i] = getter.get(p); } }
Example #13
Source File: BodyBuilder.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ RpcLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); // we'll use CompositeStructure to pack requests assert wp.getTypeInfo().type==WrapperComposite.class; parameterBridges = new XMLBridge[children.size()]; for( int i=0; i<parameterBridges.length; i++ ) parameterBridges[i] = children.get(i).getXMLBridge(); }
Example #14
Source File: BodyBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ RpcLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); // we'll use CompositeStructure to pack requests assert wp.getTypeInfo().type==WrapperComposite.class; parameterBridges = new XMLBridge[children.size()]; for( int i=0; i<parameterBridges.length; i++ ) parameterBridges[i] = children.get(i).getXMLBridge(); }
Example #15
Source File: BodyBuilder.java From hottub with GNU General Public License v2.0 | 5 votes |
protected Wrapped(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp.getXMLBridge(), soapVersion); children = wp.getWrapperChildren(); indices = new int[children.size()]; getters = new ValueGetter[children.size()]; for( int i=0; i<indices.length; i++ ) { ParameterImpl p = children.get(i); indices[i] = p.getIndex(); getters[i] = getter.get(p); } }
Example #16
Source File: EndpointResponseMessageBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Creates a {@link EndpointResponseMessageBuilder} from a {@link WrapperParameter}. */ public DocLit(WrapperParameter wp, SOAPVersion soapVersion) { super(wp, soapVersion); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); children = wp.getWrapperChildren(); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = (dynamicWrapper) ? null : p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #17
Source File: EndpointResponseMessageBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Creates a {@link EndpointResponseMessageBuilder} from a {@link WrapperParameter}. */ public RpcLit(WrapperParameter wp, SOAPVersion soapVersion) { super(wp, soapVersion); // we'll use CompositeStructure to pack requests assert wp.getTypeInfo().type==WrapperComposite.class; parameterBridges = new XMLBridge[children.size()]; for( int i=0; i<parameterBridges.length; i++ ) parameterBridges[i] = children.get(i).getXMLBridge(); }
Example #18
Source File: BodyBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ RpcLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); // we'll use CompositeStructure to pack requests assert wp.getTypeInfo().type==WrapperComposite.class; parameterBridges = new XMLBridge[children.size()]; for( int i=0; i<parameterBridges.length; i++ ) parameterBridges[i] = children.get(i).getXMLBridge(); }
Example #19
Source File: EndpointArgumentsBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public RpcLit(WrapperParameter wp) { assert wp.getTypeInfo().type== WrapperComposite.class; wrapperName = wp.getName(); wrappedParts = new HashMap<QName,WrappedPartBuilder>(); List<ParameterImpl> children = wp.getWrapperChildren(); for (ParameterImpl p : children) { wrappedParts.put( p.getName(), new WrappedPartBuilder( p.getXMLBridge(), EndpointValueSetter.get(p) )); // wrapper parameter itself always bind to body, and // so do all its children assert p.getBinding()== ParameterBinding.BODY; } }
Example #20
Source File: ResponseBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public RpcLit(WrapperParameter wp, ValueSetterFactory setterFactory) { assert wp.getTypeInfo().type== WrapperComposite.class; wrapperName = wp.getName(); wrappedParts = new HashMap<QName,WrappedPartBuilder>(); List<ParameterImpl> children = wp.getWrapperChildren(); for (ParameterImpl p : children) { wrappedParts.put( p.getName(), new WrappedPartBuilder( p.getXMLBridge(), setterFactory.get(p) )); // wrapper parameter itself always bind to body, and // so do all its children assert p.getBinding()== ParameterBinding.BODY; } }
Example #21
Source File: ResponseBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public DocLit(WrapperParameter wp, ValueSetterFactory setterFactory) { wrapperName = wp.getName(); wrapper = wp.getXMLBridge(); Class wrapperType = (Class) wrapper.getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapperType); List<PartBuilder> tempParts = new ArrayList<PartBuilder>(); List<ParameterImpl> children = wp.getWrapperChildren(); for (ParameterImpl p : children) { if(p.isIN()) continue; QName name = p.getName(); if (dynamicWrapper) { if (wrappedParts == null) wrappedParts = new HashMap<QName,WrappedPartBuilder>(); XMLBridge xmlBridge = p.getInlinedRepeatedElementBridge(); if (xmlBridge == null) xmlBridge = p.getXMLBridge(); wrappedParts.put( p.getName(), new WrappedPartBuilder(xmlBridge, setterFactory.get(p))); } else { try { tempParts.add(new PartBuilder( wp.getOwner().getBindingContext().getElementPropertyAccessor( wrapperType, name.getNamespaceURI(), p.getName().getLocalPart()), setterFactory.get(p) )); // wrapper parameter itself always bind to body, and // so do all its children assert p.getBinding()== ParameterBinding.BODY; } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapperType+" do not have a property of the name "+name,e); } } } this.parts = tempParts.toArray(new PartBuilder[tempParts.size()]); }
Example #22
Source File: ResponseBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public RpcLit(WrapperParameter wp, ValueSetterFactory setterFactory) { assert wp.getTypeInfo().type== WrapperComposite.class; wrapperName = wp.getName(); wrappedParts = new HashMap<QName,WrappedPartBuilder>(); List<ParameterImpl> children = wp.getWrapperChildren(); for (ParameterImpl p : children) { wrappedParts.put( p.getName(), new WrappedPartBuilder( p.getXMLBridge(), setterFactory.get(p) )); // wrapper parameter itself always bind to body, and // so do all its children assert p.getBinding()== ParameterBinding.BODY; } }
Example #23
Source File: EndpointResponseMessageBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Creates a {@link EndpointResponseMessageBuilder} from a {@link WrapperParameter}. */ public DocLit(WrapperParameter wp, SOAPVersion soapVersion) { super(wp, soapVersion); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); children = wp.getWrapperChildren(); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = (dynamicWrapper) ? null : p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #24
Source File: EndpointArgumentsBuilder.java From hottub with GNU General Public License v2.0 | 5 votes |
public RpcLit(WrapperParameter wp) { assert wp.getTypeInfo().type== WrapperComposite.class; wrapperName = wp.getName(); wrappedParts = new HashMap<QName,WrappedPartBuilder>(); List<ParameterImpl> children = wp.getWrapperChildren(); for (ParameterImpl p : children) { wrappedParts.put( p.getName(), new WrappedPartBuilder( p.getXMLBridge(), EndpointValueSetter.get(p) )); // wrapper parameter itself always bind to body, and // so do all its children assert p.getBinding()== ParameterBinding.BODY; } }
Example #25
Source File: BodyBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected Wrapped(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp.getXMLBridge(), soapVersion); children = wp.getWrapperChildren(); indices = new int[children.size()]; getters = new ValueGetter[children.size()]; for( int i=0; i<indices.length; i++ ) { ParameterImpl p = children.get(i); indices[i] = p.getIndex(); getters[i] = getter.get(p); } }
Example #26
Source File: BodyBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ RpcLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); // we'll use CompositeStructure to pack requests assert wp.getTypeInfo().type==WrapperComposite.class; parameterBridges = new XMLBridge[children.size()]; for( int i=0; i<parameterBridges.length; i++ ) parameterBridges[i] = children.get(i).getXMLBridge(); }
Example #27
Source File: EndpointResponseMessageBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected Wrapped(WrapperParameter wp, SOAPVersion soapVersion) { super(wp.getXMLBridge(), soapVersion); children = wp.getWrapperChildren(); indices = new int[children.size()]; getters = new ValueGetter[children.size()]; for( int i=0; i<indices.length; i++ ) { ParameterImpl p = children.get(i); indices[i] = p.getIndex(); getters[i] = ValueGetter.get(p); } }
Example #28
Source File: EndpointResponseMessageBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Creates a {@link EndpointResponseMessageBuilder} from a {@link WrapperParameter}. */ public DocLit(WrapperParameter wp, SOAPVersion soapVersion) { super(wp, soapVersion); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); children = wp.getWrapperChildren(); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = (dynamicWrapper) ? null : p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #29
Source File: EndpointResponseMessageBuilder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Creates a {@link EndpointResponseMessageBuilder} from a {@link WrapperParameter}. */ public RpcLit(WrapperParameter wp, SOAPVersion soapVersion) { super(wp, soapVersion); // we'll use CompositeStructure to pack requests assert wp.getTypeInfo().type==WrapperComposite.class; parameterBridges = new XMLBridge[children.size()]; for( int i=0; i<parameterBridges.length; i++ ) parameterBridges[i] = children.get(i).getXMLBridge(); }
Example #30
Source File: EndpointResponseMessageBuilder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Creates a {@link EndpointResponseMessageBuilder} from a {@link WrapperParameter}. */ public DocLit(WrapperParameter wp, SOAPVersion soapVersion) { super(wp, soapVersion); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); children = wp.getWrapperChildren(); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = (dynamicWrapper) ? null : p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }