| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Affixes | |
| private final int | |
| private final TextCase | |
| private final int | |
| public static final int | FORM_COUNT
A form that only returns the number of names that would be rendered |
| public static final int | FORM_LONG
The long form with given and family name |
| public static final int | FORM_SHORT
The short form with family name and non-dropping particles only |
| private final int | |
| private final Affixes | |
| private final int | |
| private final TextCase | |
| private final SNameInheritableAttributes | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | Returns: true if the delimiter was actually appendedthe token buffer to append to buffer, String the mode (i.e. "contextual", "always",
"after-inverted-name", or "never") delimiterPrecedes, boolean true if the name preceding the delimiter
has been inverted as a result of the name-as-sort-order attributetrue if the delimiter should actually be
appended in contextual modeAppend |
| public int | |
| public String | |
| public void | render(RenderContext ctx)
Implements de. Renders the element |
| private TokenBuffer | Returns: the rendered namethe name to render name, boolean true if given name and family name should be
swapped (i.e. "Family, Given" instead of "Given Family")the string to append to initials initializeWith, boolean true if given names should be converted to initialsdelimiter for name-parts that have switched positions
as a result of sortSeparator, RenderContext name-as-sort-orderthe current render context ctx)Render a single name |
| private static boolean | Returns: true if given name and family name should be separated by
whitespace (or if the given string is null, in which case it is
undecidable, and the default is true), or false if this
is normally not the case for the string's language.the string to check s)Check if a string only contains characters from a language where the given name and the family name are typically separated by whitespace. |
| delimiter | back to summary |
|---|---|
| private final String delimiter | |
| familyAffixes | back to summary |
|---|---|
| private final Affixes familyAffixes | |
| familyFormattingAttributes | back to summary |
|---|---|
| private final int familyFormattingAttributes | |
| familyTextCase | back to summary |
|---|---|
| private final TextCase familyTextCase | |
| form | back to summary |
|---|---|
| private final int form | |
| FORM_COUNT | back to summary |
|---|---|
| public static final int FORM_COUNT A form that only returns the number of names that would be rendered | |
| FORM_LONG | back to summary |
|---|---|
| public static final int FORM_LONG The long form with given and family name | |
| FORM_SHORT | back to summary |
|---|---|
| public static final int FORM_SHORT The short form with family name and non-dropping particles only | |
| formattingAttributes | back to summary |
|---|---|
| private final int formattingAttributes | |
| givenAffixes | back to summary |
|---|---|
| private final Affixes givenAffixes | |
| givenFormattingAttributes | back to summary |
|---|---|
| private final int givenFormattingAttributes | |
| givenTextCase | back to summary |
|---|---|
| private final TextCase givenTextCase | |
| inheritableAttributes | back to summary |
|---|---|
| private final SNameInheritableAttributes inheritableAttributes | |
| variable | back to summary |
|---|---|
| private final String variable | |
| SName | back to summary |
|---|---|
| public SName(Node node, String variable) Create the name element from an XML node | |
| appendDelimiter | back to summary |
|---|---|
| private boolean appendDelimiter(TokenBuffer buffer, String delimiterPrecedes, boolean nameAsSort, boolean contextual) Append
| |
| getForm | back to summary |
|---|---|
| public int getForm() Get the form of the name to render
| |
| getVariable | back to summary |
|---|---|
| public String getVariable() Get the name variable this element selects
| |
| render | back to summary |
|---|---|
| public void render(RenderContext ctx) Implements de. Doc from de. Renders the element
| |
| render | back to summary |
|---|---|
| private TokenBuffer render(CSLName name, boolean nameAsSort, String initializeWith, boolean initialize, String sortSeparator, RenderContext ctx) Render a single name
| |
| shouldBeSeparatedBySpace | back to summary |
|---|---|
| private static boolean shouldBeSeparatedBySpace(String s) Check if a string only contains characters from a language where the
given name and the family name are typically separated by whitespace. As
soon as a character is found from a language where names typically don't
include spaces, the method returns The list of languages that don't include spaces in names comes from Claude AI and ChatGPT. There is also a nice discussion in the CSL discussion forum.
| |