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

public Class SNames

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.internal.RenderContext, .SElement, de.undercouch.citeproc.csl.internal.behavior.Affixes, .FormattingAttributes, de.undercouch.citeproc.helper.NodeHelper, org.w3c.dom.Node, .NodeList, java.util.ArrayList, .List

A names element from a style file
Author
Michel Kraemer

Field Summary

Modifier and TypeField and Description
private final Affixes
private final List<SElement>
private final int
private final SSubstitute
private final String

Constructor Summary

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

Creates the names element from an XML node

public
SNames(Node
the XML node
node
,
String
the value of the variable attribute
variableAttribute
,
boolean
true if the substitute child element should be parsed, false if it should be ignored
parseSubstitute
)

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

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the attribute value
getVariableAttribute
()

Get the value of the variable attribute

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

Field Detail

affixesback to summary
private final Affixes affixes
elementsback to summary
private final List<SElement> elements
formattingAttributesback to summary
private final int formattingAttributes
substituteback to summary
private final SSubstitute substitute
variableAttributeback to summary
private final String variableAttribute

Constructor Detail

SNamesback to summary
public SNames(Node node)

Creates the names element from an XML node

Parameters
node:Node

the XML node

SNamesback to summary
public SNames(Node node, String variableAttribute, boolean parseSubstitute)

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

Parameters
node:Node

the XML node

variableAttribute:String

the value of the variable attribute

parseSubstitute:boolean

true if the substitute child element should be parsed, false if it should be ignored

Method Detail

getVariableAttributeback to summary
public String getVariableAttribute()

Get the value of the variable attribute

Returns:String

the attribute value

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)