Package org.jibx.util

Examples of org.jibx.util.LazyList


     * @param schema
     * @param custom schema set customization
     * @return owning schemaset, <code>null</code> if none
     */
    private SchemasetCustom findSchemaset(SchemaElement schema, SchemasetCustom custom) {
        LazyList childs = custom.getChildren();
        SchemasetCustom owner = null;
        String name = schema.getResolver().getName();
        for (int i = 0; i < childs.size(); i++) {
            Object child = childs.get(i);
            if (child instanceof SchemasetCustom) {
                SchemasetCustom schemaset = (SchemasetCustom)child;
                if (schemaset.isInSet(name, schema)) {
                    SchemasetCustom match = findSchemaset(schema, schemaset);
                    if (match != null) {
View Full Code Here


                }
            }
        }
       
        // next check all child customizations
        LazyList childs = custom.getChildren();
        for (int i = 0; i < childs.size(); i++) {
            Object child = childs.get(i);
            if (child instanceof SchemaCustom) {
                String name = ((SchemaCustom)child).getName();
                if (name != null) {
                    try {
                        fileset.add(new UrlResolver(name, new URL(base, name)));
View Full Code Here

        m_uriPrefixDefaults = new HashMap();
        m_keyObjects = new ArrayList();
        m_objectBindings = new HashMap();
        m_referenceUriBinding = new InsertionOrderedMap();
        m_nsRootUris = new InsertionOrderedSet();
        m_formats = new LazyList();
    }
View Full Code Here

        m_baseName = base;
        m_decorators = decorators;
        m_useInnerClasses = inner;
        m_importsTracker = new ImportsTracker(pack.getName());
        m_outerClass = null;
        m_inners = new LazyList();
        m_nameSet = new UniqueNameSet();
        m_nameSet.add(name);
        m_importsTracker.addLocalType(name, getFullName());
    }
View Full Code Here

        m_baseName = null;
        m_decorators = context.m_decorators;
        m_useInnerClasses = true;
        m_importsTracker = context.m_importsTracker;
        m_outerClass = context;
        m_inners = new LazyList();
        m_nameSet = new UniqueNameSet();
        ClassHolder scan = this;
        while (scan != null) {
            m_nameSet.add(scan.getName());
            scan = scan.m_outerClass;
View Full Code Here

     * @return <code>true</code> if valid, <code>false</code> if not
     */
    public boolean validate(ValidationContext vctx) {
        boolean valid = super.validate(vctx);
        if (valid) {
            LazyList children = getChildren();
            for (int i = 0; i < children.size(); i++) {
                Object child = children.get(i);
                if (child instanceof SchemasetCustom) {
                    if (!((SchemasetCustom)child).validate(vctx)) {
                        valid = false;
                    }
                }
View Full Code Here

     *
     * @param parent
     */
    public NestingCustomBase(NestingCustomBase parent) {
        super(parent);
        m_children = new LazyList();
    }
View Full Code Here

                // apply customizations to extension
                exten.setTypeReplacer(this);
                exten.setOverrideType(m_type);
               
                // match and apply child customizations
                LazyList childs = getChildren();
                for (int i = 0; i < childs.size(); i++) {
                    ComponentCustom child = (ComponentCustom)childs.get(i);
                    SchemaPath path = child.buildPath(vctx);
                    if (path != null) {
                        List matches = path.partialMatchMultiple(0, path.getPathLength()-1, exten.getComponent());
                        if (matches.size() == 0) {
                            vctx.addWarning("No matches found for customization expression", child);
View Full Code Here

        m_namespace = uri;
        m_elementDefault = dflt;
        m_referencedNamespaces = new InsertionOrderedSet();
        m_usedNamespaces = new InsertionOrderedSet();
        m_binding = new BindingElement();
        m_mappings = new LazyList();
    }
View Full Code Here

     *
     * @param type element type
     */
    protected OpenAttrBase(int type) {
      super(type);
        m_children = new LazyList();
    }
View Full Code Here

TOP

Related Classes of org.jibx.util.LazyList

Copyright © 2018 www.massapicom. 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.