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

The following examples show how to use com.sun.tools.internal.ws.processor.model.ModelProperties. 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: JwsImplGenerator.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * TODO
 *
 * @param port
 * @param bindingTypeAnn
 */
private void writeBindingTypeAnnotation(Port port,
    JAnnotationUse bindingTypeAnn) {
        QName bName = (QName) port
            .getProperty(ModelProperties.PROPERTY_WSDL_BINDING_NAME);
        if (bName == null)
                return;

        String v = getBindingType(bName);

        // TODO: How to decide if it is a mtom?
        if (v != null) {
                // transport = translate(transport);
                bindingTypeAnn.param("value", v);
        }

}
 
Example #2
Source File: JwsImplGenerator.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * TODO
 *
 * @param port
 * @param bindingTypeAnn
 */
private void writeBindingTypeAnnotation(Port port,
    JAnnotationUse bindingTypeAnn) {
        QName bName = (QName) port
            .getProperty(ModelProperties.PROPERTY_WSDL_BINDING_NAME);
        if (bName == null)
                return;

        String v = getBindingType(bName);

        // TODO: How to decide if it is a mtom?
        if (v != null) {
                // transport = translate(transport);
                bindingTypeAnn.param("value", v);
        }

}
 
Example #3
Source File: Names.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public static String getPortName(Port port) {
    String javaPortName =
        (String) port.getProperty(ModelProperties.PROPERTY_JAVA_PORT_NAME);
    if (javaPortName != null) {
        return javaPortName;
    } else {
        QName portName =
            (QName) port.getProperty(
                ModelProperties.PROPERTY_WSDL_PORT_NAME);
        if (portName != null) {
            return portName.getLocalPart();
        } else {
            String name = stripQualifier(port.getJavaInterface().getName());
            return ClassNameInfo.replaceInnerClassSym(name);
        }
    }
}
 
Example #4
Source File: JwsImplGenerator.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * TODO
 *
 * @param port
 * @param bindingTypeAnn
 */
private void writeBindingTypeAnnotation(Port port,
    JAnnotationUse bindingTypeAnn) {
        QName bName = (QName) port
            .getProperty(ModelProperties.PROPERTY_WSDL_BINDING_NAME);
        if (bName == null)
                return;

        String v = getBindingType(bName);

        // TODO: How to decide if it is a mtom?
        if (v != null) {
                // transport = translate(transport);
                bindingTypeAnn.param("value", v);
        }

}
 
Example #5
Source File: Names.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public static String getPortName(Port port) {
    String javaPortName =
        (String) port.getProperty(ModelProperties.PROPERTY_JAVA_PORT_NAME);
    if (javaPortName != null) {
        return javaPortName;
    } else {
        QName portName =
            (QName) port.getProperty(
                ModelProperties.PROPERTY_WSDL_PORT_NAME);
        if (portName != null) {
            return portName.getLocalPart();
        } else {
            String name = stripQualifier(port.getJavaInterface().getName());
            return ClassNameInfo.replaceInnerClassSym(name);
        }
    }
}
 
Example #6
Source File: JwsImplGenerator.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * TODO
 *
 * @param port
 * @param bindingTypeAnn
 */
private void writeBindingTypeAnnotation(Port port,
    JAnnotationUse bindingTypeAnn) {
        QName bName = (QName) port
            .getProperty(ModelProperties.PROPERTY_WSDL_BINDING_NAME);
        if (bName == null)
                return;

        String v = getBindingType(bName);

        // TODO: How to decide if it is a mtom?
        if (v != null) {
                // transport = translate(transport);
                bindingTypeAnn.param("value", v);
        }

}
 
Example #7
Source File: Names.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public static String getPortName(Port port) {
    String javaPortName =
        (String) port.getProperty(ModelProperties.PROPERTY_JAVA_PORT_NAME);
    if (javaPortName != null) {
        return javaPortName;
    } else {
        QName portName =
            (QName) port.getProperty(
                ModelProperties.PROPERTY_WSDL_PORT_NAME);
        if (portName != null) {
            return portName.getLocalPart();
        } else {
            String name = stripQualifier(port.getJavaInterface().getName());
            return ClassNameInfo.replaceInnerClassSym(name);
        }
    }
}
 
Example #8
Source File: JwsImplGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * TODO
 *
 * @param port
 * @param bindingTypeAnn
 */
private void writeBindingTypeAnnotation(Port port,
    JAnnotationUse bindingTypeAnn) {
        QName bName = (QName) port
            .getProperty(ModelProperties.PROPERTY_WSDL_BINDING_NAME);
        if (bName == null)
                return;

        String v = getBindingType(bName);

        // TODO: How to decide if it is a mtom?
        if (v != null) {
                // transport = translate(transport);
                bindingTypeAnn.param("value", v);
        }

}
 
Example #9
Source File: Names.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public static String getPortName(Port port) {
    String javaPortName =
        (String) port.getProperty(ModelProperties.PROPERTY_JAVA_PORT_NAME);
    if (javaPortName != null) {
        return javaPortName;
    } else {
        QName portName =
            (QName) port.getProperty(
                ModelProperties.PROPERTY_WSDL_PORT_NAME);
        if (portName != null) {
            return portName.getLocalPart();
        } else {
            String name = stripQualifier(port.getJavaInterface().getName());
            return ClassNameInfo.replaceInnerClassSym(name);
        }
    }
}
 
Example #10
Source File: JwsImplGenerator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * TODO
 *
 * @param port
 * @param bindingTypeAnn
 */
private void writeBindingTypeAnnotation(Port port,
    JAnnotationUse bindingTypeAnn) {
        QName bName = (QName) port
            .getProperty(ModelProperties.PROPERTY_WSDL_BINDING_NAME);
        if (bName == null)
                return;

        String v = getBindingType(bName);

        // TODO: How to decide if it is a mtom?
        if (v != null) {
                // transport = translate(transport);
                bindingTypeAnn.param("value", v);
        }

}
 
Example #11
Source File: Names.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public static String getPortName(Port port) {
    String javaPortName =
        (String) port.getProperty(ModelProperties.PROPERTY_JAVA_PORT_NAME);
    if (javaPortName != null) {
        return javaPortName;
    } else {
        QName portName =
            (QName) port.getProperty(
                ModelProperties.PROPERTY_WSDL_PORT_NAME);
        if (portName != null) {
            return portName.getLocalPart();
        } else {
            String name = stripQualifier(port.getJavaInterface().getName());
            return ClassNameInfo.replaceInnerClassSym(name);
        }
    }
}
 
Example #12
Source File: JwsImplGenerator.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * TODO
 *
 * @param port
 * @param bindingTypeAnn
 */
private void writeBindingTypeAnnotation(Port port,
    JAnnotationUse bindingTypeAnn) {
        QName bName = (QName) port
            .getProperty(ModelProperties.PROPERTY_WSDL_BINDING_NAME);
        if (bName == null)
                return;

        String v = getBindingType(bName);

        // TODO: How to decide if it is a mtom?
        if (v != null) {
                // transport = translate(transport);
                bindingTypeAnn.param("value", v);
        }

}
 
Example #13
Source File: Names.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public static String getPortName(Port port) {
    String javaPortName =
        (String) port.getProperty(ModelProperties.PROPERTY_JAVA_PORT_NAME);
    if (javaPortName != null) {
        return javaPortName;
    } else {
        QName portName =
            (QName) port.getProperty(
                ModelProperties.PROPERTY_WSDL_PORT_NAME);
        if (portName != null) {
            return portName.getLocalPart();
        } else {
            String name = stripQualifier(port.getJavaInterface().getName());
            return ClassNameInfo.replaceInnerClassSym(name);
        }
    }
}
 
Example #14
Source File: JwsImplGenerator.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * TODO
 *
 * @param port
 * @param bindingTypeAnn
 */
private void writeBindingTypeAnnotation(Port port,
    JAnnotationUse bindingTypeAnn) {
        QName bName = (QName) port
            .getProperty(ModelProperties.PROPERTY_WSDL_BINDING_NAME);
        if (bName == null)
                return;

        String v = getBindingType(bName);

        // TODO: How to decide if it is a mtom?
        if (v != null) {
                // transport = translate(transport);
                bindingTypeAnn.param("value", v);
        }

}
 
Example #15
Source File: Names.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public static String getPortName(Port port) {
    String javaPortName =
        (String) port.getProperty(ModelProperties.PROPERTY_JAVA_PORT_NAME);
    if (javaPortName != null) {
        return javaPortName;
    } else {
        QName portName =
            (QName) port.getProperty(
                ModelProperties.PROPERTY_WSDL_PORT_NAME);
        if (portName != null) {
            return portName.getLocalPart();
        } else {
            String name = stripQualifier(port.getJavaInterface().getName());
            return ClassNameInfo.replaceInnerClassSym(name);
        }
    }
}
 
Example #16
Source File: Names.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public static String getPortName(Port port) {
    String javaPortName =
        (String) port.getProperty(ModelProperties.PROPERTY_JAVA_PORT_NAME);
    if (javaPortName != null) {
        return javaPortName;
    } else {
        QName portName =
            (QName) port.getProperty(
                ModelProperties.PROPERTY_WSDL_PORT_NAME);
        if (portName != null) {
            return portName.getLocalPart();
        } else {
            String name = stripQualifier(port.getJavaInterface().getName());
            return ClassNameInfo.replaceInnerClassSym(name);
        }
    }
}
 
Example #17
Source File: ModelerUtils.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Called for non-wrapper style operations. It returns a Parameter constructed
 * using the JAXBType and the Block.
 *
 * @param partName typically wsdl:part or any name to be given to the parameter
 * @param jaxbType type of Parameter
 * @param block Block to which the parameter belongs to
 * @return Parameter created.
 */
public static Parameter createParameter(String partName, AbstractType jaxbType,
        Block block) {
    Parameter parameter = new Parameter(partName, block.getEntity());
    parameter.setProperty(ModelProperties.PROPERTY_PARAM_MESSAGE_PART_NAME,
            partName);
    parameter.setEmbedded(false);
    parameter.setType(jaxbType);
    parameter.setTypeName(jaxbType.getJavaType().getType().getName());
    parameter.setBlock(block);
    return parameter;
}
 
Example #18
Source File: ModelerUtils.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Called for non-wrapper style operations. It returns a Parameter constructed
 * using the JAXBType and the Block.
 *
 * @param partName typically wsdl:part or any name to be given to the parameter
 * @param jaxbType type of Parameter
 * @param block Block to which the parameter belongs to
 * @return Parameter created.
 */
public static Parameter createParameter(String partName, AbstractType jaxbType,
        Block block) {
    Parameter parameter = new Parameter(partName, block.getEntity());
    parameter.setProperty(ModelProperties.PROPERTY_PARAM_MESSAGE_PART_NAME,
            partName);
    parameter.setEmbedded(false);
    parameter.setType(jaxbType);
    parameter.setTypeName(jaxbType.getJavaType().getType().getName());
    parameter.setBlock(block);
    return parameter;
}
 
Example #19
Source File: ModelerUtils.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Called for non-wrapper style operations. It returns a Parameter constructed
 * using the JAXBType and the Block.
 *
 * @param partName typically wsdl:part or any name to be given to the parameter
 * @param jaxbType type of Parameter
 * @param block Block to which the parameter belongs to
 * @return Parameter created.
 */
public static Parameter createParameter(String partName, AbstractType jaxbType,
        Block block) {
    Parameter parameter = new Parameter(partName, block.getEntity());
    parameter.setProperty(ModelProperties.PROPERTY_PARAM_MESSAGE_PART_NAME,
            partName);
    parameter.setEmbedded(false);
    parameter.setType(jaxbType);
    parameter.setTypeName(jaxbType.getJavaType().getType().getName());
    parameter.setBlock(block);
    return parameter;
}
 
Example #20
Source File: ModelerUtils.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Called for non-wrapper style operations. It returns a Parameter constructed
 * using the JAXBType and the Block.
 *
 * @param partName typically wsdl:part or any name to be given to the parameter
 * @param jaxbType type of Parameter
 * @param block Block to which the parameter belongs to
 * @return Parameter created.
 */
public static Parameter createParameter(String partName, AbstractType jaxbType,
        Block block) {
    Parameter parameter = new Parameter(partName, block.getEntity());
    parameter.setProperty(ModelProperties.PROPERTY_PARAM_MESSAGE_PART_NAME,
            partName);
    parameter.setEmbedded(false);
    parameter.setType(jaxbType);
    parameter.setTypeName(jaxbType.getJavaType().getType().getName());
    parameter.setBlock(block);
    return parameter;
}
 
Example #21
Source File: ModelerUtils.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Called for non-wrapper style operations. It returns a Parameter constructed
 * using the JAXBType and the Block.
 *
 * @param partName typically wsdl:part or any name to be given to the parameter
 * @param jaxbType type of Parameter
 * @param block Block to which the parameter belongs to
 * @return Parameter created.
 */
public static Parameter createParameter(String partName, AbstractType jaxbType,
        Block block) {
    Parameter parameter = new Parameter(partName, block.getEntity());
    parameter.setProperty(ModelProperties.PROPERTY_PARAM_MESSAGE_PART_NAME,
            partName);
    parameter.setEmbedded(false);
    parameter.setType(jaxbType);
    parameter.setTypeName(jaxbType.getJavaType().getType().getName());
    parameter.setBlock(block);
    return parameter;
}
 
Example #22
Source File: ModelerUtils.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Called for non-wrapper style operations. It returns a Parameter constructed
 * using the JAXBType and the Block.
 *
 * @param partName typically wsdl:part or any name to be given to the parameter
 * @param jaxbType type of Parameter
 * @param block Block to which the parameter belongs to
 * @return Parameter created.
 */
public static Parameter createParameter(String partName, AbstractType jaxbType,
        Block block) {
    Parameter parameter = new Parameter(partName, block.getEntity());
    parameter.setProperty(ModelProperties.PROPERTY_PARAM_MESSAGE_PART_NAME,
            partName);
    parameter.setEmbedded(false);
    parameter.setType(jaxbType);
    parameter.setTypeName(jaxbType.getJavaType().getType().getName());
    parameter.setBlock(block);
    return parameter;
}
 
Example #23
Source File: ModelerUtils.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Called for non-wrapper style operations. It returns a Parameter constructed
 * using the JAXBType and the Block.
 *
 * @param partName typically wsdl:part or any name to be given to the parameter
 * @param jaxbType type of Parameter
 * @param block Block to which the parameter belongs to
 * @return Parameter created.
 */
public static Parameter createParameter(String partName, AbstractType jaxbType,
        Block block) {
    Parameter parameter = new Parameter(partName, block.getEntity());
    parameter.setProperty(ModelProperties.PROPERTY_PARAM_MESSAGE_PART_NAME,
            partName);
    parameter.setEmbedded(false);
    parameter.setType(jaxbType);
    parameter.setTypeName(jaxbType.getJavaType().getType().getName());
    parameter.setBlock(block);
    return parameter;
}
 
Example #24
Source File: ModelerUtils.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Called for non-wrapper style operations. It returns a Parameter constructed
 * using the JAXBType and the Block.
 *
 * @param partName typically wsdl:part or any name to be given to the parameter
 * @param jaxbType type of Parameter
 * @param block Block to which the parameter belongs to
 * @return Parameter created.
 */
public static Parameter createParameter(String partName, AbstractType jaxbType,
        Block block) {
    Parameter parameter = new Parameter(partName, block.getEntity());
    parameter.setProperty(ModelProperties.PROPERTY_PARAM_MESSAGE_PART_NAME,
            partName);
    parameter.setEmbedded(false);
    parameter.setType(jaxbType);
    parameter.setTypeName(jaxbType.getJavaType().getType().getName());
    parameter.setBlock(block);
    return parameter;
}