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

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

Parse a line providing a property name and value.

Parameters:
line The line containing the formatter names.
Exceptions:
IOException 

Definition at line 274 of file OOBibStyle.java.

                                                                                   {
        int index = line.indexOf("=");
        if ((index > 0) && (index <= line.length()-1)) {
            String propertyName = line.substring(0, index).trim();
            String value = line.substring(index+1);
            Object toSet = value;
            if (numPattern.matcher(value).matches()) {
                toSet = Integer.parseInt(value);
            }
            else if (value.toLowerCase().trim().equals("true"))
                toSet = Boolean.TRUE;
            else if (value.toLowerCase().trim().equals("false"))
                toSet = Boolean.FALSE;
            map.put(propertyName, toSet);
        }
    }


Generated by  Doxygen 1.6.0   Back to index