org.apache.lenya.cms.publication
Class DocumentTypeBuilder
java.lang.Object
org.apache.lenya.cms.publication.DocumentTypeBuilder
public final class DocumentTypeBuilder
- extends java.lang.Object
A builder for document types.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.