Package org.apache.hivemind.schema.impl

Examples of org.apache.hivemind.schema.impl.SchemaImpl


    }

    private void enterSchema(String elementName)
    {
        SchemaImpl schema = new SchemaImpl();

        push(elementName, schema, STATE_SCHEMA);

        checkAttributes();

        String id = getValidatedAttribute("id", ID_PATTERN, "id-format");

        schema.setId(id);

        Visibility visibility = (Visibility) getEnumAttribute("visibility", VISIBILITY_MAP);

        if (visibility != null)
            schema.setVisibility(visibility);

        _moduleDescriptor.addSchema(schema);
    }
View Full Code Here


        if (size(md.getDependencies()) > 0)
            _assembly.addPostProcessor(new ModuleDependencyChecker(md));

        for (Iterator schemas = md.getSchemas().iterator(); schemas.hasNext();)
        {
            SchemaImpl schema = (SchemaImpl) schemas.next();

            schema.setModule(module);

            _schemas.put(IdUtils.qualify(id, schema.getId()), schema);
        }

        _modules.put(id, module);

        _moduleDescriptors.put(id, md);
View Full Code Here

                Element servicePoint = getServicePointElement(spd);

                module.appendChild(servicePoint);

                SchemaImpl s = (SchemaImpl) spd.getParametersSchema();

                if (s != null && s.getId() != null)
                    addSchema(module, s, "schema");
            }
        }
    }
View Full Code Here

                Element configurationPoint = getConfigurationPointElement(cpd);

                module.appendChild(configurationPoint);

                SchemaImpl s = (SchemaImpl) cpd.getContributionsSchema();

                if (s != null && s.getId() != null)
                    addSchema(module, s, "schema");
            }
        }
    }
View Full Code Here

    {
        Collection schemas = _md.getSchemas();

        for (Iterator i = schemas.iterator(); i.hasNext();)
        {
            SchemaImpl s = (SchemaImpl) i.next();

            addSchema(module, s, "schema");
        }
    }
View Full Code Here

        XmlResourceProcessor p = new XmlResourceProcessor(_resolver, eh);

        ModuleDescriptor md = p.processResource(location);

        SchemaImpl s = (SchemaImpl) md.getSchema("PrivateSchema");

        assertEquals(Visibility.PRIVATE, s.getVisibility());
    }
View Full Code Here

        em.addRule(rule);

        em.addRule(new InvokeParentRule("addElement"));

        SchemaImpl schema = new SchemaImpl();
        schema.addElementModel(em);

        SchemaProcessorImpl p = new SchemaProcessorImpl(null, schema);

        ElementImpl element = new ElementImpl();
        element.setElementName("fred");
View Full Code Here

        em.addRule(rule);

        em.addRule(new InvokeParentRule("addElement"));

        SchemaImpl schema = new SchemaImpl();
        schema.addElementModel(em);

        SchemaProcessorImpl p = new SchemaProcessorImpl(null, schema);

        ElementImpl element = new ElementImpl();
        element.setElementName("fred");
View Full Code Here

        em.addRule(rule);

        em.addRule(new InvokeParentRule("addElement"));

        SchemaImpl schema = new SchemaImpl();
        schema.addElementModel(em);

        SchemaProcessorImpl p = new SchemaProcessorImpl(null, schema);

        ElementImpl element = new ElementImpl();
        element.setElementName("fred");
View Full Code Here

    private void beginSchema(String elementName)
    {
        if (elementName.equals("element"))
        {
            SchemaImpl schema = (SchemaImpl) peekObject();

            schema.addElementModel(enterElement(elementName));
            return;
        }

        unexpectedElement(elementName);
    }
View Full Code Here

TOP

Related Classes of org.apache.hivemind.schema.impl.SchemaImpl

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.