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

A

addAppliesTo(DocComponent) - Method in class com.simonstl.fragment.FragmentRule
 
addAtt(Attribute) - Method in class com.simonstl.fragment.Element
 
addAttributes(Attributes, Element) - Method in class com.simonstl.fragment.AttCollection
The addAttributes method accepts a SAX AttributesImpl instance, breaks it into individual attributes, and adds them to the HashMap.
addContent(DocComponent) - Method in class com.simonstl.fragment.DocComponent
Sets the content for this component.
addContent(DocComponent) - Method in class com.simonstl.fragment.Element
Adds content to this component.
addResult(DocComponent) - Method in class com.simonstl.fragment.FragmentRule
 
addRule(DocComponent, 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
Deprecated.  
appliesTo - Static variable in class com.simonstl.fragment.RulesLoader
 
appliesTo - Variable in class com.simonstl.fragment.FragmentRule
 
AttCollection - class com.simonstl.fragment.AttCollection.
The AttCollection class extends HashMap with functions for accepting and producing SAX AttributesImpl objects
AttCollection() - Constructor for class com.simonstl.fragment.AttCollection
 
Attribute - class com.simonstl.fragment.Attribute.
The attribute class stores information about an attribute.
Attribute() - Constructor for class com.simonstl.fragment.Attribute
Attribute classes have NS names, and sometimes content.
Attribute(DocComponent) - Constructor for class com.simonstl.fragment.Attribute
Creates a new attribute from an old DocComponent.
Attribute(String, String, String) - Constructor for class com.simonstl.fragment.Attribute
Attribute classes have NS names, and sometimes content.
Attribute(String, String, String, String, String) - Constructor for class com.simonstl.fragment.Attribute
Attribute classes have NS names, and sometimes content.

B

before - Variable in class com.simonstl.fragment.DocComponent
 
BoolStack - class com.simonstl.fragment.BoolStack.
Deprecated. no longer used by FragmentFilter
BoolStack() - Constructor for class com.simonstl.fragment.BoolStack
Deprecated.  
BufferStack - class com.simonstl.fragment.BufferStack.
Deprecated. no longer used by FragmentFilter
BufferStack() - Constructor for class com.simonstl.fragment.BufferStack
Deprecated.  

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
 
cleanDuplicate() - Method in class com.simonstl.fragment.DocComponent
Returns a clean copy of the component and its contents.
cleanDuplicate() - Method in class com.simonstl.fragment.Characters
 
cleanDuplicate() - Method in class com.simonstl.fragment.AttCollection
 
cleanDuplicate() - Method in class com.simonstl.fragment.Skip
 
cleanDuplicate() - Method in class com.simonstl.fragment.Element
 
cleanDuplicate() - Method in class com.simonstl.fragment.Attribute
 
clear() - Method in class com.simonstl.fragment.BufferStack
Deprecated.  
clear() - Method in class com.simonstl.fragment.BoolStack
Deprecated.  
clearContent() - Method in class com.simonstl.fragment.DocComponent
Clears the content for this component.
clearContent() - Method in class com.simonstl.fragment.Element
Clears the content for this component.
com.simonstl.fragment - package com.simonstl.fragment
 
complete() - Method in class com.simonstl.fragment.FragmentRule
 
ComponentFactory - class com.simonstl.fragment.ComponentFactory.
This class creates different types of DocComponent objects from a SAX event, or directly through a list of properties.
ComponentFactory() - Constructor for class com.simonstl.fragment.ComponentFactory
 
ComponentList - class com.simonstl.fragment.ComponentList.
The ComponentList class extends ArrayList with functions for matching objects
ComponentList() - Constructor for class com.simonstl.fragment.ComponentList
 
content - Variable in class com.simonstl.fragment.DocComponent
 
createAttribute(String, String, String, Attributes) - Static method in class com.simonstl.fragment.ComponentFactory
 
createAttribute(String, String, String, String, String) - Static method in class com.simonstl.fragment.ComponentFactory
 
createCharacters(String, String) - Static method in class com.simonstl.fragment.ComponentFactory
 
createCharacters(String, String, String, Attributes) - Static method in class com.simonstl.fragment.ComponentFactory
 
createComponent(String, String, String, Attributes) - Static method in class com.simonstl.fragment.ComponentFactory
 
createElement(String, String, String, Attributes) - Static method in class com.simonstl.fragment.ComponentFactory
 
createElement(String, String, String, String, String, String, String) - Static method in class com.simonstl.fragment.ComponentFactory
 
createRegEx(int, String) - Static method in class com.simonstl.fragment.RegexProcFactory
The createRegEx() method returns an object which implements the RegExInt interface for match() processing using a regex package wrapped in the object identified by the com.simonstl.fragment.matchProc, com.simonstl.fragment.splitProc, or com.simonstl.fragment.seriesProc property.
createRegEx(String) - Static method in class com.simonstl.fragment.RegexProcFactory
Attempt to create a from a class name.
createRule(String, boolean, boolean, int) - Static method in class com.simonstl.fragment.FragmentRuleFactory
 
createRule(String, String, String, Attributes) - Static method in class com.simonstl.fragment.FragmentRuleFactory
 
createSkip(String, String) - Static method in class com.simonstl.fragment.ComponentFactory
 
createSkip(String, String, String, Attributes) - Static method in class com.simonstl.fragment.ComponentFactory
 

D

divide(String) - Method in class com.simonstl.fragment.RegexpSplit
This class uses the Apache regexp engine to implement the RegExInt interface.
divide(String) - Method in class com.simonstl.fragment.XercesMatch
This implementation uses the Apache Xerces regex engine to support the RegExInt interface.
divide(String) - Method in interface com.simonstl.fragment.RegExInt
The divide() method does the actual work, applying the regular expression to the submitted string and returning an ArrayList of pieces.
divide(String) - Method in class com.simonstl.fragment.Regex4jMatch
This implementation uses the Apache Xerces regex engine to support the RegExInt interface.
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() - Constructor for class com.simonstl.fragment.Element
 
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, Attributes) - Constructor for class com.simonstl.fragment.Element
 
Element(String, String, String, String) - Constructor for class com.simonstl.fragment.Element
 
endElement(String, String, String) - Method in class com.simonstl.fragment.RulesLoader
 
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.
endFreeElement(String, String, String) - Method in class com.simonstl.fragment.FragmentFilter
 
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
 
eventComponent(FragmentFilter) - Method in class com.simonstl.fragment.Attribute
 

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
 
FragmentRuleFactory - class com.simonstl.fragment.FragmentRuleFactory.
This class creates FragmentRule objects from a SAX event, or directly through a list of properties.
FragmentRuleFactory() - Constructor for class com.simonstl.fragment.FragmentRuleFactory
 
FragmentRules - class com.simonstl.fragment.FragmentRules.
This class stores a set of rules in a HashMap.
FragmentRules() - Constructor for class com.simonstl.fragment.FragmentRules
 
freeCharacters(char[], int, int) - Method in class com.simonstl.fragment.FragmentFilter
 

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
 
getAttributes() - Method in class com.simonstl.fragment.AttCollection
The getAttributes method returns a SAX Attributes instance, built out of the Attributes which were stored in the HashMap.
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
 
getComponent(int) - Method in class com.simonstl.fragment.ComponentList
The getComponent() method returns a DocComponent and supports the repeats functionality.
getContent() - Method in class com.simonstl.fragment.DocComponent
Returns the content for this component.
getContent() - Method in class com.simonstl.fragment.Element
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
 
getKey() - Method in class com.simonstl.fragment.Attribute
Attributes return a key prefaced by @.
getLocalName() - Method in class com.simonstl.fragment.DocComponent
Returns the local name for the component
getMatchAttributes() - Method in class com.simonstl.fragment.FragmentRules
 
getNsURI() - Method in class com.simonstl.fragment.DocComponent
Returns the URI reference value for the namespace.
getParentElement() - Method in class com.simonstl.fragment.DocComponent
Gets the parent element for this component (unused).
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
 
getRepeats() - Method in class com.simonstl.fragment.ComponentList
 
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
getSize() - Method in class com.simonstl.fragment.FragmentRule
 
getSkipFirst() - Method in class com.simonstl.fragment.FragmentRule
 
getType() - Method in class com.simonstl.fragment.RegexpSplit
 
getType() - Method in class com.simonstl.fragment.XercesMatch
 
getType() - Method in class com.simonstl.fragment.DocComponent
Sets the type for this component.
getType() - Method in interface com.simonstl.fragment.RegExInt
getType() allows the application to query whether this is a matching class (0), splitting class (1), or series class (2).
getType() - Method in class com.simonstl.fragment.Regex4jMatch
 

I

isRule(DocComponent) - Method in class com.simonstl.fragment.FragmentRules
 
isRule(String, String) - Method in class com.simonstl.fragment.FragmentRules
 
isRule(String, String, Attributes) - 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.FilterTester
FilterTester's main method requires two arguments - a rules file and then a target XML file.
matchAll(DocComponent) - Method in class com.simonstl.fragment.DocComponent
Matches everything
matchComponent(DocComponent) - Method in class com.simonstl.fragment.Element
 
matchComponent(DocComponent) - Method in class com.simonstl.fragment.Attribute
 
matchComponent(DocComponent, int) - Method in class com.simonstl.fragment.DocComponent
Takes a component and returns true or false to indicate whether or not it matches this component.
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
 
matchComponent(String) - Method in class com.simonstl.fragment.Attribute
 
matchElement(DocComponent) - Method in class com.simonstl.fragment.DocComponent
Matches only element rules.
matchLevel - Variable in class com.simonstl.fragment.FragmentRule
 
matchRules(DocComponent, int) - Method in class com.simonstl.fragment.ComponentList
The matchRules() method accepts a component - Element or Attribute - and asks its contents to indicate if they match that component.
matchSingleton(DocComponent) - Method in class com.simonstl.fragment.DocComponent
Matches only element and attribute rules, ignoring child elements or attributes

N

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

P

parentElement - Variable in class com.simonstl.fragment.DocComponent
 
pattern - Variable in class com.simonstl.fragment.FragmentRule
 
peek() - Method in class com.simonstl.fragment.BufferStack
Deprecated.  
peek() - Method in class com.simonstl.fragment.BoolStack
Deprecated.  
pop() - Method in class com.simonstl.fragment.BufferStack
Deprecated.  
pop() - Method in class com.simonstl.fragment.BoolStack
Deprecated.  
prefix - Variable in class com.simonstl.fragment.DocComponent
 
print() - Method in class com.simonstl.fragment.FragmentRules
 
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.AttCollection
 
print() - Method in class com.simonstl.fragment.Skip
 
print() - Method in class com.simonstl.fragment.Element
 
print() - Method in class com.simonstl.fragment.Attribute
 
print() - Method in class com.simonstl.fragment.FragmentRule
 
printHelp() - Static method in class com.simonstl.fragment.FilterTester
printHelp() lists options if the user doesn't specify any files.
processComponent(DocComponent) - Method in class com.simonstl.fragment.FragmentRules
 
processComponentContent(FragmentRules) - Method in class com.simonstl.fragment.DocComponent
Supports processing of content, if any.
processComponentContent(FragmentRules) - 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
Deprecated.  
push(StringBuffer) - Method in class com.simonstl.fragment.BufferStack
Deprecated.  

R

Regex4jMatch - class com.simonstl.fragment.Regex4jMatch.
Regex4jMatch wraps the IBM com.ibm.regex.RegularExpression class for matching.
Regex4jMatch() - Constructor for class com.simonstl.fragment.Regex4jMatch
 
Regex4jMatch(String) - Constructor for class com.simonstl.fragment.Regex4jMatch
 
RegExInt - interface com.simonstl.fragment.RegExInt.
The RegExInt interface defines the interface any wrapper for regex functionality must implement.
regExProc - Variable in class com.simonstl.fragment.FragmentRule
 
RegexProcFactory - class com.simonstl.fragment.RegexProcFactory.
RegexProcFactory creates processors which allow developers to plug in alternative packages for processing regular expressions.
RegexProcFactory() - Constructor for class com.simonstl.fragment.RegexProcFactory
 
RegexpSplit - class com.simonstl.fragment.RegexpSplit.
RegexpSplit wraps the org.apache.regexp.RE for splitting.
RegexpSplit() - Constructor for class com.simonstl.fragment.RegexpSplit
 
RegexpSplit(String) - Constructor for class com.simonstl.fragment.RegexpSplit
 
removeRule(DocComponent) - Method in class com.simonstl.fragment.FragmentRules
 
repeats - Variable in class com.simonstl.fragment.ComponentList
 
repeats - Variable in class com.simonstl.fragment.FragmentRule
 
replaceAttributes(Attributes, Element) - Method in class com.simonstl.fragment.AttCollection
The replaceAttributes method accepts a SAX Attributes instance, breaks it into individual attributes, and adds them to a fresh HashMap.
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, XMLReader) - 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(Attributes) - 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.
setContent(String) - Method in class com.simonstl.fragment.Element
Sets the content for this component.
setIsSplit(int) - 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.
setMatchAttributes(boolean) - Method in class com.simonstl.fragment.FragmentRules
 
setMatchLevel(int) - Method in class com.simonstl.fragment.FragmentRules
 
setMatchLevel(int) - Method in class com.simonstl.fragment.FragmentRule
 
setNsURI(String) - Method in class com.simonstl.fragment.DocComponent
Accepts a URI reference value which is used as the namespace for the component.
setParentElement(Element) - Method in class com.simonstl.fragment.DocComponent
Sets the parent element for this component (unused).
setPattern(String) - Method in class com.simonstl.fragment.RegexpSplit
 
setPattern(String) - Method in class com.simonstl.fragment.XercesMatch
 
setPattern(String) - Method in interface com.simonstl.fragment.RegExInt
setPattern() is effectively the initialization routine for the regular expression, thereby allowing the same pattern to be reused without repeated initialization.
setPattern(String) - Method in class com.simonstl.fragment.Regex4jMatch
 
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
 
setRepeats(boolean) - Method in class com.simonstl.fragment.ComponentList
 
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
 
setType(String) - Method in class com.simonstl.fragment.DocComponent
Gets the type for this component.
size() - Method in class com.simonstl.fragment.BoolStack
Deprecated.  
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
 
startElement(String, String, String, Attributes) - Method in class com.simonstl.fragment.RulesLoader
 
startElement(String, String, String, Attributes) - Method in class com.simonstl.fragment.FragmentFilter
Check at startElement for elements which should be fragmented.
startFreeElement(String, String, String, Attributes) - Method in class com.simonstl.fragment.FragmentFilter
 

T

toString() - Method in class com.simonstl.fragment.FragmentRules
 
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.AttCollection
 
toString() - Method in class com.simonstl.fragment.BufferStack
Deprecated.  
toString() - Method in class com.simonstl.fragment.Skip
 
toString() - Method in class com.simonstl.fragment.Element
 
toString() - Method in class com.simonstl.fragment.Attribute
 
toString() - Method in class com.simonstl.fragment.FragmentRule
 
type - Variable in class com.simonstl.fragment.DocComponent
 
type - Variable in class com.simonstl.fragment.Attribute
 

X

XercesMatch - class com.simonstl.fragment.XercesMatch.
XercesMatch wraps the Apache Xerces org.apache.xerces.utils.regex.RegularExpression class for matching.
XercesMatch() - Constructor for class com.simonstl.fragment.XercesMatch
 
XercesMatch(String) - Constructor for class com.simonstl.fragment.XercesMatch
 

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