public class ConfigurableFilenamePolicy.Builder.ExtensionSegment extends ConfigurableFilenamePolicy.Builder.MetadataSegment implements ConfigurableFilenamePolicy.Segment
FileExtensionMap
and
append the first extension found (or "dat").
If the entry to format is an ITransformableAggregationEntry
, this segment
will expand to the transformed format (if applicable). This behaviour
can be supressed using the original
option.maxlength, raw
Constructor and Description |
---|
ExtensionSegment(String... options) |
Modifier and Type | Method and Description |
---|---|
String |
getContent(IAggregationEntry entry)
Return the (unprocessed) string for this entry.
|
protected boolean |
handleOption(String option)
Parse the given option.
|
append
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append
public ExtensionSegment(String... options)
protected boolean handleOption(String option)
ConfigurableFilenamePolicy.Builder.MetadataSegment
handleOption
in class ConfigurableFilenamePolicy.Builder.MetadataSegment
option
- The option. Currently supported strings are
raw
to set the ConfigurableFilenamePolicy.Builder.MetadataSegment.raw
flag or any
positive decimal integer to set the ConfigurableFilenamePolicy.Builder.MetadataSegment.maxlength
option.true
iff the method handled the optionpublic String getContent(IAggregationEntry entry)
ConfigurableFilenamePolicy.Builder.MetadataSegment
getContent
in class ConfigurableFilenamePolicy.Builder.MetadataSegment
Copyright © 2017 TextGrid. All rights reserved.