Logo Search packages:      
Sourcecode: jabref-plugin-oo version File versions  Download package

void net::sf::jabref::oo::OOBibStyle::handleStructureLine ( String  line  )  throws IOException [inline, private]

Parse a line providing bibliography structure information for an entry type.

Parameters:
line The string containing the structure description.
Exceptions:
IOException 

Definition at line 242 of file OOBibStyle.java.

                                                                     {
        int index = line.indexOf("=");
        if ((index > 0) && (index < line.length()-1)) {
            String formatString = line.substring(index+1);
            //System.out.println("'"+line.substring(0, index)+"' : '"+formatString+"'");
            boolean setDefault = line.substring(0, index).equals(DEFAULT_MARK);
            String type = line.substring(0, index);
            Short typeS;
            try {
                /*typeS = new Short(Short.parseShort(type));
                OOBibFormatParser parser = new OOBibFormatParser(new StringReader(formatString));
                PropertyValue[][] layout = parser.parse();*/
                Layout layout = new LayoutHelper(new StringReader(formatString)).
                        getLayoutFromText(Globals.FORMATTER_PACKAGE);
                if (setDefault)
                    defaultBibLayout = layout;
                else
                    bibLayout.put(type.toLowerCase(), layout);

            } catch (Exception ex) {
                ex.printStackTrace();

            }
        }
    }


Generated by  Doxygen 1.6.0   Back to index