Java Code Examples for com.sun.tools.internal.ws.processor.model.java.JavaStructureType#add()

The following examples show how to use com.sun.tools.internal.ws.processor.model.java.JavaStructureType#add() . 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: ModelerUtils.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param prop
 * @param jaxbType
 * @param block
 * @return unwrapped parameter
 */
private static Parameter createUnwrappedParameter(JAXBProperty prop,
        JAXBType jaxbType, Block block, JAXBStructuredType type,
        JavaStructureType jst) {
    QName elementName = prop.getElementName();
    JavaType javaType = new JavaSimpleType(prop.getType());
    JAXBElementMember eType = new JAXBElementMember(elementName, jaxbType);
    JavaStructureMember jsm = new JavaStructureMember(elementName
            .getLocalPart(), javaType, eType);
    eType.setJavaStructureMember(jsm);
    jst.add(jsm);
    eType.setProperty(prop);
    type.add(eType);
    JAXBType t = new JAXBType(elementName, javaType, jaxbType
            .getJaxbMapping(), jaxbType.getJaxbModel());
    t.setUnwrapped(true);
    Parameter parameter = createParameter(elementName.getLocalPart(), t, block);
    parameter.setEmbedded(true);
    return parameter;
}
 
Example 2
Source File: ModelerUtils.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param prop
 * @param jaxbType
 * @param block
 * @return unwrapped parameter
 */
private static Parameter createUnwrappedParameter(JAXBProperty prop,
        JAXBType jaxbType, Block block, JAXBStructuredType type,
        JavaStructureType jst) {
    QName elementName = prop.getElementName();
    JavaType javaType = new JavaSimpleType(prop.getType());
    JAXBElementMember eType = new JAXBElementMember(elementName, jaxbType);
    JavaStructureMember jsm = new JavaStructureMember(elementName
            .getLocalPart(), javaType, eType);
    eType.setJavaStructureMember(jsm);
    jst.add(jsm);
    eType.setProperty(prop);
    type.add(eType);
    JAXBType t = new JAXBType(elementName, javaType, jaxbType
            .getJaxbMapping(), jaxbType.getJaxbModel());
    t.setUnwrapped(true);
    Parameter parameter = createParameter(elementName.getLocalPart(), t, block);
    parameter.setEmbedded(true);
    return parameter;
}
 
Example 3
Source File: ModelerUtils.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param prop
 * @param jaxbType
 * @param block
 * @return unwrapped parameter
 */
private static Parameter createUnwrappedParameter(JAXBProperty prop,
        JAXBType jaxbType, Block block, JAXBStructuredType type,
        JavaStructureType jst) {
    QName elementName = prop.getElementName();
    JavaType javaType = new JavaSimpleType(prop.getType());
    JAXBElementMember eType = new JAXBElementMember(elementName, jaxbType);
    JavaStructureMember jsm = new JavaStructureMember(elementName
            .getLocalPart(), javaType, eType);
    eType.setJavaStructureMember(jsm);
    jst.add(jsm);
    eType.setProperty(prop);
    type.add(eType);
    JAXBType t = new JAXBType(elementName, javaType, jaxbType
            .getJaxbMapping(), jaxbType.getJaxbModel());
    t.setUnwrapped(true);
    Parameter parameter = createParameter(elementName.getLocalPart(), t, block);
    parameter.setEmbedded(true);
    return parameter;
}
 
Example 4
Source File: ModelerUtils.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param prop
 * @param jaxbType
 * @param block
 * @return unwrapped parameter
 */
private static Parameter createUnwrappedParameter(JAXBProperty prop,
        JAXBType jaxbType, Block block, JAXBStructuredType type,
        JavaStructureType jst) {
    QName elementName = prop.getElementName();
    JavaType javaType = new JavaSimpleType(prop.getType());
    JAXBElementMember eType = new JAXBElementMember(elementName, jaxbType);
    JavaStructureMember jsm = new JavaStructureMember(elementName
            .getLocalPart(), javaType, eType);
    eType.setJavaStructureMember(jsm);
    jst.add(jsm);
    eType.setProperty(prop);
    type.add(eType);
    JAXBType t = new JAXBType(elementName, javaType, jaxbType
            .getJaxbMapping(), jaxbType.getJaxbModel());
    t.setUnwrapped(true);
    Parameter parameter = createParameter(elementName.getLocalPart(), t, block);
    parameter.setEmbedded(true);
    return parameter;
}
 
Example 5
Source File: ModelerUtils.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param prop
 * @param jaxbType
 * @param block
 * @return unwrapped parameter
 */
private static Parameter createUnwrappedParameter(JAXBProperty prop,
        JAXBType jaxbType, Block block, JAXBStructuredType type,
        JavaStructureType jst) {
    QName elementName = prop.getElementName();
    JavaType javaType = new JavaSimpleType(prop.getType());
    JAXBElementMember eType = new JAXBElementMember(elementName, jaxbType);
    JavaStructureMember jsm = new JavaStructureMember(elementName
            .getLocalPart(), javaType, eType);
    eType.setJavaStructureMember(jsm);
    jst.add(jsm);
    eType.setProperty(prop);
    type.add(eType);
    JAXBType t = new JAXBType(elementName, javaType, jaxbType
            .getJaxbMapping(), jaxbType.getJaxbModel());
    t.setUnwrapped(true);
    Parameter parameter = createParameter(elementName.getLocalPart(), t, block);
    parameter.setEmbedded(true);
    return parameter;
}
 
Example 6
Source File: ModelerUtils.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param prop
 * @param jaxbType
 * @param block
 * @return unwrapped parameter
 */
private static Parameter createUnwrappedParameter(JAXBProperty prop,
        JAXBType jaxbType, Block block, JAXBStructuredType type,
        JavaStructureType jst) {
    QName elementName = prop.getElementName();
    JavaType javaType = new JavaSimpleType(prop.getType());
    JAXBElementMember eType = new JAXBElementMember(elementName, jaxbType);
    JavaStructureMember jsm = new JavaStructureMember(elementName
            .getLocalPart(), javaType, eType);
    eType.setJavaStructureMember(jsm);
    jst.add(jsm);
    eType.setProperty(prop);
    type.add(eType);
    JAXBType t = new JAXBType(elementName, javaType, jaxbType
            .getJaxbMapping(), jaxbType.getJaxbModel());
    t.setUnwrapped(true);
    Parameter parameter = createParameter(elementName.getLocalPart(), t, block);
    parameter.setEmbedded(true);
    return parameter;
}
 
Example 7
Source File: ModelerUtils.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param prop
 * @param jaxbType
 * @param block
 * @return unwrapped parameter
 */
private static Parameter createUnwrappedParameter(JAXBProperty prop,
        JAXBType jaxbType, Block block, JAXBStructuredType type,
        JavaStructureType jst) {
    QName elementName = prop.getElementName();
    JavaType javaType = new JavaSimpleType(prop.getType());
    JAXBElementMember eType = new JAXBElementMember(elementName, jaxbType);
    JavaStructureMember jsm = new JavaStructureMember(elementName
            .getLocalPart(), javaType, eType);
    eType.setJavaStructureMember(jsm);
    jst.add(jsm);
    eType.setProperty(prop);
    type.add(eType);
    JAXBType t = new JAXBType(elementName, javaType, jaxbType
            .getJaxbMapping(), jaxbType.getJaxbModel());
    t.setUnwrapped(true);
    Parameter parameter = createParameter(elementName.getLocalPart(), t, block);
    parameter.setEmbedded(true);
    return parameter;
}
 
Example 8
Source File: ModelerUtils.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param prop
 * @param jaxbType
 * @param block
 * @return unwrapped parameter
 */
private static Parameter createUnwrappedParameter(JAXBProperty prop,
        JAXBType jaxbType, Block block, JAXBStructuredType type,
        JavaStructureType jst) {
    QName elementName = prop.getElementName();
    JavaType javaType = new JavaSimpleType(prop.getType());
    JAXBElementMember eType = new JAXBElementMember(elementName, jaxbType);
    JavaStructureMember jsm = new JavaStructureMember(elementName
            .getLocalPart(), javaType, eType);
    eType.setJavaStructureMember(jsm);
    jst.add(jsm);
    eType.setProperty(prop);
    type.add(eType);
    JAXBType t = new JAXBType(elementName, javaType, jaxbType
            .getJaxbMapping(), jaxbType.getJaxbModel());
    t.setUnwrapped(true);
    Parameter parameter = createParameter(elementName.getLocalPart(), t, block);
    parameter.setEmbedded(true);
    return parameter;
}