Java Code Examples for com.sun.tools.internal.ws.processor.model.Block#setType()

The following examples show how to use com.sun.tools.internal.ws.processor.model.Block#setType() . 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
/**
 * This method uses JAXBStructured type (wrapper style operations) and
 * unwraps it to create list of parameters.
 *
 *
 * @param jaxbType instance of JAXBType, could be JAXBStructured type.
 * @param block The Block (body/Header/Attachment) to which the created Parameter belong.
 * @return list of Parameters
 */
public static List<Parameter> createUnwrappedParameters(JAXBType jaxbType,
        Block block) {
    List<Parameter> paramList = new ArrayList<Parameter>();
    JAXBStructuredType type = null;
    if (!(jaxbType instanceof JAXBStructuredType))
        type = createJAXBStructureType(jaxbType);
    else
        type = (JAXBStructuredType) jaxbType;

    JavaStructureType jst = new JavaStructureType(jaxbType.getJavaType()
            .getRealName(), true, type);
    type.setJavaType(jst);
    block.setType(type);
    List memberList = jaxbType.getWrapperChildren();
    Iterator props = memberList.iterator();
    while (props.hasNext()) {
        JAXBProperty prop = (JAXBProperty) props.next();
        paramList.add(createUnwrappedParameter(prop, jaxbType, block, type,
                jst));
    }

    return paramList;
}
 
Example 2
Source File: ModelerUtils.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This method uses JAXBStructured type (wrapper style operations) and
 * unwraps it to create list of parameters.
 *
 *
 * @param jaxbType instance of JAXBType, could be JAXBStructured type.
 * @param block The Block (body/Header/Attachment) to which the created Parameter belong.
 * @return list of Parameters
 */
public static List<Parameter> createUnwrappedParameters(JAXBType jaxbType,
        Block block) {
    List<Parameter> paramList = new ArrayList<Parameter>();
    JAXBStructuredType type = null;
    if (!(jaxbType instanceof JAXBStructuredType))
        type = createJAXBStructureType(jaxbType);
    else
        type = (JAXBStructuredType) jaxbType;

    JavaStructureType jst = new JavaStructureType(jaxbType.getJavaType()
            .getRealName(), true, type);
    type.setJavaType(jst);
    block.setType(type);
    List memberList = jaxbType.getWrapperChildren();
    Iterator props = memberList.iterator();
    while (props.hasNext()) {
        JAXBProperty prop = (JAXBProperty) props.next();
        paramList.add(createUnwrappedParameter(prop, jaxbType, block, type,
                jst));
    }

    return paramList;
}
 
Example 3
Source File: ModelerUtils.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This method uses JAXBStructured type (wrapper style operations) and
 * unwraps it to create list of parameters.
 *
 *
 * @param jaxbType instance of JAXBType, could be JAXBStructured type.
 * @param block The Block (body/Header/Attachment) to which the created Parameter belong.
 * @return list of Parameters
 */
public static List<Parameter> createUnwrappedParameters(JAXBType jaxbType,
        Block block) {
    List<Parameter> paramList = new ArrayList<Parameter>();
    JAXBStructuredType type = null;
    if (!(jaxbType instanceof JAXBStructuredType))
        type = createJAXBStructureType(jaxbType);
    else
        type = (JAXBStructuredType) jaxbType;

    JavaStructureType jst = new JavaStructureType(jaxbType.getJavaType()
            .getRealName(), true, type);
    type.setJavaType(jst);
    block.setType(type);
    List memberList = jaxbType.getWrapperChildren();
    Iterator props = memberList.iterator();
    while (props.hasNext()) {
        JAXBProperty prop = (JAXBProperty) props.next();
        paramList.add(createUnwrappedParameter(prop, jaxbType, block, type,
                jst));
    }

    return paramList;
}
 
Example 4
Source File: ModelerUtils.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This method uses JAXBStructured type (wrapper style operations) and
 * unwraps it to create list of parameters.
 *
 *
 * @param jaxbType instance of JAXBType, could be JAXBStructured type.
 * @param block The Block (body/Header/Attachment) to which the created Parameter belong.
 * @return list of Parameters
 */
public static List<Parameter> createUnwrappedParameters(JAXBType jaxbType,
        Block block) {
    List<Parameter> paramList = new ArrayList<Parameter>();
    JAXBStructuredType type = null;
    if (!(jaxbType instanceof JAXBStructuredType))
        type = createJAXBStructureType(jaxbType);
    else
        type = (JAXBStructuredType) jaxbType;

    JavaStructureType jst = new JavaStructureType(jaxbType.getJavaType()
            .getRealName(), true, type);
    type.setJavaType(jst);
    block.setType(type);
    List memberList = jaxbType.getWrapperChildren();
    Iterator props = memberList.iterator();
    while (props.hasNext()) {
        JAXBProperty prop = (JAXBProperty) props.next();
        paramList.add(createUnwrappedParameter(prop, jaxbType, block, type,
                jst));
    }

    return paramList;
}
 
Example 5
Source File: ModelerUtils.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This method uses JAXBStructured type (wrapper style operations) and
 * unwraps it to create list of parameters.
 *
 *
 * @param jaxbType instance of JAXBType, could be JAXBStructured type.
 * @param block The Block (body/Header/Attachment) to which the created Parameter belong.
 * @return list of Parameters
 */
public static List<Parameter> createUnwrappedParameters(JAXBType jaxbType,
        Block block) {
    List<Parameter> paramList = new ArrayList<Parameter>();
    JAXBStructuredType type = null;
    if (!(jaxbType instanceof JAXBStructuredType))
        type = createJAXBStructureType(jaxbType);
    else
        type = (JAXBStructuredType) jaxbType;

    JavaStructureType jst = new JavaStructureType(jaxbType.getJavaType()
            .getRealName(), true, type);
    type.setJavaType(jst);
    block.setType(type);
    List memberList = jaxbType.getWrapperChildren();
    Iterator props = memberList.iterator();
    while (props.hasNext()) {
        JAXBProperty prop = (JAXBProperty) props.next();
        paramList.add(createUnwrappedParameter(prop, jaxbType, block, type,
                jst));
    }

    return paramList;
}
 
Example 6
Source File: ModelerUtils.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This method uses JAXBStructured type (wrapper style operations) and
 * unwraps it to create list of parameters.
 *
 *
 * @param jaxbType instance of JAXBType, could be JAXBStructured type.
 * @param block The Block (body/Header/Attachment) to which the created Parameter belong.
 * @return list of Parameters
 */
public static List<Parameter> createUnwrappedParameters(JAXBType jaxbType,
        Block block) {
    List<Parameter> paramList = new ArrayList<Parameter>();
    JAXBStructuredType type = null;
    if (!(jaxbType instanceof JAXBStructuredType))
        type = createJAXBStructureType(jaxbType);
    else
        type = (JAXBStructuredType) jaxbType;

    JavaStructureType jst = new JavaStructureType(jaxbType.getJavaType()
            .getRealName(), true, type);
    type.setJavaType(jst);
    block.setType(type);
    List memberList = jaxbType.getWrapperChildren();
    Iterator props = memberList.iterator();
    while (props.hasNext()) {
        JAXBProperty prop = (JAXBProperty) props.next();
        paramList.add(createUnwrappedParameter(prop, jaxbType, block, type,
                jst));
    }

    return paramList;
}
 
Example 7
Source File: ModelerUtils.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This method uses JAXBStructured type (wrapper style operations) and
 * unwraps it to create list of parameters.
 *
 *
 * @param jaxbType instance of JAXBType, could be JAXBStructured type.
 * @param block The Block (body/Header/Attachment) to which the created Parameter belong.
 * @return list of Parameters
 */
public static List<Parameter> createUnwrappedParameters(JAXBType jaxbType,
        Block block) {
    List<Parameter> paramList = new ArrayList<Parameter>();
    JAXBStructuredType type = null;
    if (!(jaxbType instanceof JAXBStructuredType))
        type = createJAXBStructureType(jaxbType);
    else
        type = (JAXBStructuredType) jaxbType;

    JavaStructureType jst = new JavaStructureType(jaxbType.getJavaType()
            .getRealName(), true, type);
    type.setJavaType(jst);
    block.setType(type);
    List memberList = jaxbType.getWrapperChildren();
    Iterator props = memberList.iterator();
    while (props.hasNext()) {
        JAXBProperty prop = (JAXBProperty) props.next();
        paramList.add(createUnwrappedParameter(prop, jaxbType, block, type,
                jst));
    }

    return paramList;
}
 
Example 8
Source File: ModelerUtils.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * This method uses JAXBStructured type (wrapper style operations) and
 * unwraps it to create list of parameters.
 *
 *
 * @param jaxbType instance of JAXBType, could be JAXBStructured type.
 * @param block The Block (body/Header/Attachment) to which the created Parameter belong.
 * @return list of Parameters
 */
public static List<Parameter> createUnwrappedParameters(JAXBType jaxbType,
        Block block) {
    List<Parameter> paramList = new ArrayList<Parameter>();
    JAXBStructuredType type = null;
    if (!(jaxbType instanceof JAXBStructuredType))
        type = createJAXBStructureType(jaxbType);
    else
        type = (JAXBStructuredType) jaxbType;

    JavaStructureType jst = new JavaStructureType(jaxbType.getJavaType()
            .getRealName(), true, type);
    type.setJavaType(jst);
    block.setType(type);
    List memberList = jaxbType.getWrapperChildren();
    Iterator props = memberList.iterator();
    while (props.hasNext()) {
        JAXBProperty prop = (JAXBProperty) props.next();
        paramList.add(createUnwrappedParameter(prop, jaxbType, block, type,
                jst));
    }

    return paramList;
}