public abstract class NameAbbreviator extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
NameAbbreviator.DropElementAbbreviator
Abbreviator that drops starting path elements.
|
private static class |
NameAbbreviator.MaxElementAbbreviator
Abbreviator that drops starting path elements.
|
private static class |
NameAbbreviator.NOPAbbreviator
Abbreviator that simply appends full name to buffer.
|
private static class |
NameAbbreviator.PatternAbbreviator
Pattern abbreviator.
|
private static class |
NameAbbreviator.PatternAbbreviatorFragment
Fragment of an pattern abbreviator.
|
Modifier and Type | Field and Description |
---|---|
private static NameAbbreviator |
DEFAULT
Default (no abbreviation) abbreviator.
|
Constructor and Description |
---|
NameAbbreviator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
abbreviate(int nameStart,
StringBuffer buf)
Abbreviates a name in a StringBuffer.
|
static NameAbbreviator |
getAbbreviator(String pattern)
Gets an abbreviator.
|
static NameAbbreviator |
getDefaultAbbreviator()
Gets default abbreviator.
|
private static final NameAbbreviator DEFAULT
public NameAbbreviator()
public static NameAbbreviator getAbbreviator(String pattern)
pattern
- abbreviation pattern.public static NameAbbreviator getDefaultAbbreviator()
public abstract void abbreviate(int nameStart, StringBuffer buf)
nameStart
- starting position of name in buf.buf
- buffer, may not be null.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses