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