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

public Class CollectingVariableListener

extends Object
implements VariableListener
Class Inheritance
All Implemented Interfaces
de.undercouch.citeproc.csl.internal.VariableListener
Imports
de.undercouch.citeproc.csl.CSLDate, .CSLName, java.util.HashSet, .Set

A variable listener that collects the names of all variables fetched from the render context
Author
Michel Kraemer

Field Summary

Modifier and TypeField and Description
private final Set<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Set<String>

Returns:

the set of variables
getCalled
()

Get the set of variables fetched from the render context

public void
onFetchDateVariable(String name, CSLDate value)

Implements de.undercouch.citeproc.csl.internal.VariableListener.onFetchDateVariable.

Will be called when a date variable is fetched from the context

public void
onFetchNameVariable(String name, CSLName[] value)

Implements de.undercouch.citeproc.csl.internal.VariableListener.onFetchNameVariable.

Will be called when a name variable is fetched from the context

public void
onFetchStringVariable(String name, String value)

Implements de.undercouch.citeproc.csl.internal.VariableListener.onFetchStringVariable.

Will be called when a string variable is fetched from the context

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

calledback to summary
private final Set<String> called

Constructor Detail

CollectingVariableListenerback to summary
public CollectingVariableListener()

Method Detail

getCalledback to summary
public Set<String> getCalled()

Get the set of variables fetched from the render context

Returns:Set<String>

the set of variables

onFetchDateVariableback to summary
public void onFetchDateVariable(String name, CSLDate value)

Implements de.undercouch.citeproc.csl.internal.VariableListener.onFetchDateVariable.

Doc from de.undercouch.citeproc.csl.internal.VariableListener.onFetchDateVariable.

Will be called when a date variable is fetched from the context

Annotations
@Override
onFetchNameVariableback to summary
public void onFetchNameVariable(String name, CSLName[] value)

Implements de.undercouch.citeproc.csl.internal.VariableListener.onFetchNameVariable.

Doc from de.undercouch.citeproc.csl.internal.VariableListener.onFetchNameVariable.

Will be called when a name variable is fetched from the context

Annotations
@Override
onFetchStringVariableback to summary
public void onFetchStringVariable(String name, String value)

Implements de.undercouch.citeproc.csl.internal.VariableListener.onFetchStringVariable.

Doc from de.undercouch.citeproc.csl.internal.VariableListener.onFetchStringVariable.

Will be called when a string variable is fetched from the context

Annotations
@Override