Package org.apache.hivemind.schema.impl

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


                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


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

                if (s.getModuleId().equals(_md.getModuleId()))
                    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("hivemind.test.parse", s.getModuleId());
        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, 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, 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, null, schema);

        ElementImpl element = new ElementImpl();
        element.setElementName("fred");
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

        Resource r = new ClasspathResource(getClassResolver(), "/foo/bar");
        Location l1 = new LocationImpl(r, 20);
        Location l2 = new LocationImpl(r, 97);

        SchemaImpl s1 = new SchemaImpl();
        s1.setId("bar");
        s1.setLocation(l1);

        SchemaImpl s2 = new SchemaImpl();
        s2.setId("bar");
        s2.setLocation(l2);

        interceptLogging(md.getClass().getName());

        md.addSchema(s1);
        md.addSchema(s2);
View Full Code Here

*/
public class TestRegistryInfrastructureConstructor extends HiveMindTestCase
{
    public void testFound()
    {
        SchemaImpl schema = new SchemaImpl();
        schema.setId("Baz");

        DefaultErrorHandler errorHandler = new DefaultErrorHandler();

        ModuleDescriptor fooBar = new ModuleDescriptor(null, errorHandler);
        fooBar.setModuleId("foo.bar");
View Full Code Here

        MockControl ehControl = newControl(ErrorHandler.class);
        ErrorHandler eh = (ErrorHandler) ehControl.getMock();

        Log log = LogFactory.getLog(TestRegistryInfrastructureConstructor.class);

        SchemaImpl schema = new SchemaImpl();
        schema.setId("Baz");
        schema.setVisibility(Visibility.PRIVATE);

        Location l = newLocation();

        eh.error(log, ImplMessages.schemaNotVisible("foo.bar.Baz", "zip.zoop"), l, null);
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.