Top Description Fields Constructors Methods
de.undercouch.citeproc.csl.internal

public Class SCitationLayout

extends SRenderingElementContainerElement
Class Inheritance
Imports
de.undercouch.citeproc.csl.CSLCitationItem, de.undercouch.citeproc.csl.internal.behavior.Affixes, .FormattingAttributes, de.undercouch.citeproc.helper.NodeHelper, org.apache.commons.lang3.CharSet, org.w3c.dom.Node, java.util.regex.Pattern

A layout element inside a citation element in a style file
Author
Michel Kraemer

Field Summary

Modifier and TypeField and Description
private final Affixes
private final String
private final int
private static final Pattern
private static final CharSet
private static final CharSet
private static final Pattern

Constructor Summary

AccessConstructor and Description
public
SCitationLayout(Node
the XML node
node
)

Construct the layout element from an XML node

Method Summary

Modifier and TypeMethod and Description
private static boolean

Returns:

true if we need to append a space character
needsAppendSpace
(String
the prefix
prefix
)

Check if we need to append a space character to the given prefix

private static boolean

Returns:

true if we need to prepend a space character
needsPrependSpace
(String
the suffix
suffix
)

Check if we need to prepend a space character to the given suffix

public void
private void

Field Detail

affixesback to summary
private final Affixes affixes
delimiterback to summary
private final String delimiter
formattingAttributesback to summary
private final int formattingAttributes
IGNORE_ENDback to summary
private static final Pattern IGNORE_END
PUNCTUATION_ENDback to summary
private static final CharSet PUNCTUATION_END
PUNCTUATION_STARTback to summary
private static final CharSet PUNCTUATION_START
TRIM_ENDback to summary
private static final Pattern TRIM_END

Constructor Detail

SCitationLayoutback to summary
public SCitationLayout(Node node)

Construct the layout element from an XML node

Parameters
node:Node

the XML node

Method Detail

needsAppendSpaceback to summary
private static boolean needsAppendSpace(String prefix)

Check if we need to append a space character to the given prefix

Parameters
prefix:String

the prefix

Returns:boolean

true if we need to append a space character

needsPrependSpaceback to summary
private static boolean needsPrependSpace(String suffix)

Check if we need to prepend a space character to the given suffix

Parameters
suffix:String

the suffix

Returns:boolean

true if we need to prepend a space character

renderback to summary
public void render(RenderContext ctx)

Overrides de.undercouch.citeproc.csl.internal.SRenderingElementContainerElement.render.

Implements de.undercouch.citeproc.csl.internal.SElement.render.

Doc from de.undercouch.citeproc.csl.internal.SElement.render.

Renders the element

Annotations
@Override
renderInternalback to summary
private void renderInternal(RenderContext ctx)