public abstract class BibtexEntryType extends java.lang.Object implements java.lang.Comparable<BibtexEntryType>
Constructor and Description |
---|
BibtexEntryType() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BibtexEntryType o) |
abstract java.lang.String |
describeRequiredFields() |
abstract java.lang.String |
getName() |
abstract java.lang.String[] |
getOptionalFields() |
java.lang.String[] |
getPrimaryOptionalFields() |
abstract java.lang.String[] |
getRequiredFields() |
java.lang.String[] |
getRequiredFieldsForCustomization()
Get an array of the required fields in a form appropriate for the entry customization
dialog - that is, thie either-or fields together and separated by slashes.
|
static BibtexEntryType |
getStandardType(java.lang.String name)
This method returns the standard BibtexEntryType for the
name of a type, or null if it does not exist.
|
static BibtexEntryType |
getType(java.lang.String name)
This method returns the BibtexEntryType for the name of a type,
or null if it does not exist.
|
java.lang.String[] |
getUtilityFields() |
abstract boolean |
hasAllRequiredFields(BibtexEntry entry,
BibtexDatabase database) |
boolean |
isOptional(java.lang.String field) |
boolean |
isRequired(java.lang.String field) |
boolean |
isVisibleAtNewEntryDialog() |
static void |
loadCustomEntryTypes(JabRefPreferences prefs)
Load all custom entry types from preferences.
|
static void |
removeType(java.lang.String name)
Removes a customized entry type from the type map.
|
static void |
saveCustomEntryTypes(JabRefPreferences prefs)
Iterate through all entry types, and store those that are
custom defined to preferences.
|
public static final BibtexEntryType OTHER
public static final BibtexEntryType ARTICLE
public static final BibtexEntryType BOOKLET
public static final BibtexEntryType INBOOK
public static final BibtexEntryType BOOK
public static final BibtexEntryType INCOLLECTION
public static final BibtexEntryType CONFERENCE
public static final BibtexEntryType INPROCEEDINGS
public static final BibtexEntryType PROCEEDINGS
public static final BibtexEntryType MANUAL
public static final BibtexEntryType TECHREPORT
public static final BibtexEntryType MASTERSTHESIS
public static final BibtexEntryType PHDTHESIS
public static final BibtexEntryType UNPUBLISHED
public static final BibtexEntryType PERIODICAL
public static final BibtexEntryType PATENT
public static final BibtexEntryType STANDARD
public static final BibtexEntryType ELECTRONIC
public static final BibtexEntryType MISC
public static final BibtexEntryType IEEETRANBSTCTL
public static final BibtexEntryType TYPELESS
public static java.util.TreeMap<java.lang.String,BibtexEntryType> ALL_TYPES
public static java.util.TreeMap<java.lang.String,BibtexEntryType> STANDARD_TYPES
public abstract java.lang.String getName()
public int compareTo(BibtexEntryType o)
compareTo
in interface java.lang.Comparable<BibtexEntryType>
public abstract java.lang.String[] getOptionalFields()
public abstract java.lang.String[] getRequiredFields()
public java.lang.String[] getPrimaryOptionalFields()
public abstract java.lang.String describeRequiredFields()
public abstract boolean hasAllRequiredFields(BibtexEntry entry, BibtexDatabase database)
public java.lang.String[] getUtilityFields()
public boolean isRequired(java.lang.String field)
public boolean isOptional(java.lang.String field)
public boolean isVisibleAtNewEntryDialog()
public static BibtexEntryType getType(java.lang.String name)
public static BibtexEntryType getStandardType(java.lang.String name)
public static void removeType(java.lang.String name)
name
- The customized entry type to remove.public static void loadCustomEntryTypes(JabRefPreferences prefs)
public static void saveCustomEntryTypes(JabRefPreferences prefs)
public java.lang.String[] getRequiredFieldsForCustomization()