|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<RegExReplacer.DescriptionEntry>
net.sf.jeters.components.RegExReplacer.DescriptionList
protected static class RegExReplacer.DescriptionList
an internally used class representing a description list. (May be a tree-like structure, due to elementDescriptionList attributes.)
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
protected |
RegExReplacer.DescriptionList()
|
Method Summary | |
---|---|
boolean |
add(RegExReplacer.DescriptionEntry newEntry)
own add-method that either adds a new description to the description list or modifies an existing description (increasing the rating of the existing description entry, modify the elementDescriptionList). |
boolean |
add(java.lang.String descriptionString,
int rating)
add-method for descriptions of single replacements. |
boolean |
add(java.lang.String descriptionString,
RegExReplacer.DescriptionList elementDescriptionList)
add-method for descriptions of replacement groups. |
boolean |
addAll(java.util.Collection<? extends RegExReplacer.DescriptionEntry> collection)
own addAll-method that calls add(DescriptionEntry) for all elements of the collection |
java.lang.String |
toString()
own toString-method that prints all descriptions sorted by rating. |
java.lang.String |
toString(int maxNumberDescriptions,
int maxNumberElementDescriptions,
int minSingleRating,
int minTotalRating)
parameterized toString-method that prints the descriptions sorted by rating. |
Methods inherited from class java.util.ArrayList |
---|
add, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
protected RegExReplacer.DescriptionList()
Method Detail |
---|
public boolean add(RegExReplacer.DescriptionEntry newEntry)
add
in interface java.util.Collection<RegExReplacer.DescriptionEntry>
add
in interface java.util.List<RegExReplacer.DescriptionEntry>
add
in class java.util.ArrayList<RegExReplacer.DescriptionEntry>
public boolean add(java.lang.String descriptionString, int rating)
descriptionString
- the text of the description you want to add to the list.rating
- the rating of this description
(compare rating-attribute in RegExReplacer.Replacement
).
public boolean add(java.lang.String descriptionString, RegExReplacer.DescriptionList elementDescriptionList)
descriptionString
- the text of the group's description.elementDescriptionList
- description list for the group's elements.
public boolean addAll(java.util.Collection<? extends RegExReplacer.DescriptionEntry> collection)
addAll
in interface java.util.Collection<RegExReplacer.DescriptionEntry>
addAll
in interface java.util.List<RegExReplacer.DescriptionEntry>
addAll
in class java.util.ArrayList<RegExReplacer.DescriptionEntry>
public java.lang.String toString()
toString
in class java.util.AbstractCollection<RegExReplacer.DescriptionEntry>
public java.lang.String toString(int maxNumberDescriptions, int maxNumberElementDescriptions, int minSingleRating, int minTotalRating)
maxNumberDescriptions
- the maximum number of descriptions in the resulting string.
If there are more descriptions, those with the highest rating
will be printed, followed by three dots.
A value of -1 an unlimited number of descriptions.maxNumberElementDescriptions
- equivalent of maxNumberDescriptions for the descriptions in brackets.minSingleRating
- all descriptions whose maxRating value is lower than minSingleRating will be omitted.minTotalRating
- all descriptions whose rating value is lower than minTotalRating will be omitted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |