net.sf.jeters.components
Class RegExReplacer.DescriptionEntry

java.lang.Object
  extended by net.sf.jeters.components.RegExReplacer.DescriptionEntry
Enclosing class:
RegExReplacer

protected static class RegExReplacer.DescriptionEntry
extends java.lang.Object

an internally used class containing the necessary information for description lists.


Field Summary
 RegExReplacer.DescriptionList elementDescriptionList
          the descriptions of the elements.
 int maxRating
          the highest individual rating that has been assigned to this description, >= 0.
 int rating
          sum of all individual ratings, >= 0.
 java.lang.String string
          the description string itself.
 
Constructor Summary
RegExReplacer.DescriptionEntry(java.lang.String string, int rating, int maxRating)
          constructor which sets elementDescriptionList to null
RegExReplacer.DescriptionEntry(java.lang.String string, int rating, int maxRating, RegExReplacer.DescriptionList elementDescriptionList)
          full constructor
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

string

public java.lang.String string
the description string itself.


rating

public int rating
sum of all individual ratings, >= 0.


maxRating

public int maxRating
the highest individual rating that has been assigned to this description, >= 0.


elementDescriptionList

public RegExReplacer.DescriptionList elementDescriptionList
the descriptions of the elements. (if at least one of the replacements with this description was a replacement group, otherwise null)

Constructor Detail

RegExReplacer.DescriptionEntry

public RegExReplacer.DescriptionEntry(java.lang.String string,
                                      int rating,
                                      int maxRating)
constructor which sets elementDescriptionList to null


RegExReplacer.DescriptionEntry

public RegExReplacer.DescriptionEntry(java.lang.String string,
                                      int rating,
                                      int maxRating,
                                      RegExReplacer.DescriptionList elementDescriptionList)
full constructor