Package org.mifosplatform.mix.data

Examples of org.mifosplatform.mix.data.NamespaceData


    @Before
    public void setUp() throws Exception {

        this.readNamespaceService = Mockito.mock(NamespaceReadPlatformServiceImpl.class);
        when(this.readNamespaceService.retrieveNamespaceByPrefix(Matchers.anyString())).thenReturn(
                new NamespaceData(1l, "mockedprefix", "mockedurl"));

    }
View Full Code Here


        @Override
        public NamespaceData mapRow(final ResultSet rs, @SuppressWarnings("unused") final int rowNum) throws SQLException {
            final long id = rs.getLong("id");
            final String prefix = rs.getString("prefix");
            final String url = rs.getString("url");
            return new NamespaceData(id, prefix, url);
        }
View Full Code Here

                "start date and end date should not be null"); }

        final String prefix = taxonomy.getNamespace();
        String qname = taxonomy.getName();
        if (prefix != null && (!prefix.isEmpty())) {
            final NamespaceData ns = this.readNamespaceService.retrieveNamespaceByPrefix(prefix);
            if (ns != null) {

                this.root.addNamespace(prefix, ns.url());
            }
            qname = prefix + ":" + taxonomy.getName();

        }
        final Element xmlElement = rootElement.addElement(qname);
View Full Code Here

TOP

Related Classes of org.mifosplatform.mix.data.NamespaceData

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.