org.apache.lenya.cms.authoring
Class DefaultLeafCreator

java.lang.Object
  extended by org.apache.lenya.cms.authoring.DefaultCreator
      extended by org.apache.lenya.cms.authoring.DefaultLeafCreator
All Implemented Interfaces:
ParentChildCreatorInterface

public class DefaultLeafCreator
extends DefaultCreator


Field Summary
 
Fields inherited from class org.apache.lenya.cms.authoring.DefaultCreator
RESOURCE_META_NAME, RESOURCE_NAME, SAMPLE_META_NAME, SAMPLE_NAME
 
Fields inherited from interface org.apache.lenya.cms.authoring.ParentChildCreatorInterface
BRANCH_NODE, LEAF_NODE
 
Constructor Summary
DefaultLeafCreator()
           
 
Method Summary
protected  java.lang.String getChildFileName(Publication publication, java.lang.String area, java.lang.String parentId, java.lang.String childId, java.lang.String language)
          (non-Javadoc)
protected  java.lang.String getChildMetaFileName(java.io.File parentDir, java.lang.String childId, java.lang.String language)
          (non-Javadoc)
 short getChildType(short childType)
          Return the child type.
 
Methods inherited from class org.apache.lenya.cms.authoring.DefaultCreator
create, generateTreeId, getChildName, getLanguageSuffix, getSampleResourceName, init, transformMetaXML, transformXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLeafCreator

public DefaultLeafCreator()
Method Detail

getChildType

public short getChildType(short childType)
                   throws java.lang.Exception
Return the child type.

Specified by:
getChildType in interface ParentChildCreatorInterface
Overrides:
getChildType in class DefaultCreator
Parameters:
childType - a short value
Returns:
a short value
Throws:
java.lang.Exception - if an error occurs

getChildFileName

protected java.lang.String getChildFileName(Publication publication,
                                            java.lang.String area,
                                            java.lang.String parentId,
                                            java.lang.String childId,
                                            java.lang.String language)
(non-Javadoc)

Specified by:
getChildFileName in class DefaultCreator
childId - the id of the child
language - for which the document is created
Returns:
the file name of the child
See Also:
org.apache.lenya.cms.authoring.DefaultCreator#getChildFileName(java.io.File, java.lang.String)

getChildMetaFileName

protected java.lang.String getChildMetaFileName(java.io.File parentDir,
                                                java.lang.String childId,
                                                java.lang.String language)
(non-Javadoc)

Overrides:
getChildMetaFileName in class DefaultCreator
Parameters:
parentDir - the parent directory
childId - the id of the child
language - for which the document is created
Returns:
the name of the meta file
See Also:
org.apache.lenya.cms.authoring.DefaultCreator#getChildMetaFileName(java.io.File, java.lang.String)


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.