public class TemplateList extends XMLRequest implements 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(String templateName)
Returns a
Template given template name or null
if the template was not found. |
Iterator<Template> |
iterator()
Returns an
Iterator to iterate over the template collection. |
int |
size()
Returns the number of templates.
|
getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, send, showQuarantineNotification
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@Deprecated public TemplateList()
public TemplateList(IFolder folder)
folder
- Folder where an object should be createdpublic Iterator<Template> iterator()
Iterator
to iterate over the template collection.public Template getTemplate(String templateName)
Template
given template name or null
if the template was not found.templateName
- template namepublic int size()
Copyright © 2021. All rights reserved.