public String getLinkSchemeName() { if (StringUtils.isEmpty(linkSchemeName)) { return "link" + (fromEditionPattern != null ? fromEditionPattern.getName() : "") + "To" + (toEditionPattern != null ? toEditionPattern.getName() : ""); } return linkSchemeName; }
private CGTemplateFolder retrieveFolder(String folderPath) { if (StringUtils.isEmpty(folderPath)) { return getRootFolder(); } StringTokenizer st = new StringTokenizer(folderPath, "/" + File.separator); CGTemplateFolder current = getRootFolder(); while (st.hasMoreElements()) { String next = st.nextToken(); if (current.getFolder(next) == null) { CGTemplateFolder newFolder = new CGTemplateFolder(this, next); current.dirs.add(newFolder); current = newFolder; } else { current = current.getFolder(next); } } return current; }
public String getLabel() { if (label == null || StringUtils.isEmpty(label)) { return getName(); } return label; }
public String getConnectorPatternRoleName() { if (StringUtils.isEmpty(connectorPatternRoleName)) { return "connector"; } return connectorPatternRoleName; }
public String getIndividualPatternRoleName() { if (StringUtils.isEmpty(individualPatternRoleName) && concept != null) { return JavaUtils.getVariableName(concept.getName()); } return individualPatternRoleName; }
public String getEditionPatternName() { if (StringUtils.isEmpty(editionPatternName) && concept != null) { return concept.getName(); } return editionPatternName; }