|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.importer.base.template.ImportTemplateGroup
public class ImportTemplateGroup
Class which groups IImportTemplate objects. Each group has name and description and a list of children import
templates.
| Constructor Summary | |
|---|---|
ImportTemplateGroup()
Default constructor which generates random id. |
|
| Method Summary | |
|---|---|
boolean |
addTemplate(IImportTemplate template)
Add template to this group. |
boolean |
addTemplate(UUID templateId)
Add template with given id to this group. |
boolean |
containsTemplate(IImportTemplate template)
Checks if a given template belongs to this group. |
boolean |
containsTemplate(UUID templateId)
Checks if a template with given id belongs to this group. |
String |
getDescription()
|
UUID |
getId()
|
String |
getName()
|
Set<UUID> |
getTemplates()
|
boolean |
isDefaultGroup()
|
boolean |
isEmpty()
Checks if group has any templates. |
boolean |
removeTemplate(UUID templateId)
Removes template with given id from this group. |
void |
setDefaultGroup(boolean defaultGroup)
|
void |
setDescription(String description)
Sets group description. |
void |
setName(String name)
Sets group name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImportTemplateGroup()
| Method Detail |
|---|
public UUID getId()
public String getName()
public void setName(String name)
name - a new group namepublic String getDescription()
public void setDescription(String description)
description - group descriptionpublic Set<UUID> getTemplates()
public boolean addTemplate(IImportTemplate template)
template - template to add
true if template wasn't in the group beforepublic boolean addTemplate(UUID templateId)
templateId - template id to add
true if template wasn't in the group beforepublic boolean removeTemplate(UUID templateId)
templateId - id of template to remove
true if template with given id existed in this grouppublic boolean containsTemplate(IImportTemplate template)
template - template
true if template belongs to this grouppublic boolean containsTemplate(UUID templateId)
templateId - template id
true if template belongs to this grouppublic boolean isEmpty()
true if this group contains at least one templatepublic boolean isDefaultGroup()
public void setDefaultGroup(boolean defaultGroup)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||