private static class NameAbbreviator.MaxElementAbbreviator extends NameAbbreviator
Modifier and Type | Field and Description |
---|---|
private int |
count
Maximum number of path elements to output.
|
Constructor and Description |
---|
MaxElementAbbreviator(int count)
Create new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
abbreviate(int nameStart,
StringBuffer buf)
Abbreviate name.
|
getAbbreviator, getDefaultAbbreviator
private final int count
public MaxElementAbbreviator(int count)
count
- maximum number of path elements to output.public void abbreviate(int nameStart, StringBuffer buf)
abbreviate
in class NameAbbreviator
buf
- buffer to append abbreviation.nameStart
- start of name to abbreviate.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses