net.sf.joost.instruction
Class AnalyzeTextFactory
java.lang.Object
net.sf.joost.instruction.FactoryBase
net.sf.joost.instruction.AnalyzeTextFactory
- All Implemented Interfaces:
- Constants
public final class AnalyzeTextFactory
- extends FactoryBase
Factory for analyze-text
elements, which are represented by
the inner Instance class.
- Version:
- $Revision: 1.13 $ $Date: 2009/08/21 12:46:17 $
- Author:
- Oliver Becker
Field Summary |
private HashSet |
attrNames
allowed attributes for this element |
static String |
REGEX_GROUP
Name of a special pseudo-variable that contains the values for
the regex-group function. |
Fields inherited from interface net.sf.joost.Constants |
DEBUG, DEFAULT_ENCODING, FEAT_NS, FEAT_NSPREFIX, FEATURE_URI_PREFIX, FUNC_NS, JOOST_EXT_NS, PR_ATTRIBUTES, PR_BUFFER, PR_CHILDREN, PR_CONTINUE, PR_ERROR, PR_SELF, PR_SIBLINGS, STX_NS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REGEX_GROUP
public static String REGEX_GROUP
- Name of a special pseudo-variable that contains the values for
the regex-group function. (Note: "normal" variables start always
with a namespace in curly braces like '
{uri}name
')
- See Also:
RegexGroup
attrNames
private HashSet attrNames
- allowed attributes for this element
AnalyzeTextFactory
public AnalyzeTextFactory()
getName
public String getName()
- Specified by:
getName
in class FactoryBase
- Returns:
"analyze-text"
createNode
public NodeBase createNode(NodeBase parent,
String qName,
Attributes attrs,
ParseContext context)
throws SAXParseException
- Description copied from class:
FactoryBase
- The factory method.
- Specified by:
createNode
in class FactoryBase
- Parameters:
parent
- the parent NodeqName
- the full name of this nodeattrs
- the attribute set of this nodecontext
- the parse context
- Returns:
- an Instance of the appropriate Node
- Throws:
SAXParseException
- for missing or wrong attributes, etc.