|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--kawigi.template.TagLibrary
Class representing a generic tag library, with methods to quickly look up tags by name.
| Field Summary | |
protected java.util.Map |
map
Maps method names to MethodInfo objects. |
| Constructor Summary | |
TagLibrary()
Creates an empty tag library. |
|
| Method Summary | |
void |
addMethod(kawigi.template.MethodInfo method)
Adds the given MethodInfo object to the mapping of tags. |
void |
addMethod(java.lang.String name,
java.lang.String[] methodCode,
java.lang.String[] callCode)
Creates a MethodInfo object with the given values and adds it to the mapping of tags. |
boolean |
defines(java.lang.String tagname)
Determines if this tag library defines a method with the given name. |
kawigi.template.MethodInfo |
getMethod(java.lang.String tagname)
Returns the MethodInfo with the given name. |
kawigi.template.MethodInfo[] |
getMethods()
Returns the methods mapped in this tag library as an array. |
int |
getSize()
Returns the number of tags in this library. |
static kawigi.template.TagLibrary |
read(java.io.File filename)
Reads a TagLibrary from disk. |
void |
remove(kawigi.template.MethodInfo method)
Removes the given tag from the library, if it exists. |
void |
save(java.io.File filename)
Saves this tag library at the given location. |
void |
setMethods(kawigi.template.MethodInfo[] methods)
Erases any existing tags in the library and adds of the elements in methods. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map map
| Constructor Detail |
public TagLibrary()
| Method Detail |
public void addMethod(kawigi.template.MethodInfo method)
public void remove(kawigi.template.MethodInfo method)
public void addMethod(java.lang.String name,
java.lang.String[] methodCode,
java.lang.String[] callCode)
public boolean defines(java.lang.String tagname)
public kawigi.template.MethodInfo getMethod(java.lang.String tagname)
public kawigi.template.MethodInfo[] getMethods()
public void setMethods(kawigi.template.MethodInfo[] methods)
public int getSize()
public void save(java.io.File filename)
public static kawigi.template.TagLibrary read(java.io.File filename)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||