public class DefaultProjectTemplate extends BasicProjectTemplate
| Constructor and Description |
|---|
DefaultProjectTemplate(csbase.logic.ProjectFileInfo baseDir,
String... params)
Construtor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canChangeType(csbase.server.services.projectservice.ServerProjectFile file,
String newType)
Determina se o tipo do arquivo pode ser trocado.
|
boolean |
canCreate(csbase.server.services.projectservice.ServerProjectFile parentDir,
String name,
String type)
Determina se o arquivo pode ser criado.
|
boolean |
canDelete(csbase.server.services.projectservice.ServerProjectFile file)
Determina se o arquivo pode ser removido.
|
boolean |
canRename(csbase.server.services.projectservice.ServerProjectFile file,
String newName)
Determina se o arquivo pode ser renomeado.
|
static boolean |
isAncestor(String[] ancestorPath,
String[] descendantPath)
Indica se um caminho é ancestral do outro.
|
getBaseDir, getParameterspublic DefaultProjectTemplate(csbase.logic.ProjectFileInfo baseDir,
String... params)
baseDir - diretório-base do template.params - parâmetros para configuração do template.public boolean canRename(csbase.server.services.projectservice.ServerProjectFile file,
String newName)
canRename in interface ProjectTemplatecanRename in class BasicProjectTemplatefile - o arquivo.newName - o novo nome para o arquivo.public boolean canDelete(csbase.server.services.projectservice.ServerProjectFile file)
canDelete in interface ProjectTemplatecanDelete in class BasicProjectTemplatefile - o arquivo.public boolean canCreate(csbase.server.services.projectservice.ServerProjectFile parentDir,
String name,
String type)
canCreate in interface ProjectTemplatecanCreate in class BasicProjectTemplateparentDir - o diretório onde o arquivo seria criado.name - o nome do arquivo a ser criado.type - o tipo do arquivo a ser criado.public boolean canChangeType(csbase.server.services.projectservice.ServerProjectFile file,
String newType)
canChangeType in interface ProjectTemplatecanChangeType in class BasicProjectTemplatefile - o arquivo.newType - o novo tipo do arquivo.public static boolean isAncestor(String[] ancestorPath, String[] descendantPath)
ancestorPath - O caminho potencialmente ancestral.descendantPath - O caminho potencialmente descendente.Copyright © 2018. All rights reserved.