com.sun.tools.internal.ws.processor.model.Operation Java Examples

The following examples show how to use com.sun.tools.internal.ws.processor.model.Operation. 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: WSDLModeler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param styleAndUse
 */
private void addAsyncOperations(Operation syncOperation, StyleAndUse styleAndUse) {
    Operation operation = createAsyncOperation(syncOperation, styleAndUse, AsyncOperationType.POLLING);
    if (operation != null) {
        info.modelPort.addOperation(operation);
    }

    operation = createAsyncOperation(syncOperation, styleAndUse, AsyncOperationType.CALLBACK);
    if (operation != null) {
        info.modelPort.addOperation(operation);
    }
}
 
Example #2
Source File: WSDLModeler.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param styleAndUse
 */
private void addAsyncOperations(Operation syncOperation, StyleAndUse styleAndUse) {
    Operation operation = createAsyncOperation(syncOperation, styleAndUse, AsyncOperationType.POLLING);
    if (operation != null) {
        info.modelPort.addOperation(operation);
    }

    operation = createAsyncOperation(syncOperation, styleAndUse, AsyncOperationType.CALLBACK);
    if (operation != null) {
        info.modelPort.addOperation(operation);
    }
}
 
Example #3
Source File: AnnotationProcessorContext.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static boolean isEncoded(Model model) {
    if (model == null)
        return false;
    for (Service service : model.getServices()) {
        for (Port port : service.getPorts()) {
            for (Operation operation : port.getOperations()) {
                if (operation.getUse() != null && operation.getUse().equals(SOAPUse.LITERAL))
                    return false;
            }
        }
    }
    return true;
}
 
Example #4
Source File: AnnotationProcessorContext.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static boolean isEncoded(Model model) {
    if (model == null)
        return false;
    for (Service service : model.getServices()) {
        for (Port port : service.getPorts()) {
            for (Operation operation : port.getOperations()) {
                if (operation.getUse() != null && operation.getUse().equals(SOAPUse.LITERAL))
                    return false;
            }
        }
    }
    return true;
}
 
Example #5
Source File: WSDLModelerBase.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected String getUniqueName(
    com.sun.tools.internal.ws.wsdl.document.Operation operation,
    boolean hasOverloadedOperations) {
    if (hasOverloadedOperations) {
        return operation.getUniqueKey().replace(' ', '_');
    } else {
        return operation.getName();
    }
}
 
Example #6
Source File: WSDLModeler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected String getJavaNameForOperation(Operation operation) {
    String name = operation.getJavaMethodName();
    if (Names.isJavaReservedWord(name)) {
        name = "_" + name;
    }
    return name;
}
 
Example #7
Source File: WSDLModeler.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected String getAsyncOperationName(Operation operation) {
    String name = operation.getCustomizedName();
    if (name == null) {
        name = operation.getUniqueName();
    }
    return name;
}
 
Example #8
Source File: WSDLModelerBase.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected String getUniqueName(
    com.sun.tools.internal.ws.wsdl.document.Operation operation,
    boolean hasOverloadedOperations) {
    if (hasOverloadedOperations) {
        return operation.getUniqueKey().replace(' ', '_');
    } else {
        return operation.getName();
    }
}
 
Example #9
Source File: AnnotationProcessorContext.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public static boolean isEncoded(Model model) {
    if (model == null)
        return false;
    for (Service service : model.getServices()) {
        for (Port port : service.getPorts()) {
            for (Operation operation : port.getOperations()) {
                if (operation.getUse() != null && operation.getUse().equals(SOAPUse.LITERAL))
                    return false;
            }
        }
    }
    return true;
}
 
Example #10
Source File: WSDLModeler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected String getAsyncOperationName(Operation operation) {
    String name = operation.getCustomizedName();
    if (name == null) {
        name = operation.getUniqueName();
    }
    return name;
}
 
Example #11
Source File: WSDLModeler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param styleAndUse
 */
private void addAsyncOperations(Operation syncOperation, StyleAndUse styleAndUse) {
    Operation operation = createAsyncOperation(syncOperation, styleAndUse, AsyncOperationType.POLLING);
    if (operation != null) {
        info.modelPort.addOperation(operation);
    }

    operation = createAsyncOperation(syncOperation, styleAndUse, AsyncOperationType.CALLBACK);
    if (operation != null) {
        info.modelPort.addOperation(operation);
    }
}
 
Example #12
Source File: WSDLModeler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected void createJavaInterfaceForPort(Port port, boolean isProvider) {
    if (isProvider) {
        createJavaInterfaceForProviderPort(port);
        return;
    }
    String interfaceName = getJavaNameOfSEI(port);

    if (isConflictingPortClassName(interfaceName)) {
        interfaceName += "_PortType";
    }

    JavaInterface intf = new JavaInterface(interfaceName);
    for (Operation operation : port.getOperations()) {
        createJavaMethodForOperation(
                port,
                operation,
                intf);

        for (JavaParameter jParam : operation.getJavaMethod().getParametersList()) {
            Parameter param = jParam.getParameter();
            if (param.getCustomName() != null) {
                jParam.setName(param.getCustomName());
            }
        }
    }

    port.setJavaInterface(intf);
}
 
Example #13
Source File: WSDLModeler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected String getJavaNameForOperation(Operation operation) {
    String name = operation.getJavaMethodName();
    if (Names.isJavaReservedWord(name)) {
        name = "_" + name;
    }
    return name;
}
 
Example #14
Source File: WSDLModelerBase.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected String getUniqueName(
    com.sun.tools.internal.ws.wsdl.document.Operation operation,
    boolean hasOverloadedOperations) {
    if (hasOverloadedOperations) {
        return operation.getUniqueKey().replace(' ', '_');
    } else {
        return operation.getName();
    }
}
 
Example #15
Source File: WSDLModeler.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected String getJavaNameForOperation(Operation operation) {
    String name = operation.getJavaMethodName();
    if (Names.isJavaReservedWord(name)) {
        name = "_" + name;
    }
    return name;
}
 
Example #16
Source File: WSDLModeler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected void createJavaInterfaceForPort(Port port, boolean isProvider) {
    if (isProvider) {
        createJavaInterfaceForProviderPort(port);
        return;
    }
    String interfaceName = getJavaNameOfSEI(port);

    if (isConflictingPortClassName(interfaceName)) {
        interfaceName += "_PortType";
    }

    JavaInterface intf = new JavaInterface(interfaceName);
    for (Operation operation : port.getOperations()) {
        createJavaMethodForOperation(
                port,
                operation,
                intf);

        for (JavaParameter jParam : operation.getJavaMethod().getParametersList()) {
            Parameter param = jParam.getParameter();
            if (param.getCustomName() != null) {
                jParam.setName(param.getCustomName());
            }
        }
    }

    port.setJavaInterface(intf);
}
 
Example #17
Source File: WSDLModeler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected String getAsyncOperationName(Operation operation) {
    String name = operation.getCustomizedName();
    if (name == null) {
        name = operation.getUniqueName();
    }
    return name;
}
 
Example #18
Source File: AnnotationProcessorContext.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static boolean isEncoded(Model model) {
    if (model == null)
        return false;
    for (Service service : model.getServices()) {
        for (Port port : service.getPorts()) {
            for (Operation operation : port.getOperations()) {
                if (operation.getUse() != null && operation.getUse().equals(SOAPUse.LITERAL))
                    return false;
            }
        }
    }
    return true;
}
 
Example #19
Source File: WSDLModelerBase.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected String getUniqueName(
    com.sun.tools.internal.ws.wsdl.document.Operation operation,
    boolean hasOverloadedOperations) {
    if (hasOverloadedOperations) {
        return operation.getUniqueKey().replace(' ', '_');
    } else {
        return operation.getName();
    }
}
 
Example #20
Source File: WSDLModeler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected String getJavaNameForOperation(Operation operation) {
    String name = operation.getJavaMethodName();
    if (Names.isJavaReservedWord(name)) {
        name = "_" + name;
    }
    return name;
}
 
Example #21
Source File: WSDLModeler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected void createJavaInterfaceForPort(Port port, boolean isProvider) {
    if (isProvider) {
        createJavaInterfaceForProviderPort(port);
        return;
    }
    String interfaceName = getJavaNameOfSEI(port);

    if (isConflictingPortClassName(interfaceName)) {
        interfaceName += "_PortType";
    }

    JavaInterface intf = new JavaInterface(interfaceName);
    for (Operation operation : port.getOperations()) {
        createJavaMethodForOperation(
                port,
                operation,
                intf);

        for (JavaParameter jParam : operation.getJavaMethod().getParametersList()) {
            Parameter param = jParam.getParameter();
            if (param.getCustomName() != null) {
                jParam.setName(param.getCustomName());
            }
        }
    }

    port.setJavaInterface(intf);
}
 
Example #22
Source File: WSDLModeler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param styleAndUse
 */
private void addAsyncOperations(Operation syncOperation, StyleAndUse styleAndUse) {
    Operation operation = createAsyncOperation(syncOperation, styleAndUse, AsyncOperationType.POLLING);
    if (operation != null) {
        info.modelPort.addOperation(operation);
    }

    operation = createAsyncOperation(syncOperation, styleAndUse, AsyncOperationType.CALLBACK);
    if (operation != null) {
        info.modelPort.addOperation(operation);
    }
}
 
Example #23
Source File: WSDLModeler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected String getAsyncOperationName(Operation operation) {
    String name = operation.getCustomizedName();
    if (name == null) {
        name = operation.getUniqueName();
    }
    return name;
}
 
Example #24
Source File: AnnotationProcessorContext.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static boolean isEncoded(Model model) {
    if (model == null)
        return false;
    for (Service service : model.getServices()) {
        for (Port port : service.getPorts()) {
            for (Operation operation : port.getOperations()) {
                if (operation.getUse() != null && operation.getUse().equals(SOAPUse.LITERAL))
                    return false;
            }
        }
    }
    return true;
}
 
Example #25
Source File: WSDLModelerBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected String getUniqueName(
    com.sun.tools.internal.ws.wsdl.document.Operation operation,
    boolean hasOverloadedOperations) {
    if (hasOverloadedOperations) {
        return operation.getUniqueKey().replace(' ', '_');
    } else {
        return operation.getName();
    }
}
 
Example #26
Source File: WSDLModeler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected String getJavaNameForOperation(Operation operation) {
    String name = operation.getJavaMethodName();
    if (Names.isJavaReservedWord(name)) {
        name = "_" + name;
    }
    return name;
}
 
Example #27
Source File: WSDLModeler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected void createJavaInterfaceForPort(Port port, boolean isProvider) {
    if (isProvider) {
        createJavaInterfaceForProviderPort(port);
        return;
    }
    String interfaceName = getJavaNameOfSEI(port);

    if (isConflictingPortClassName(interfaceName)) {
        interfaceName += "_PortType";
    }

    JavaInterface intf = new JavaInterface(interfaceName);
    for (Operation operation : port.getOperations()) {
        createJavaMethodForOperation(
                port,
                operation,
                intf);

        for (JavaParameter jParam : operation.getJavaMethod().getParametersList()) {
            Parameter param = jParam.getParameter();
            if (param.getCustomName() != null) {
                jParam.setName(param.getCustomName());
            }
        }
    }

    port.setJavaInterface(intf);
}
 
Example #28
Source File: WSDLModeler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param styleAndUse
 */
private void addAsyncOperations(Operation syncOperation, StyleAndUse styleAndUse) {
    Operation operation = createAsyncOperation(syncOperation, styleAndUse, AsyncOperationType.POLLING);
    if (operation != null) {
        info.modelPort.addOperation(operation);
    }

    operation = createAsyncOperation(syncOperation, styleAndUse, AsyncOperationType.CALLBACK);
    if (operation != null) {
        info.modelPort.addOperation(operation);
    }
}
 
Example #29
Source File: WSDLModeler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected String getAsyncOperationName(Operation operation) {
    String name = operation.getCustomizedName();
    if (name == null) {
        name = operation.getUniqueName();
    }
    return name;
}
 
Example #30
Source File: AnnotationProcessorContext.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static boolean isEncoded(Model model) {
    if (model == null)
        return false;
    for (Service service : model.getServices()) {
        for (Port port : service.getPorts()) {
            for (Operation operation : port.getOperations()) {
                if (operation.getUse() != null && operation.getUse().equals(SOAPUse.LITERAL))
                    return false;
            }
        }
    }
    return true;
}