java.lang.Object
net.i2p.i2ptunnel.access.DefinitionParser.DefinitionBuilder
- Enclosing class:
DefinitionParser
Accumulates the parts of one definition.
Field Summary
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAccumulates one access definition while parsing.Method Summary
All MethodsModifier and TypeMethodDescription(package private) voidaddElement(FilterDefinitionElement element) Adds one filter element.(package private) voidaddRecorder(Recorder recorder) Adds one recorder.(package private) FilterDefinitionbuild()Builds the definition from the parts added.(package private) voidsetDefaultThreshold(Threshold threshold) Sets the default threshold, once only.
Field Details
threshold
The default threshold of the definition.elements
The filter elements of the definition.recorders
Constructor Details
DefinitionBuilder
private DefinitionBuilder()Accumulates one access definition while parsing.
Method Details
setDefaultThreshold
Sets the default threshold, once only.- Parameters:
threshold- the threshold to set- Throws:
InvalidDefinitionException- if a threshold was already set
addElement
Adds one filter element.- Parameters:
element- the element to add
addRecorder
build