protected abstract class ConfigurableFilenamePolicy.Builder.MetadataSegment extends Object implements ConfigurableFilenamePolicy.Segment
Modifier and Type | Field and Description |
---|---|
protected int |
maxlength
Hint that suggests the maximal number of characters to append for
this segment.
|
protected boolean |
raw
Hint to insert the raw content of the metadata field, without any
translation to safe characters.
|
Constructor and Description |
---|
ConfigurableFilenamePolicy.Builder.MetadataSegment(String... options)
Initializes this segment.
|
Modifier and Type | Method and Description |
---|---|
StringBuilder |
append(StringBuilder builder,
IAggregationEntry entry)
Appends the expansion of this segment for the given entry to the
given builder.
|
abstract String |
getContent(IAggregationEntry entry)
Return the (unprocessed) string for this entry.
|
protected boolean |
handleOption(String option)
Parse the given option.
|
protected boolean raw
protected int maxlength
public ConfigurableFilenamePolicy.Builder.MetadataSegment(String... options)
handleOption(String)
for
each given option.protected boolean handleOption(String option)
public abstract String getContent(IAggregationEntry entry)
public StringBuilder append(StringBuilder builder, IAggregationEntry entry)
ConfigurableFilenamePolicy.Builder.MetadataSegment
implementation calls
getContent(IAggregationEntry)
and postprocesses the
result according to the raw
and maxlength
fields before appending.append
in interface ConfigurableFilenamePolicy.Segment
Copyright © 2014 TextGrid. All Rights Reserved.