Examples of JPrimitiveType


Examples of org.exolab.javasource.JPrimitiveType

     *            the JType we are to return the class name of
     * @return the Class name (as a String) for the given XSType
     */
    private static String classType(final JType jType) {
        if (jType.isPrimitive()) {
            JPrimitiveType primitive = (JPrimitiveType) jType;
            return primitive.getWrapperName() + ".TYPE";
        }
        return jType.toString() + ".class";
    } //-- classType
View Full Code Here

Examples of org.exolab.javasource.JPrimitiveType

                value = jType.getName() + ".valueOf(\"" + value + "\")";   
            }
        } else if (xsType.getJType().isArray()) {
            JType componentType = ((JArrayType) xsType.getJType()).getComponentType();
            if (componentType.isPrimitive()) {
                JPrimitiveType primitive = (JPrimitiveType) componentType;
                value = "new " + primitive.getName() + "[] { "
                      + primitive.getWrapperName() + ".valueOf(\"" + value
                      + "\")." + primitive.getName() + "Value() }";
            } else {
                value = "new " + componentType.getName() + "[] { "
                      + componentType.getName() + ".valueOf(\"" + value + "\") }";
               
            }
View Full Code Here

Examples of org.exolab.javasource.JPrimitiveType

            JType referencedJType = new XMLInfoNature(fieldInfo.getFieldInfoReference()).getSchemaType().getJType();
            if (referencedJType.isPrimitive()) {
                jsc.append(paramName);
            } else if (jType.isPrimitive()) {
                JPrimitiveType primitive = (JPrimitiveType) jType;
                jsc.append("new ");
                jsc.append(primitive.getWrapperName());
                jsc.append("(");
                jsc.append(paramName);
                jsc.append(")");
            } else {
                jsc.append(paramName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.