Examples of ListType


Examples of org.exolab.castor.xml.schema.simpletypes.ListType

                        }
                    }
                   
                    // handle special case where the list type uses an item type
                    // that has enumeration facets defined.
                    ListType listType = (ListType) simpleType;
                    if (listType == null) {
                        listType = (ListType) baseType;
                    }
                    SimpleType itemType = listType.getItemType();
                    if (itemType.hasFacet(Facet.ENUMERATION)) {
                        ClassInfo itemClassInfo = resolver.resolve(itemType);
                        if (itemClassInfo != null) {
                            xsType = new XMLInfoNature(itemClassInfo).getSchemaType();
                        } else {
View Full Code Here

Examples of org.exolab.castor.xml.schema.simpletypes.ListType

        throws XMLException
    {
        super();
       
        _schema = schema;
        _list = new ListType(schema);

        //-- itemType
        String itemTypeName = atts.getValue(SchemaNames.ITEM_TYPE_ATTR);
        if ((itemTypeName != null) && (itemTypeName.length() > 0)) {
View Full Code Here

Examples of org.richfaces.component.ListType

     */

    private void checkList(ListType type) {
        page.setType(type);
        String tag = page.getList().getRootElement().getTagName();
        ListType actual = null;
        if (tag.equals("dl")) {
            actual = ListType.definitions;
        } else if (tag.equals("ol")) {
            actual = ListType.ordered;
        } else if (tag.equals("ul")) {
View Full Code Here

Examples of org.richfaces.component.ListType

                throw new IllegalArgumentException(type.toString());
        }
    }

    protected ListType getType(UIComponent component) {
        ListType type = ((AbstractList) component).getType();
        if (type == null) {
            String exceptionMessage = MessageFormat.format("Type for rich:list {0} is required!",
                RichfacesLogger.getComponentPath(component));
            throw new IllegalArgumentException(exceptionMessage);
        }
View Full Code Here

Examples of org.yinwang.pysonar.types.ListType

            transformExpr(step, s);
        }
        if (upper != null) {
            transformExpr(upper, s);
        }
        return new ListType();
    }
View Full Code Here

Examples of org.yinwang.pysonar.types.ListType

    @NotNull
    @Override
    public Type transform(State s) {
        if (elts.size() == 0) {
            return new ListType();
        }

        ListType listType = null;
        for (Node elt : elts) {
            if (listType == null) {
                listType = new ListType(transformExpr(elt, s));
            } else {
                listType.add(transformExpr(elt, s));
            }
        }

        return listType;
    }
View Full Code Here

Examples of org.yinwang.pysonar.types.ListType

     */
    @NotNull
    @Override
    public Type transform(State s) {
        resolveList(generators, s);
        return new ListType(transformExpr(elt, s));
    }
View Full Code Here

Examples of org.yinwang.pysonar.types.ListType

    @NotNull
    @Override
    public Type transform(State s) {
        resolveList(generators, s);
        return new ListType(transformExpr(elt, s));
    }
View Full Code Here

Examples of org.yinwang.pysonar.types.ListType

    @NotNull
    @Override
    public Type transform(State s) {
        if (value != null) {
            return new ListType(transformExpr(value, s));
        } else {
            return Type.NONE;
        }
    }
View Full Code Here

Examples of org.yinwang.pysonar.types.ListType

        List<String> names = new ArrayList<>();
        Type allType = mt.table.lookupType("__all__");

        if (allType != null && allType instanceof ListType) {
            ListType lt = (ListType) allType;

            for (Object o : lt.values) {
                if (o instanceof String) {
                    names.add((String) o);
                }
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.