All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.netobjects.nfx.dom.TagFactory

java.lang.Object
   |
   +----com.netobjects.nfx.dom.TagFactory

public class TagFactory
extends Object
Version:
1.0
Author:
Scott Cinnamond

Constructor Index

 o TagFactory()
Constructor

Method Index

 o createTag(Document, String, int)
Instansiates a tag object based on the given name.
 o getClassNameForTag(String)
Returns a class name based on the given tag name.

Constructors

 o TagFactory
 public TagFactory()
Constructor

Methods

 o createTag
 public static Tag createTag(Document doc,
                             String name,
                             int level) throws InstantiationException, IllegalAccessException
Instansiates a tag object based on the given name. If no specific tag class for the name is found, the generic tag class is used.

Parameters:
doc - the parent document.
name - the tag name.
level - the hierarchical level within the document.
Returns:
the tag object.
Throws: InstantiationException
if thrown by Class.newInstance().
Throws: IllegalAccessException
if thrown by Class.newInstance()
 o getClassNameForTag
 public static String getClassNameForTag(String name)
Returns a class name based on the given tag name.

Parameters:
name - the tag name.
Returns:
the class name.

All Packages  Class Hierarchy  This Package  Previous  Next  Index