Package name.abuchen.portfolio.model

Examples of name.abuchen.portfolio.model.ConsumerPriceIndex$ByDate


        Lexer lexer = new Lexer(html);
        List<ConsumerPriceIndex> prices = new DestatisCPIFeed.Visitor().visit(lexer);

        assertThat(prices.size(), equalTo(19 /* years in file */* 12 + 6));

        ConsumerPriceIndex p = prices.get(5);
        assertThat(p.getYear(), equalTo(2012));
        assertThat(p.getMonth(), equalTo(Calendar.JANUARY));
        assertThat(p.getIndex(), equalTo(11150));
    }
View Full Code Here


        manager.add(new Action(Messages.ConsumerPriceIndexMenuDelete)
        {
            @Override
            public void run()
            {
                ConsumerPriceIndex index = (ConsumerPriceIndex) ((IStructuredSelection) indices.getSelection())
                                .getFirstElement();

                if (index == null)
                    return;

                getClient().removeConsumerPriceIndex(index);
                markDirty();

                indices.setInput(getClient().getConsumerPriceIndices());
                refreshChart();
            }
        });

        manager.add(new Action(Messages.ConsumerPriceIndexMenuAdd)
        {
            @Override
            public void run()
            {
                ConsumerPriceIndex index = new ConsumerPriceIndex();
                index.setYear(Calendar.getInstance().get(Calendar.YEAR));
                index.setMonth(Calendar.getInstance().get(Calendar.MONTH));

                getClient().addConsumerPriceIndex(index);
                markDirty();

                indices.setInput(getClient().getConsumerPriceIndices());
View Full Code Here

                return true;

            if (!tag.isEndTag())
            {
                insideRow = true;
                price = new ConsumerPriceIndex();
            }
            else
            {
                insideRow = false;
                columnIndex = -1;
View Full Code Here

TOP

Related Classes of name.abuchen.portfolio.model.ConsumerPriceIndex$ByDate

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.