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

public Class StripPeriods

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, de.undercouch.citeproc.csl.internal.token.TextToken, .Token, de.undercouch.citeproc.helper.NodeHelper, org.apache.commons.lang3.StringUtils, org.w3c.dom.Node, java.util.function.Consumer

Wraps around a render function and removes all periods from its result
Author
Michel Kraemer

Field Summary

Modifier and TypeField and Description
private final boolean

Constructor Summary

AccessConstructor and Description
public
StripPeriods()

Default constructor that does not strip periods

public
StripPeriods(Node
the XML node
node
)

Parses an XML node and determines if periods should be removed or not

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.

private Token

Returns:

the new token with periods removed
transform
(Token
the token
t
)

Remove all periods from a token's text

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

stripPeriodsback to summary
private final boolean stripPeriods

Constructor Detail

StripPeriodsback to summary
public StripPeriods()

Default constructor that does not strip periods

StripPeriodsback to summary
public StripPeriods(Node node)

Parses an XML node and determines if periods should be removed or not

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
transformback to summary
private Token transform(Token t)

Remove all periods from a token's text

Parameters
t:Token

the token

Returns:Token

the new token with periods removed