xjavadoc
Class XTagFactory
public final class XTagFactory
extends java.lang.Object
Creates XTag instances.
_isValidating
private boolean _isValidating
_tagClasses
private final Map _tagClasses
Maps tag name to XTag class.
XTagFactory
public XTagFactory()
createTag
public XTag createTag(String tagName,
String text,
XDoc doc,
int lineNumber)
throws UnknownTagException
Creates a new XTag. If a special tag class has been previously registeres,
an instance of the corresponding class will be returned. This allows for
special tag implementations.
tagName
- name of the tag, without the '@'text
- content of the tag. Will be parsed into
attributes.doc
- lineNumber
-
isValidating
public boolean isValidating()
registerTagClass
public void registerTagClass(String tagName,
Class tagClass)
setIgnoredTags
public void setIgnoredTags(String tags)
Set the name of the tags that shouldn't be validated against.
setValidating
public void setValidating(boolean isValidating)