org.apache.lenya.cms.publication
Class DocumentType

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

public class DocumentType
extends java.lang.Object

A document type.


Field Summary
static java.lang.String DEFAULT_PREFIX
           
static java.lang.String NAMESPACE
           
 
Constructor Summary
protected DocumentType(java.lang.String name)
          Creates a new instance of DocumentType
 
Method Summary
 ParentChildCreatorInterface getCreator()
          Get the creator for this document type.
 java.lang.String getName()
          Returns the name of this document type.
 java.lang.String getWorkflowFileName()
          Get the file name of the workflow file.
 boolean hasWorkflow()
          Returns if this document type has a workflow definition.
protected  void setCreator(ParentChildCreatorInterface creator)
          Set the creator
 void setWorkflowFileName(java.lang.String string)
          Set the file name of the workflow file.
 java.lang.String toString()
          (non-Javadoc)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAMESPACE

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

DEFAULT_PREFIX

public static final java.lang.String DEFAULT_PREFIX
See Also:
Constant Field Values
Constructor Detail

DocumentType

protected DocumentType(java.lang.String name)
Creates a new instance of DocumentType

Parameters:
name - the name of the document type
Method Detail

getName

public java.lang.String getName()
Returns the name of this document type.

Returns:
A string value.

getCreator

public ParentChildCreatorInterface getCreator()
Get the creator for this document type.

Returns:
a ParentChildCreatorInterface

setCreator

protected void setCreator(ParentChildCreatorInterface creator)
Set the creator

Parameters:
creator - a ParentChildCreatorInterface

hasWorkflow

public boolean hasWorkflow()
Returns if this document type has a workflow definition.

Returns:
A boolean value.

getWorkflowFileName

public java.lang.String getWorkflowFileName()
                                     throws DocumentTypeBuildException
Get the file name of the workflow file.

Returns:
a String
Throws:
DocumentTypeBuildException - if the document type has no workflow

setWorkflowFileName

public void setWorkflowFileName(java.lang.String string)
Set the file name of the workflow file.

Parameters:
string - the new file name

toString

public java.lang.String toString()
(non-Javadoc)

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


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