public class SplitNameProvider extends Object implements NameProvider
| Constructor and Description |
|---|
SplitNameProvider(NameProvider nameProvider,
Pattern pattern,
int fromStart,
int fromEnd,
String delimiter)
Create a new split name provider
|
SplitNameProvider(NameProvider nameProvider,
String pattern,
int fromStart,
int fromEnd,
String delimiter)
Create a new split name provider
Actually calls SplitNameProvider(NameProvider, Pattern, int, int, String) with
Pattern.compile(String) |
public SplitNameProvider(NameProvider nameProvider, Pattern pattern, int fromStart, int fromEnd, String delimiter)
The parameters fromStart and fromEnd actually define how much to take from the start and from the end.
nameProvider - the provider of the name to splitpattern - the patternfromStart - the number of tokens to take from the startfromEnd - the number of tokens to take from the enddelimiter - the delimiterpublic SplitNameProvider(NameProvider nameProvider, String pattern, int fromStart, int fromEnd, String delimiter)
SplitNameProvider(NameProvider, Pattern, int, int, String) with
Pattern.compile(String)nameProvider - the provider of the name to splitpattern - the patternfromStart - the number of tokens to take from the startfromEnd - the number of tokens to take from the enddelimiter - the delimiterpublic String getName(ItemDescriptor descriptor)
getName in interface NameProvider