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

public Class SDate

extends Object
implements SRenderingElement
Class Inheritance
All Implemented Interfaces
de.undercouch.citeproc.csl.internal.rendering.SRenderingElement, de.undercouch.citeproc.csl.internal.SElement
Imports
de.undercouch.citeproc.csl.CSLDate, de.undercouch.citeproc.csl.internal.RenderContext, de.undercouch.citeproc.csl.internal.behavior.Affixes, de.undercouch.citeproc.csl.internal.locale.LDate, de.undercouch.citeproc.csl.internal.token.TextToken, .Token, de.undercouch.citeproc.helper.NodeHelper, de.undercouch.citeproc.helper.time.AnyDateParser, org.apache.commons.lang3.ArrayUtils, org.w3c.dom.Node, .NodeList, java.time.temporal.ChronoField, .TemporalAccessor, java.util.ArrayList, .List

A date element from a style file
Author
Michel Kraeemr

Field Summary

Modifier and TypeField and Description
private final Affixes
private final List<SDatePart>
private final String
private final String
private static final String[]
private final String

Constructor Summary

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

Creates the date element from an XML node

Method Summary

Modifier and TypeMethod and Description
private void
merge(RenderContext
a render context holding the first token buffer
left
,
RenderContext
a render context holding the second token buffer
right
,
RenderContext
a render context holding the result buffer
result
,
String
the delimiter to put between left and right
delimiter
)

Merge two token buffers by appending them to a result buffer and using the given delimiter

public void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

affixesback to summary
private final Affixes affixes
datePartsback to summary
private final List<SDatePart> dateParts
datePartsAttrback to summary
private final String datePartsAttr
formback to summary
private final String form
NAMESback to summary
private static final String[] NAMES
variableback to summary
private final String variable

Constructor Detail

SDateback to summary
public SDate(Node node)

Creates the date element from an XML node

Parameters
node:Node

the XML node

Method Detail

mergeback to summary
private void merge(RenderContext left, RenderContext right, RenderContext result, String delimiter)

Merge two token buffers by appending them to a result buffer and using the given delimiter

Parameters
left:RenderContext

a render context holding the first token buffer

right:RenderContext

a render context holding the second token buffer

result:RenderContext

a render context holding the result buffer

delimiter:String

the delimiter to put between left and right

renderback to summary
public void render(RenderContext ctx)

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)