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

public Class SLabel

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.bibtex.PageParser, .PageRanges, de.undercouch.citeproc.csl.CSLLabel, .CSLName, de.undercouch.citeproc.csl.internal.RenderContext, de.undercouch.citeproc.csl.internal.behavior.Affixes, .StripPeriods, .TextCase, de.undercouch.citeproc.csl.internal.helper.NumberElement, .NumberParser, de.undercouch.citeproc.csl.internal.locale.LTerm, de.undercouch.citeproc.helper.NodeHelper, org.w3c.dom.Node, java.util.List

A label element from a style file
Author
Michel Kraemer

Field Summary

Modifier and TypeField and Description
private final Affixes
private final String
private final StripPeriods
private final TextCase
private final String

Constructor Summary

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

Creates the label element from an XML node

public
SLabel(Node
the XML node
node
,
String
the variable
variable
)

Creates the label element from an XML node but with a different variable

Method Summary

Modifier and TypeMethod and Description
public void
public void
render(RenderContext
the context in which to render
ctx
,
int
the index of the number element to select
nNumberElement
)

Renders this label but selects a different number element if variable equals "number" and has been parsed

private void
renderInternal(RenderContext ctx, int nNumberElement)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

affixesback to summary
private final Affixes affixes
formback to summary
private final String form
stripPeriodsback to summary
private final StripPeriods stripPeriods
textCaseback to summary
private final TextCase textCase
variableback to summary
private final String variable

Constructor Detail

SLabelback to summary
public SLabel(Node node)

Creates the label element from an XML node

Parameters
node:Node

the XML node

SLabelback to summary
public SLabel(Node node, String variable)

Creates the label element from an XML node but with a different variable

Parameters
node:Node

the XML node

variable:String

the variable

Method Detail

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
renderback to summary
public void render(RenderContext ctx, int nNumberElement)

Renders this label but selects a different number element if variable equals "number" and has been parsed

Parameters
ctx:RenderContext

the context in which to render

nNumberElement:int

the index of the number element to select

renderInternalback to summary
private void renderInternal(RenderContext ctx, int nNumberElement)