Package com.sun.xml.ws.model
Class ParameterImpl
java.lang.Object
com.sun.xml.ws.model.ParameterImpl
- All Implemented Interfaces:
Parameter
- Direct Known Subclasses:
WrapperParameter
runtime Parameter that abstracts the annotated java parameter
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.
Sometimes multiple Java parameters are packed into the payload,
in which case the subclass WrapperParameter is used.
- Author:
- Vivek Pandey
-
Constructor Summary
ConstructorsConstructorDescriptionParameterImpl(JavaMethodImpl parent, TypeInfo type, jakarta.jws.WebParam.Mode mode, int index) -
Method Summary
Modifier and TypeMethodDescriptionReturns the binding associated with the parameter.org.glassfish.jaxb.runtime.api.BridgeDeprecated.protected org.glassfish.jaxb.runtime.api.BridgegetBridge(org.glassfish.jaxb.runtime.api.TypeReference typeRef) Deprecated.getHolderValue(Object obj) Gets the holder value if applicable.Returns theParameterBindingassociated with the IN modeintgetIndex()Position of a parameter in the method signature.jakarta.jws.WebParam.ModegetMode()getName()Returns theParameterBindingassociated with the OUT modegetOwner()Gets the rootSEIModelthat owns this model.Gets the parentJavaMethodto which this parameter belongs.Gives the wsdl:part@name valueorg.glassfish.jaxb.runtime.api.TypeReferenceDeprecated.use getTypeInfobooleanisIN()booleanisINOUT()booleanisOUT()booleanIf true, this parameter maps to the return value of a method invocation.booleanReturns true if this parameter is bound to the return value from theJavaMethod.booleanvoidsetBinding(ParameterBinding binding) voidsetInBinding(ParameterBinding binding) voidsetOutBinding(ParameterBinding binding) voidsetPartName(String partName)
-
Constructor Details
-
ParameterImpl
public ParameterImpl(JavaMethodImpl parent, TypeInfo type, jakarta.jws.WebParam.Mode mode, int index)
-
-
Method Details
-
getOwner
Description copied from interface:ParameterGets the rootSEIModelthat owns this model. -
getParent
Description copied from interface:ParameterGets the parentJavaMethodto which this parameter belongs. -
getName
-
getXMLBridge
-
getInlinedRepeatedElementBridge
-
getItemType
-
getBridge
public org.glassfish.jaxb.runtime.api.Bridge getBridge()Deprecated.Description copied from interface:ParameterGives theBridgeassociated with this Parameter -
getBridge
protected org.glassfish.jaxb.runtime.api.Bridge getBridge(org.glassfish.jaxb.runtime.api.TypeReference typeRef) Deprecated. -
getTypeReference
public org.glassfish.jaxb.runtime.api.TypeReference getTypeReference()Deprecated.use getTypeInfoTODO: once the model gets JAXBContext, shouldn'tBridges be made available from model objects?- Returns:
- Returns the TypeReference associated with this Parameter
-
getTypeInfo
-
getMode
public jakarta.jws.WebParam.Mode getMode() -
getIndex
public int getIndex()Description copied from interface:ParameterPosition of a parameter in the method signature. It would be -1 if the parameter is a return. -
isWrapperStyle
public boolean isWrapperStyle()- Specified by:
isWrapperStylein interfaceParameter- Returns:
- true if
this instanceofWrapperParameter.
-
isReturnValue
public boolean isReturnValue()Description copied from interface:ParameterReturns true if this parameter is bound to the return value from theJavaMethod.Just the convenience method for
getIndex()==-1- Specified by:
isReturnValuein interfaceParameter
-
getBinding
Description copied from interface:ParameterReturns the binding associated with the parameter. For IN parameter the binding will be same asParameter.getInBinding(), for OUT parameter the binding will be same asParameter.getOutBinding()and for INOUT parameter the binding will be same as callingParameter.getInBinding()- Specified by:
getBindingin interfaceParameter- Returns:
- the Binding for this Parameter
-
setBinding
- Parameters:
binding-
-
setInBinding
-
setOutBinding
-
getInBinding
Description copied from interface:ParameterReturns theParameterBindingassociated with the IN mode- Specified by:
getInBindingin interfaceParameter- Returns:
- the binding
-
getOutBinding
Description copied from interface:ParameterReturns theParameterBindingassociated with the OUT mode- Specified by:
getOutBindingin interfaceParameter- Returns:
- the binding
-
isIN
public boolean isIN() -
isOUT
public boolean isOUT() -
isINOUT
public boolean isINOUT() -
isResponse
public boolean isResponse()If true, this parameter maps to the return value of a method invocation.JavaMethodImpl.getResponseParameters()is guaranteed to have at most one suchParameterImpl. Note that there coule be none, in which case the method returnsvoid.- Specified by:
isResponsein interfaceParameter
-
getHolderValue
Gets the holder value if applicable. To be called for inbound client side message.- Specified by:
getHolderValuein interfaceParameter- Parameters:
obj-- Returns:
- the holder value if applicable.
-
getPartName
Description copied from interface:ParameterGives the wsdl:part@name value- Specified by:
getPartNamein interfaceParameter- Returns:
- Value of
WebParam.partName()annotation if present, otherwise its the localname of the infoset associated with the parameter
-
setPartName
-