CSLStyleLoader and build-time components in build-support/src/main/java/CitationStyleCatalogGenerator.java.
| Modifier and Type | Class and Description |
|---|---|
| public static record | CSLStyleUtils.
Style information record (style id, style class, title, numeric nature, bibliography presence, bibliography sort order, bibliography hanging indent) for a citation style. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private static final String | |
| private static final XMLInputFactory |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Optional | Returns: Optional containing the CitationStyle if valid, empty otherwisePath to the CSL file styleFile)Creates a CitationStyle from a file path. |
| private static Optional | Returns: Optional containing the CitationStyle if valid, empty otherwiseCreates a CitationStyle from the input stream. |
| public static boolean | isCitationStyleFile(String styleFile)
Checks if the given style file is a CitationStyle based on its extension |
| public static Optional | Returns: Optional containing the StyleInfo if valid, empty otherwiseThe filename of the style (for logging) filename, String The XML content of the style content)Parses the style information from a style content using StAX. |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| STYLES_ROOT | back to summary |
|---|---|
| private static final String STYLES_ROOT | |
| XML_INPUT_FACTORY | back to summary |
|---|---|
| private static final XMLInputFactory XML_INPUT_FACTORY | |
| CSLStyleUtils | back to summary |
|---|---|
| private CSLStyleUtils() | |
| createCitationStyleFromFile | back to summary |
|---|---|
| public static Optional Creates a CitationStyle from a file path.
| |
| createCitationStyleFromSource | back to summary |
|---|---|
| private static Optional Creates a CitationStyle from the input stream.
| |
| isCitationStyleFile | back to summary |
|---|---|
| public static boolean isCitationStyleFile(String styleFile) Checks if the given style file is a CitationStyle based on its extension | |
| parseStyleInfo | back to summary |
|---|---|
| public static Optional Parses the style information from a style content using StAX.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | hasBibliography
Record Component accessed by hasBibliography(). |
| private final boolean | hasBibliographySortOrder
Record Component accessed by hasBibliographySortOrder(). |
| private final boolean | isNumericStyle
Record Component accessed by isNumericStyle(). |
| private final String | shortTitle
Record Component accessed by shortTitle(). |
| private final String | styleClass
Record Component accessed by styleClass(). |
| private final String | |
| private final String | |
| private final boolean | usesHangingIndent
Record Component accessed by usesHangingIndent(). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public boolean | |
| public boolean | |
| public final int | |
| public boolean | |
| public String | |
| public String | |
| public String | |
| public String | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public boolean |
| hasBibliography | back to summary |
|---|---|
| private final boolean hasBibliography Record Component accessed by hasBibliography(). | |
| hasBibliographySortOrder | back to summary |
|---|---|
| private final boolean hasBibliographySortOrder Record Component accessed by hasBibliographySortOrder(). | |
| isNumericStyle | back to summary |
|---|---|
| private final boolean isNumericStyle Record Component accessed by isNumericStyle(). | |
| shortTitle | back to summary |
|---|---|
| private final String shortTitle Record Component accessed by shortTitle(). | |
| styleClass | back to summary |
|---|---|
| private final String styleClass Record Component accessed by styleClass(). | |
| styleId | back to summary |
|---|---|
| private final String styleId Record Component accessed by styleId(). | |
| title | back to summary |
|---|---|
| private final String title Record Component accessed by title(). | |
| usesHangingIndent | back to summary |
|---|---|
| private final boolean usesHangingIndent Record Component accessed by usesHangingIndent(). | |
| StyleInfo | back to summary |
|---|---|
| public StyleInfo(String styleId, String styleClass, String title, String shortTitle, boolean isNumericStyle, boolean hasBibliography, boolean hasBibliographySortOrder, boolean usesHangingIndent) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hasBibliography | back to summary |
|---|---|
| public boolean hasBibliography() Record Component getter of hasBibliography. | |
| hasBibliographySortOrder | back to summary |
|---|---|
| public boolean hasBibliographySortOrder() Record Component getter of hasBibliographySortOrder. | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| isNumericStyle | back to summary |
|---|---|
| public boolean isNumericStyle() Record Component getter of isNumericStyle. | |
| shortTitle | back to summary |
|---|---|
| public String shortTitle() Record Component getter of shortTitle. | |
| styleClass | back to summary |
|---|---|
| public String styleClass() Record Component getter of styleClass. | |
| styleId | back to summary |
|---|---|
| public String styleId() Record Component getter of styleId. | |
| title | back to summary |
|---|---|
| public String title() Record Component getter of title. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| usesHangingIndent | back to summary |
|---|---|
| public boolean usesHangingIndent() Record Component getter of usesHangingIndent. | |