com.smallx.xml.component.standard
Class RegexComponent
java.lang.Object
com.smallx.xml.component.ComponentBase
com.smallx.xml.component.standard.RegexComponent
- All Implemented Interfaces:
- Component, ItemDestination
- public class RegexComponent
- extends ComponentBase
Constructor Summary |
RegexComponent()
Creates a new instance of SubtreeFilterComponent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegexComponent
public RegexComponent()
- Creates a new instance of SubtreeFilterComponent
parse
public static ComponentInstance parse(Element spec,
ComponentRegistry registry,
java.util.Map sequences)
throws XMLException
- Throws:
XMLException
setExpression
public void setExpression(EventExpression newExpr)
throws XPathException
- Throws:
XPathException
setMatchesName
public void setMatchesName(Name name)
setPattern
public void setPattern(java.util.regex.Pattern p)
send
public void send(Item item)
throws XMLException
- Description copied from interface:
ItemDestination
- Called when a infoset item is generated by a source.
- Parameters:
item
- The infoset item that was generated by the source.
- Returns:
- A boolean value indicating that addition items are wanted by the implementing object.
- Throws:
XMLException
init
public void init(ComponentContext context)
throws XMLException
- Specified by:
init
in interface Component
- Overrides:
init
in class ComponentBase
- Throws:
XMLException