A B C D E F G I L M N P R S T

A

addResult(DocComponent) - Method in class com.simonstl.fragment.FragmentRule
 
addRule(Element, FragmentRule) - Method in class com.simonstl.fragment.FragmentRules
 
after - Variable in class com.simonstl.fragment.DocComponent
 
append(String) - Method in class com.simonstl.fragment.BufferStack
 
appliesTo - Static variable in class com.simonstl.fragment.RulesLoader
 

B

before - Variable in class com.simonstl.fragment.DocComponent
 
BoolStack - class com.simonstl.fragment.BoolStack.
The BoolStack class stores a stack of Boolean vales so that the FragmentFilter can keep track of which elements in a generated set need fragmenting.
BoolStack() - Constructor for class com.simonstl.fragment.BoolStack
 
BufferStack - class com.simonstl.fragment.BufferStack.
The BufferStack class stores a stack of StringBuffer values so that the FragmentFilter can keep track of multiple buffers during multi-level fragmentation.
BufferStack() - Constructor for class com.simonstl.fragment.BufferStack
 

C

Characters - class com.simonstl.fragment.Characters.
The Characters class stores information about textual fragments.
Characters() - Constructor for class com.simonstl.fragment.Characters
 
characters(char[], int, int) - Method in class com.simonstl.fragment.FragmentFilter
If the current context isn't matched by any rules, this passes text through.
Characters(Characters) - Constructor for class com.simonstl.fragment.Characters
 
Characters(String) - Constructor for class com.simonstl.fragment.Characters
 
clear() - Method in class com.simonstl.fragment.BoolStack
 
clear() - Method in class com.simonstl.fragment.BufferStack
 
clone() - Method in class com.simonstl.fragment.DocComponent
This method is here to provide clone-ability.
com.simonstl.fragment - package com.simonstl.fragment
 
content - Variable in class com.simonstl.fragment.DocComponent
 

D

DocComponent - class com.simonstl.fragment.DocComponent.
The DocComponent abstract class stores information about XML document components in a way which makes it easy use them in a streaming SAX environment.
DocComponent() - Constructor for class com.simonstl.fragment.DocComponent
 

E

Element - class com.simonstl.fragment.Element.
The Element class stores information about elements (and perhaps someday attributes) in a format that supports namespaces, allows the preservation of prefix information, and supports matching on namespace URIs and localNames.
Element(Element) - Constructor for class com.simonstl.fragment.Element
 
Element(String, String) - Constructor for class com.simonstl.fragment.Element
 
Element(String, String, String) - Constructor for class com.simonstl.fragment.Element
 
Element(String, String, String, String) - Constructor for class com.simonstl.fragment.Element
 
endChars() - Method in class com.simonstl.fragment.FragmentFilter
Pops the stack when characters flow from results are finished.
endElement(String, String, String) - Method in class com.simonstl.fragment.FragmentFilter
At the end of the element, break up its content using the regex and report all of it to the recipient.
endElement(String, String, String) - Method in class com.simonstl.fragment.RulesLoader
 
eventComponent(FragmentFilter) - Method in class com.simonstl.fragment.DocComponent
Describes the content for this component as a series of SAX events.
eventComponent(FragmentFilter) - Method in class com.simonstl.fragment.Characters
 
eventComponent(FragmentFilter) - Method in class com.simonstl.fragment.Skip
 
eventComponent(FragmentFilter) - Method in class com.simonstl.fragment.Element
 

F

FilterTester - class com.simonstl.fragment.FilterTester.
This class just takes two arguments - a rules file and a target file.
FilterTester() - Constructor for class com.simonstl.fragment.FilterTester
 
FragmentFilter - class com.simonstl.fragment.FragmentFilter.
This class provides a SAX 2.0 Filter which uses regular expressions to fragment particular elements into smaller labelled components.
FragmentFilter() - Constructor for class com.simonstl.fragment.FragmentFilter
An empty constructor that requires the use of setParent before starting I don't think this works.
FragmentFilter(XMLReader) - Constructor for class com.simonstl.fragment.FragmentFilter
A constructor that takes the parser which will feed it SAX events
FragmentRule - class com.simonstl.fragment.FragmentRule.
Each FragmentRule describes a regular expression and the results of the fragmentation it produces, described as a series of child elements.
FragmentRule(String) - Constructor for class com.simonstl.fragment.FragmentRule
 
FragmentRule(String, ArrayList) - Constructor for class com.simonstl.fragment.FragmentRule
 
FragmentRule(String, ArrayList, boolean) - Constructor for class com.simonstl.fragment.FragmentRule
 
FragmentRules - class com.simonstl.fragment.FragmentRules.
This class stores a set of rules in a HashMap.
FragmentRules() - Constructor for class com.simonstl.fragment.FragmentRules
 

G

getAfter() - Method in class com.simonstl.fragment.DocComponent
Returns a string of content which may appear after the component
getAfterInside() - Method in class com.simonstl.fragment.Element
 
getAtts() - Method in class com.simonstl.fragment.Element
 
getBefore() - Method in class com.simonstl.fragment.DocComponent
Returns a string of content which may appear before the component
getBeforeInside() - Method in class com.simonstl.fragment.Element
 
getContent() - Method in class com.simonstl.fragment.DocComponent
Returns the content for this component.
getIsSplit() - Method in class com.simonstl.fragment.FragmentRule
 
getKey() - Method in class com.simonstl.fragment.DocComponent
Returns a key which can be used as a unique identifier for this component.
getKey() - Method in class com.simonstl.fragment.Characters
 
getKey() - Method in class com.simonstl.fragment.Skip
Skips don't really have keys, but they return "skip" as a value.
getKey() - Method in class com.simonstl.fragment.Element
 
getLocalName() - Method in class com.simonstl.fragment.DocComponent
Returns the local name for the component
getNsURI() - Method in class com.simonstl.fragment.DocComponent
Returns the URI reference value for the namespace.
getPrefix() - Method in class com.simonstl.fragment.DocComponent
Returns the prefix used to represent the namespace URI reference for this component.
getRepeat() - Method in class com.simonstl.fragment.FragmentRule
 
getResults(int) - Method in class com.simonstl.fragment.FragmentRule
 
getRule(String, String) - Method in class com.simonstl.fragment.FragmentRules
 
getRules() - Method in class com.simonstl.fragment.FragmentFilter
in case you ever need to get the rules out of FragmentFilter
getSkipFirst() - Method in class com.simonstl.fragment.FragmentRule
 

I

isRule(String, String) - Method in class com.simonstl.fragment.FragmentRules
 
isSplit - Variable in class com.simonstl.fragment.FragmentRule
 

L

localName - Variable in class com.simonstl.fragment.DocComponent
 

M

main(String[]) - Static method in class com.simonstl.fragment.RulesLoader
 
main(String[]) - Static method in class com.simonstl.fragment.FilterTester
 
matchComponent(String) - Method in class com.simonstl.fragment.DocComponent
Takes a string representing a component description and returns true or false to indicate whether or not it matches this component.
matchComponent(String) - Method in class com.simonstl.fragment.Characters
 
matchComponent(String) - Method in class com.simonstl.fragment.Skip
 
matchComponent(String) - Method in class com.simonstl.fragment.Element
 
matchRegEx - Variable in class com.simonstl.fragment.FragmentRule
 

N

newEntry() - Method in class com.simonstl.fragment.BufferStack
 
nsURI - Variable in class com.simonstl.fragment.DocComponent
 

P

peek() - Method in class com.simonstl.fragment.BoolStack
 
peek() - Method in class com.simonstl.fragment.BufferStack
 
pop() - Method in class com.simonstl.fragment.BoolStack
 
pop() - Method in class com.simonstl.fragment.BufferStack
 
prefix - Variable in class com.simonstl.fragment.DocComponent
 
print() - Method in class com.simonstl.fragment.DocComponent
Prints a representation of the component to STDOUT
print() - Method in class com.simonstl.fragment.Characters
 
print() - Method in class com.simonstl.fragment.Skip
 
print() - Method in class com.simonstl.fragment.FragmentRule
 
print() - Method in class com.simonstl.fragment.Element
 
processResult(String) - Method in class com.simonstl.fragment.FragmentRule
 
push(boolean) - Method in class com.simonstl.fragment.BoolStack
 
push(StringBuffer) - Method in class com.simonstl.fragment.BufferStack
 

R

removeRule(Element) - Method in class com.simonstl.fragment.FragmentRules
 
repeats - Variable in class com.simonstl.fragment.FragmentRule
 
results - Variable in class com.simonstl.fragment.FragmentRule
 
rules - Variable in class com.simonstl.fragment.RulesLoader
 
RulesLoader - class com.simonstl.fragment.RulesLoader.
This class loads the information stored in a rules document for use in fragment filtering.
RulesLoader(String, SAXParser) - Constructor for class com.simonstl.fragment.RulesLoader
 

S

setAfter(String) - Method in class com.simonstl.fragment.DocComponent
Sets a string of content which may appear after the component
setAfterInside(String) - Method in class com.simonstl.fragment.Element
 
setAtts(AttributesImpl) - Method in class com.simonstl.fragment.Element
 
setBefore(String) - Method in class com.simonstl.fragment.DocComponent
Sets a string of content which may appear before the component
setBeforeInside(String) - Method in class com.simonstl.fragment.Element
 
setContent(String) - Method in class com.simonstl.fragment.DocComponent
Sets the content for this component.
setIsSplit(boolean) - Method in class com.simonstl.fragment.FragmentRule
 
setLocalName(String) - Method in class com.simonstl.fragment.DocComponent
Accepts a string which will serve as the local name for this component.
setNsURI(String) - Method in class com.simonstl.fragment.DocComponent
Accepts a URI reference value which is used as the namespace for the component.
setPrefix(String) - Method in class com.simonstl.fragment.DocComponent
Accepts a string which serves as the prefix for this component.
setRepeat(boolean) - Method in class com.simonstl.fragment.FragmentRule
 
setRules(FragmentRules) - Method in class com.simonstl.fragment.FragmentFilter
sets up the rules, read in from a config file by RulesLoader or otherwise concocted in Java
setSkipFirst(boolean) - Method in class com.simonstl.fragment.FragmentRule
 
Skip - class com.simonstl.fragment.Skip.
The Skip class stores information about pieces which should be skipped.
Skip() - Constructor for class com.simonstl.fragment.Skip
Most Skip classes have little information, though before and after elements may add a bit of information.
Skip(Skip) - Constructor for class com.simonstl.fragment.Skip
Creates a new skip from an old DocComponent.
skipFirst - Variable in class com.simonstl.fragment.FragmentRule
 
startChars() - Method in class com.simonstl.fragment.FragmentFilter
Pushes the stack to allow characters to flow from results.
startElement(String, String, String, Attributes) - Method in class com.simonstl.fragment.FragmentFilter
Check at startElement for elements which should be fragmented.
startElement(String, String, String, Attributes) - Method in class com.simonstl.fragment.RulesLoader
 

T

toString() - Method in class com.simonstl.fragment.DocComponent
Returns a representation of the component as a String.
toString() - Method in class com.simonstl.fragment.Characters
 
toString() - Method in class com.simonstl.fragment.Skip
 
toString() - Method in class com.simonstl.fragment.BufferStack
 
toString() - Method in class com.simonstl.fragment.Element
 

A B C D E F G I L M N P R S T