org.apache.lenya.cms.publication
Class DocumentTypeBuilder

java.lang.Object
  extended by org.apache.lenya.cms.publication.DocumentTypeBuilder

public final class DocumentTypeBuilder
extends java.lang.Object

A builder for document types.


Field Summary
static java.lang.String CONFIG_FILE
           
static java.lang.String CREATOR_ELEMENT
           
static java.lang.String DOCTYPE_DIRECTORY
          The default document types configuration directory, relative to the publication directory.
static java.lang.String DOCTYPE_ELEMENT
           
static java.lang.String DOCTYPES_ELEMENT
           
static java.lang.String SRC_ATTRIBUTE
           
static java.lang.String TYPE_ATTRIBUTE
           
static java.lang.String WORKFLOW_ELEMENT
           
 
Method Summary
static DocumentType buildDocumentType(java.lang.String name, Publication publication)
          Builds a document type for a given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCTYPE_DIRECTORY

public static final java.lang.String DOCTYPE_DIRECTORY
The default document types configuration directory, relative to the publication directory.


CONFIG_FILE

public static final java.lang.String CONFIG_FILE

DOCTYPES_ELEMENT

public static final java.lang.String DOCTYPES_ELEMENT
See Also:
Constant Field Values

DOCTYPE_ELEMENT

public static final java.lang.String DOCTYPE_ELEMENT
See Also:
Constant Field Values

TYPE_ATTRIBUTE

public static final java.lang.String TYPE_ATTRIBUTE
See Also:
Constant Field Values

CREATOR_ELEMENT

public static final java.lang.String CREATOR_ELEMENT
See Also:
Constant Field Values

SRC_ATTRIBUTE

public static final java.lang.String SRC_ATTRIBUTE
See Also:
Constant Field Values

WORKFLOW_ELEMENT

public static final java.lang.String WORKFLOW_ELEMENT
See Also:
Constant Field Values
Method Detail

buildDocumentType

public static DocumentType buildDocumentType(java.lang.String name,
                                             Publication publication)
                                      throws DocumentTypeBuildException
Builds a document type for a given name.

Parameters:
name - A string value.
publication - The publication the document type belongs to.
Returns:
A document type object.
Throws:
DocumentTypeBuildException - When something went wrong.


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