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

String net::sf::jabref::oo::OOBibStyle::formatField ( String  field,
String  content 
) [inline]

Get the array of elements composing the reference for a given entry type.

Parameters:
bibType The OO type number.
Returns:
The format definition.
public PropertyValue[][] getReferenceFormat(short bibType) { Object o = bibLayout.get(new Short(bibType)); if (o != null) return (PropertyValue[][])o; else return defaultBibLayout; } Format the given field value based on the rules of this bib style.
Parameters:
field The name of the field.
content The unformatted field content.
Returns:
The formatted field value.

Definition at line 328 of file OOBibStyle.java.

                                                            {
        if (allBeforeFormat != null)
            for (int i = 0; i < allBeforeFormat.length; i++) {
                LayoutFormatter formatter = allBeforeFormat[i];
                content = formatter.format(content);
            }

        Object o = formatters.get(field);
        if (o == null)
            return content;
        LayoutFormatter[] form = (LayoutFormatter[])o;
        for (int i = 0; i < form.length; i++) {
            LayoutFormatter formatter = form[i];
            content = formatter.format(content);
        }

        if (allAfterFormat != null)
            for (int i = 0; i < allAfterFormat.length; i++) {
                LayoutFormatter formatter = allAfterFormat[i];
                content = formatter.format(content);
            }

        return content;
    }


Generated by  Doxygen 1.6.0   Back to index