Examples of XSListType


Examples of org.apache.ws.jaxme.xs.XSListType

    assertEquals(XSString.getInstance(), t1_1);
   
    XSType t2 = types[1];
    assertEquals(new XsQName((String) null, "b"), t2.getName());
    XSSimpleType st2 = assertSimpleType(t2);
    XSListType lt = assertListType(st2);
    XSType it = lt.getItemType();
    assertNotNull(it);
    assertEquals(XSInt.getInstance(), it);
    XSSimpleType it2 = assertSimpleType(it);
    assertAtomicType(it2);
   
View Full Code Here

Examples of org.apache.ws.jaxme.xs.XSListType

    assertEquals(XSString.getInstance(), t1_1);

    XSType t2 = types[1];
    assertEquals(new XsQName((String) null, "b"), t2.getName());
    XSSimpleType st2 = assertSimpleType(t2);
    XSListType lt = assertListType(st2);
    XSType it = lt.getItemType();
    assertNotNull(it);
    assertEquals(XSInt.getInstance(), it);
    XSSimpleType it2 = assertSimpleType(it);
    assertAtomicType(it2);
View Full Code Here

Examples of org.exolab.castor.builder.types.XSListType

            XMLInfoNature xmlNature = new XMLInfoNature(member);
            XSType xsType = xmlNature.getSchemaType();
            //--handle collections
            if (xsType.isCollection()) {
                XSListType xsList = (XSListType) xsType;

                jsc.add("fieldValidator.setMinOccurs(");
                jsc.append(Integer.toString(xsList.getMinimumSize()));
                jsc.append(");");
                if (xsList.getMaximumSize() > 0) {
                    jsc.add("fieldValidator.setMaxOccurs(");
                    jsc.append(Integer.toString(xsList.getMaximumSize()));
                    jsc.append(");");
                }
            } else if (xmlNature.isRequired()) {
                jsc.add("fieldValidator.setMinOccurs(1);");
            }
View Full Code Here

Examples of org.exolab.castor.builder.types.XSListType

        String xmlName   = null;
        FieldInfo result = null;

        if (any.getMaxOccurs() > 1 || any.getMaxOccurs() < 0) {
            result = this.getInfoFactory().createCollection(xsType, vName, "anyObject", getJavaNaming(), useJava50);
            XSListType xsList = ((CollectionInfo) result).getXSList();
            xsList.setMinimumSize(any.getMinOccurs());
            xsList.setMaximumSize(any.getMaxOccurs());
        } else {
            result = this.getInfoFactory().createFieldInfo(xsType, vName);
        }

        if (result.hasNature(XMLInfoNature.class.getName())) {
View Full Code Here

Examples of org.exolab.castor.builder.types.XSListType

            // so we need to adjust the name of the members of the collection
            CollectionInfo cInfo;
            cInfo = this.getInfoFactory().createCollection(xsType, vName, memberName,
                                                       component.getCollectionType(), getJavaNaming(), useJava50);

            XSListType xsList = cInfo.getXSList();
            if (!simpleTypeCollection) {
                xsList.setMaximumSize(maxOccurs);
                xsList.setMinimumSize(minOccurs);
            } else {
                if (xsList instanceof XSList) {
                    ((XSList) xsList).setDerivedFromXSList(true);
                }
            }
View Full Code Here

Examples of org.exolab.castor.builder.types.XSListType

            JClass jClass = (JClass) xsType.getJType();
            isAbstract = jClass.getModifiers().isAbstract();
        }

        if (!isAbstract && xmlNature.getSchemaType() instanceof XSListType) {
            XSListType xsList = (XSListType) xmlNature.getSchemaType();
            if (xsList.getContentType().getJType() instanceof JClass) {
                JClass componentType = (JClass) xsList.getContentType().getJType();
                if (componentType.getModifiers().isAbstract()) {
                    isAbstract = componentType.getModifiers().isAbstract();
                }
            }
        }
View Full Code Here

Examples of org.exolab.castor.builder.types.XSListType

                                final String elementName, final boolean useJava50,
                                final FieldMemberAndAccessorFactory memberAndAccessorFactory,
                                final FieldMemberAndAccessorFactory contentMemberAndAccessorFactory) {
        super(contentType, name, elementName, useJava50,
                memberAndAccessorFactory, contentMemberAndAccessorFactory);
        final XSListType collection =
            XSCollectionFactory.createCollection(SourceGeneratorConstants.FIELD_INFO_ODMG,
                        contentType, useJava50);
        if (hasNature(XMLInfoNature.class.getName())) {
            XMLInfoNature xmlNature = new XMLInfoNature(this);
            xmlNature.setSchemaType(collection);
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.