Java Code Examples for javax.jws.WebParam.Mode#OUT

The following examples show how to use javax.jws.WebParam.Mode#OUT . 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: WebParamHolder.java    From netbeans with Apache License 2.0 5 votes vote down vote up
protected ErrorDescription[] apply(VariableElement subject, ProblemContext ctx) {
    AnnotationMirror paramAnn = Utilities.findAnnotation(subject, ANNOTATION_WEBPARAM);
    if(paramAnn!=null) {
        AnnotationValue val = Utilities.getAnnotationAttrValue(paramAnn, ANNOTATION_ATTRIBUTE_MODE);
        Mode value = null;
        if(val!=null) {
            try {
                value = Mode.valueOf(val.getValue().toString());
            } catch (Exception e) {
                // we dont need to worry as hints for invalid enum value kicks in.
            }
        }
        if((Mode.INOUT == value || Mode.OUT == value) && 
                !"javax.xml.ws.Holder".equals(getVariableType(subject))) {
            String label = NbBundle.getMessage(WebParamHolder.class, "MSG_WebParam_HolderRequired");
            
            Fix fix = new RemoveAnnotationArgument(ctx.getFileObject(),
                    subject, paramAnn, ANNOTATION_ATTRIBUTE_MODE);
            AnnotationTree annotationTree = (AnnotationTree) ctx.getCompilationInfo().
                    getTrees().getTree(subject, paramAnn);
            Tree problemTree = Utilities.getAnnotationArgumentTree(annotationTree, ANNOTATION_ATTRIBUTE_MODE);
            ctx.setElementToAnnotate(problemTree);
            ErrorDescription problem = createProblem(subject, ctx, label, fix);
            ctx.setElementToAnnotate(null);
            return new ErrorDescription[]{problem};
        }
    }
    return null;
}
 
Example 2
Source File: WSDLBoundOperationImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public EditableWSDLPart getPart(String partName, Mode mode) {
    if(mode==Mode.IN){
        return inParts.get(partName);
    }else if(mode==Mode.OUT){
        return outParts.get(partName);
    }
    return null;
}
 
Example 3
Source File: WSDLBoundOperationImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public EditableWSDLPart getPart(String partName, Mode mode) {
    if(mode==Mode.IN){
        return inParts.get(partName);
    }else if(mode==Mode.OUT){
        return outParts.get(partName);
    }
    return null;
}
 
Example 4
Source File: WSDLBoundOperationImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public EditableWSDLPart getPart(String partName, Mode mode) {
    if(mode==Mode.IN){
        return inParts.get(partName);
    }else if(mode==Mode.OUT){
        return outParts.get(partName);
    }
    return null;
}
 
Example 5
Source File: ParameterImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public boolean isOUT() {
    return mode==Mode.OUT;
}
 
Example 6
Source File: ParameterImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public boolean isOUT() {
    return mode==Mode.OUT;
}
 
Example 7
Source File: WSDLBoundOperationImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void addPart(EditableWSDLPart part, Mode mode){
    if(mode==Mode.IN)
        inParts.put(part.getName(), part);
    else if(mode==Mode.OUT)
        outParts.put(part.getName(), part);
}
 
Example 8
Source File: MessagePart.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public boolean isOUT(){
    if(mode!=null)
        return (mode == Mode.OUT);
    return false;
}
 
Example 9
Source File: MessagePart.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public boolean isOUT(){
    if(mode!=null)
        return (mode == Mode.OUT);
    return false;
}
 
Example 10
Source File: MessagePart.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public boolean isOUT(){
    if(mode!=null)
        return (mode == Mode.OUT);
    return false;
}
 
Example 11
Source File: WSDLBoundOperationImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void addPart(EditableWSDLPart part, Mode mode){
    if(mode==Mode.IN)
        inParts.put(part.getName(), part);
    else if(mode==Mode.OUT)
        outParts.put(part.getName(), part);
}
 
Example 12
Source File: ParameterImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public boolean isOUT() {
    return mode==Mode.OUT;
}
 
Example 13
Source File: MessagePart.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public boolean isOUT(){
    if(mode!=null)
        return (mode == Mode.OUT);
    return false;
}
 
Example 14
Source File: WSDLBoundOperationImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public void addPart(EditableWSDLPart part, Mode mode){
    if(mode==Mode.IN)
        inParts.put(part.getName(), part);
    else if(mode==Mode.OUT)
        outParts.put(part.getName(), part);
}
 
Example 15
Source File: MessagePart.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public boolean isOUT(){
    if(mode!=null)
        return (mode == Mode.OUT);
    return false;
}
 
Example 16
Source File: Parameter.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public boolean isOUT(){
    return (mode == Mode.OUT);
}
 
Example 17
Source File: MessagePart.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public boolean isOUT(){
    if(mode!=null)
        return (mode == Mode.OUT);
    return false;
}
 
Example 18
Source File: WSDLBoundOperationImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public void addPart(EditableWSDLPart part, Mode mode){
    if(mode==Mode.IN)
        inParts.put(part.getName(), part);
    else if(mode==Mode.OUT)
        outParts.put(part.getName(), part);
}
 
Example 19
Source File: HolderService.java    From cxf with Apache License 2.0 4 votes vote down vote up
String echo2(String s1,
@WebParam(mode = Mode.OUT) Holder<String> outS2, String s2);
 
Example 20
Source File: HolderService.java    From cxf with Apache License 2.0 4 votes vote down vote up
String echo(String s1, String s2,
@WebParam(mode = Mode.OUT) Holder<String> outS2);