org.opencms.xml.containerpage
Class CmsConfigurationItem

java.lang.Object
  extended by org.opencms.xml.containerpage.CmsConfigurationItem

public class CmsConfigurationItem
extends Object

A single item of the ADE file type configuration.

A configuration item describes which file should be used as a template for new content elements, and at which location in the VFS they should be created.

It does not contain a type, since the type is given by the type of the source file.

Since:
7.6

Constructor Summary
CmsConfigurationItem(CmsResource sourceFile, CmsResource destinationFolder, CmsLazyFolder lazyFolder, String pattern, boolean isDefault)
          Creates a new type configuration item.
 
Method Summary
 CmsResource getFolder()
          Returns the destination folder uri.
 CmsLazyFolder getLazyFolder()
          Returns a helper object which represents a folder which may still have to be created.
 String getPattern()
          Returns the file pattern.
 CmsResource getSourceFile()
          Gets the source file uri.
 boolean isDefault()
          Returns if this item is default for it's resource-type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsConfigurationItem

public CmsConfigurationItem(CmsResource sourceFile,
                            CmsResource destinationFolder,
                            CmsLazyFolder lazyFolder,
                            String pattern,
                            boolean isDefault)
Creates a new type configuration item.

Parameters:
sourceFile - the source file
destinationFolder - the destination folder
lazyFolder - the lazy folder object
pattern - the file pattern
isDefault - true if this item is default for it's resource-type
Method Detail

getFolder

public CmsResource getFolder()
Returns the destination folder uri.

Returns:
the destination folder uri

getLazyFolder

public CmsLazyFolder getLazyFolder()
Returns a helper object which represents a folder which may still have to be created.

Returns:
a lazy folder object

getPattern

public String getPattern()
Returns the file pattern.

Returns:
the file pattern

getSourceFile

public CmsResource getSourceFile()
Gets the source file uri.

Returns:
the source file uri

isDefault

public boolean isDefault()
Returns if this item is default for it's resource-type.

Returns:
true if this item is default for it's resource-type