cookxml.cookxml
Class CookXmlLib

java.lang.Object
  extended bycookxml.cookxml.CookXmlLib

public class CookXmlLib
extends Object

This class creates a CookXml tag library for CookXml special attributes.

The special attributes are fairly powerful. So it is not a good idea to include them in all the XML parsers.

This tag library is included in the CookXml Common singleton instance.

Since:
CookXml 3.0

Field Summary
static String ADD_ATTR
          the attribute to specify whether or not to add the current object to the parent.
static String FUNC_ATTR
          the direct function call attribute
static String ID_ATTR
          write the id reference
static String IDREF_ATTR
          read the id reference
static String NAMESPACE
           
static String SETAS_ATTR
          the setter attribute
static String TAG_ATTR
          the tag attribute for casting the current tag into a new tag name.
static String VAR_ATTR
          write access to the variable
static String VARREF_ATTR
          read access to the variable
 
Constructor Summary
CookXmlLib()
           
 
Method Summary
static SingleNSTagLibrary createTagLibrary()
           
static SingleNSTagLibrary getSingletonTagLibrary()
          Get the singleton instance of the CookXml tag library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
See Also:
Constant Field Values

ID_ATTR

public static String ID_ATTR
write the id reference


VAR_ATTR

public static String VAR_ATTR
write access to the variable


TAG_ATTR

public static String TAG_ATTR
the tag attribute for casting the current tag into a new tag name.


IDREF_ATTR

public static String IDREF_ATTR
read the id reference


VARREF_ATTR

public static String VARREF_ATTR
read access to the variable


SETAS_ATTR

public static String SETAS_ATTR
the setter attribute


FUNC_ATTR

public static String FUNC_ATTR
the direct function call attribute


ADD_ATTR

public static String ADD_ATTR
the attribute to specify whether or not to add the current object to the parent. By default a child is add to the parent object unless some contraints are in place. This is another contraint that can limit the addition of the object to the parent.

Constructor Detail

CookXmlLib

public CookXmlLib()
Method Detail

createTagLibrary

public static SingleNSTagLibrary createTagLibrary()

getSingletonTagLibrary

public static SingleNSTagLibrary getSingletonTagLibrary()
Get the singleton instance of the CookXml tag library. Use this function if you want to conserve the memory in setting up multiple tag libraries that uses the cookxml tag library.

This instance of library is not created until this functio is called.

Returns:
the global instance of the