/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* runtime Parameter that abstracts the annotated java parameter
*
* <p>
* A parameter may be bound to a header, a body, or an attachment.
* Note that when it's bound to a body, it's bound to a body,
* it binds to the whole payload.
*
* <p>
* Sometimes multiple Java parameters are packed into the payload,
* in which case the subclass {@link WrapperParameter} is used.
*
* @author Vivek Pandey
*/
private final int index;
this.typeReference = type;
}
}
return parent;
}
/**
* @return Returns the name.
*/
return name;
}
}
}
/**
* TODO: once the model gets JAXBContext, shouldn't {@link Bridge}s
* be made available from model objects?
*
* @return Returns the TypeReference associated with this Parameter
*/
return typeReference;
}
/**
* Sometimes we need to overwrite the typeReferenc, such as during patching for rpclit
* @see AbstractSEIModelImpl#applyParameterBinding(com.sun.xml.internal.ws.model.wsdl.WSDLBoundPortTypeImpl)
*/
}
return mode;
}
public int getIndex() {
return index;
}
/**
* @return true if <tt>this instanceof {@link WrapperParameter}</tt>.
*/
public boolean isWrapperStyle() {
return false;
}
public boolean isReturnValue() {
return index==-1;
}
/**
* @return the Binding for this Parameter
*/
return ParameterBinding.BODY;
return binding;
}
/**
* @param binding
*/
}
}
this.outBinding = binding;
}
return binding;
}
if(outBinding == null)
return binding;
return outBinding;
}
public boolean isIN() {
}
public boolean isOUT() {
}
public boolean isINOUT() {
}
/**
* If true, this parameter maps to the return value of a method invocation.
*
* <p>
* {@link JavaMethodImpl#getResponseParameters()} is guaranteed to have
* at most one such {@link ParameterImpl}. Note that there coule be none,
* in which case the method returns <tt>void</tt>.
*/
public boolean isResponse() {
return index == -1;
}
/**
* Gets the holder value if applicable. To be called for inbound client side
* message.
*
* @param obj
* @return the holder value if applicable.
*/
return obj;
}
return name.getLocalPart();
return partName;
}
}
}
}