public class TemplateList extends XMLRequest implements java.lang.Iterable<Template>
Constructor and Description |
---|
TemplateList()
Deprecated.
Use TemplateList(IFolder folder) instead
|
TemplateList(IFolder folder)
Creates a list of templates in a specified folder.
|
Modifier and Type | Method and Description |
---|---|
Template |
getTemplate(java.lang.String templateName)
Returns a
Template given template name or null
if the template was not found. |
java.util.Iterator<Template> |
iterator()
Returns an
Iterator to iterate over the template collection. |
int |
size()
Returns the number of templates.
|
getMessageBox, getRequestID, handleResponse, send
@Deprecated public TemplateList()
public TemplateList(IFolder folder)
folder
- Folder where an object should be createdpublic java.util.Iterator<Template> iterator()
Iterator
to iterate over the template collection.iterator
in interface java.lang.Iterable<Template>
Iterator
public Template getTemplate(java.lang.String templateName)
Template
given template name or null
if the template was not found.templateName
- template namepublic int size()