< prev index next >

src/java.xml.ws/share/classes/com/sun/xml/internal/ws/model/ParameterImpl.java

Print this page




 144     /**
 145      * Sometimes we need to overwrite the typeReferenc, such as during patching for rpclit
 146      * @see AbstractSEIModelImpl#applyRpcLitParamBinding(JavaMethodImpl, WrapperParameter, WSDLBoundPortType, WebParam.Mode)
 147      * @deprecated
 148      */
 149     void setTypeReference(TypeReference type){
 150         typeReference = type;
 151         name = type.tagName;
 152     }
 153 
 154 
 155     public Mode getMode() {
 156         return mode;
 157     }
 158 
 159     public int getIndex() {
 160         return index;
 161     }
 162 
 163     /**
 164      * @return true if <tt>this instanceof {@link WrapperParameter}</tt>.
 165      */
 166     public boolean isWrapperStyle() {
 167         return false;
 168     }
 169 
 170     public boolean isReturnValue() {
 171         return index==-1;
 172     }
 173 
 174     /**
 175      * @return the Binding for this Parameter
 176      */
 177     public ParameterBinding getBinding() {
 178         if(binding == null)
 179             return ParameterBinding.BODY;
 180         return binding;
 181     }
 182 
 183     /**
 184      * @param binding


 206     }
 207 
 208     public boolean isIN() {
 209         return mode==Mode.IN;
 210     }
 211 
 212     public boolean isOUT() {
 213         return mode==Mode.OUT;
 214     }
 215 
 216     public boolean isINOUT() {
 217         return mode==Mode.INOUT;
 218     }
 219 
 220     /**
 221      * If true, this parameter maps to the return value of a method invocation.
 222      *
 223      * <p>
 224      * {@link JavaMethodImpl#getResponseParameters()} is guaranteed to have
 225      * at most one such {@link ParameterImpl}. Note that there coule be none,
 226      * in which case the method returns <tt>void</tt>.
 227      */
 228     public boolean isResponse() {
 229         return index == -1;
 230     }
 231 
 232 
 233     /**
 234      * Gets the holder value if applicable. To be called for inbound client side
 235      * message.
 236      *
 237      * @param obj
 238      * @return the holder value if applicable.
 239      */
 240     public Object getHolderValue(Object obj) {
 241         if (obj != null && obj instanceof Holder)
 242             return ((Holder) obj).value;
 243         return obj;
 244     }
 245 
 246     public String getPartName() {


 144     /**
 145      * Sometimes we need to overwrite the typeReferenc, such as during patching for rpclit
 146      * @see AbstractSEIModelImpl#applyRpcLitParamBinding(JavaMethodImpl, WrapperParameter, WSDLBoundPortType, WebParam.Mode)
 147      * @deprecated
 148      */
 149     void setTypeReference(TypeReference type){
 150         typeReference = type;
 151         name = type.tagName;
 152     }
 153 
 154 
 155     public Mode getMode() {
 156         return mode;
 157     }
 158 
 159     public int getIndex() {
 160         return index;
 161     }
 162 
 163     /**
 164      * @return true if {@code this instanceof} {@link WrapperParameter}.
 165      */
 166     public boolean isWrapperStyle() {
 167         return false;
 168     }
 169 
 170     public boolean isReturnValue() {
 171         return index==-1;
 172     }
 173 
 174     /**
 175      * @return the Binding for this Parameter
 176      */
 177     public ParameterBinding getBinding() {
 178         if(binding == null)
 179             return ParameterBinding.BODY;
 180         return binding;
 181     }
 182 
 183     /**
 184      * @param binding


 206     }
 207 
 208     public boolean isIN() {
 209         return mode==Mode.IN;
 210     }
 211 
 212     public boolean isOUT() {
 213         return mode==Mode.OUT;
 214     }
 215 
 216     public boolean isINOUT() {
 217         return mode==Mode.INOUT;
 218     }
 219 
 220     /**
 221      * If true, this parameter maps to the return value of a method invocation.
 222      *
 223      * <p>
 224      * {@link JavaMethodImpl#getResponseParameters()} is guaranteed to have
 225      * at most one such {@link ParameterImpl}. Note that there coule be none,
 226      * in which case the method returns {@code void}.
 227      */
 228     public boolean isResponse() {
 229         return index == -1;
 230     }
 231 
 232 
 233     /**
 234      * Gets the holder value if applicable. To be called for inbound client side
 235      * message.
 236      *
 237      * @param obj
 238      * @return the holder value if applicable.
 239      */
 240     public Object getHolderValue(Object obj) {
 241         if (obj != null && obj instanceof Holder)
 242             return ((Holder) obj).value;
 243         return obj;
 244     }
 245 
 246     public String getPartName() {
< prev index next >