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

public Class Affixes

extends Object
implements Behavior
Class Inheritance
All Implemented Interfaces
de.undercouch.citeproc.csl.internal.behavior.Behavior, java.util.function.BiConsumer
Imports
de.undercouch.citeproc.csl.internal.RenderContext, .TokenBuffer, de.undercouch.citeproc.helper.NodeHelper, org.w3c.dom.Node, java.util.function.Consumer

Wraps around a render function and adds prefixes and suffixes
Author
Michel Kraemer

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
Affixes()

Default constructor without prefix and suffix

public
Affixes(Node
the XML node
node
)

Extract prefix and suffix from an XML node

Method Summary

Modifier and TypeMethod and Description
public void
accept(Consumer<RenderContext> renderFunction, RenderContext ctx)

Implements java.util.function.BiConsumer.accept.

Performs this operation on the given arguments.

public void
applyTo(TokenBuffer
the buffer to modify
buffer
)

Modifies the given token buffer and renders prefix and suffix

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

prefixback to summary
private final String prefix
suffixback to summary
private final String suffix

Constructor Detail

Affixesback to summary
public Affixes()

Default constructor without prefix and suffix

Affixesback to summary
public Affixes(Node node)

Extract prefix and suffix from an XML node

Parameters
node:Node

the XML node

Method Detail

acceptback to summary
public void accept(Consumer<RenderContext> renderFunction, RenderContext ctx)

Implements java.util.function.BiConsumer.accept.

Doc from java.util.function.BiConsumer.accept.

Performs this operation on the given arguments.

Annotations
@Override
applyToback to summary
public void applyTo(TokenBuffer buffer)

Modifies the given token buffer and renders prefix and suffix

Parameters
buffer:TokenBuffer

the buffer to modify