xjavadoc

Class XTagFactory

public final class XTagFactory extends Object

Creates XTag instances.

Author: Aslak Hellesxy

UNKNOWN: 10. februar 2002

Field Summary
boolean_isValidating
Map_tagClasses
Maps tag name to XTag class.
Constructor Summary
XTagFactory()
Method Summary
XTagcreateTag(String tagName, String text, XDoc doc, int lineNumber)
Creates a new XTag.
booleanisValidating()
voidregisterTagClass(String tagName, Class tagClass)
voidsetIgnoredTags(String tags)
Set the name of the tags that shouldn't be validated against.
voidsetValidating(boolean isValidating)

Field Detail

_isValidating

private boolean _isValidating

_tagClasses

private final Map _tagClasses
Maps tag name to XTag class.

Constructor Detail

XTagFactory

public XTagFactory()

Method Detail

createTag

public XTag createTag(String tagName, String text, XDoc doc, int lineNumber)
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.

Parameters: tagName name of the tag, without the '@' text content of the tag. Will be parsed into attributes. doc lineNumber

Returns: an instance of XTag

Throws: UnknownTagException TagValidationException if validation is activated and an unknown tag was encountered.

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.

Parameters: tags

setValidating

public void setValidating(boolean isValidating)