1 17 18 19 20 package org.apache.lenya.cms.authoring; 21 22 import java.io.File ; 23 24 public class DefaultBranchCreator extends DefaultCreator { 25 34 public short getChildType(short childType) throws Exception { 35 return BRANCH_NODE; 36 } 37 38 41 protected String getChildFileName( 42 File parentDir, 43 String childId, 44 String language) { 45 return parentDir 46 + File.separator 47 + childId 48 + File.separator 49 + "index" 50 + getLanguageSuffix(language) 51 + ".xml"; 52 } 53 54 57 protected String getChildMetaFileName( 58 File parentDir, 59 String childId, 60 String language) { 61 return parentDir 62 + File.separator 63 + childId 64 + File.separator 65 + "indexmeta" 66 + getLanguageSuffix(language) 67 + ".xml"; 68 } 69 } 70 | Popular Tags |