com.simonstl.fragment
Class FragmentRule

java.lang.Object
  |
  +--com.simonstl.fragment.FragmentRule

public class FragmentRule
extends java.lang.Object

Each FragmentRule describes a regular expression and the results of the fragmentation it produces, described as a series of child elements. Currently, the series is a simple list. Eventually it may provide for collections (appropriate for the HTML style element and some SVG) and for attribute results. Rules currently don't keep track of which elements they apply to. This may change in future versions.


Field Summary
 java.lang.String matchRegEx
           
 java.util.ArrayList results
           
 
Constructor Summary
FragmentRule(java.lang.String regEx)
           
FragmentRule(java.lang.String regEx, java.util.ArrayList endResults)
           
 
Method Summary
 void addResult(Element resultElement)
           
 void print()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matchRegEx

public java.lang.String matchRegEx

results

public java.util.ArrayList results
Constructor Detail

FragmentRule

public FragmentRule(java.lang.String regEx)

FragmentRule

public FragmentRule(java.lang.String regEx,
                    java.util.ArrayList endResults)
Method Detail

print

public void print()

addResult

public void addResult(Element resultElement)