xjavadoc
Class XTagFactory

java.lang.Object
  |
  +--xjavadoc.XTagFactory

public class XTagFactory
extends Object

Creates XTag instances.

Author:
Aslak Hellesøy

Constructor Summary
XTagFactory()
           
 
Method Summary
static XTag createTag(String tagName, String text, XDoc doc, int lineNumber)
          Creates a new XTag.
static boolean isValidating()
           
static void registerTagClass(String tagName, Class tagClass)
           
static void setIgnoredTags(String tags)
          Set the name of the tags that shouldn't be validated against.
static void setValidating(boolean isValidating)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XTagFactory

public XTagFactory()
Method Detail

isValidating

public static boolean isValidating()

setValidating

public static void setValidating(boolean isValidating)

setIgnoredTags

public static void setIgnoredTags(String tags)
Set the name of the tags that shouldn't be validated against.

Parameters:
tags -

createTag

public static 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.

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.

registerTagClass

public static void registerTagClass(String tagName,
                                    Class tagClass)


Copyright © 2002-2003 XDoclet Team. All Rights Reserved.