com.vinculumtech.carrierwave.docmodel
Class DocumentModelFactory

java.lang.Object
  extended bycom.vinculumtech.carrierwave.docmodel.DocumentModelFactory

public final class DocumentModelFactory
extends java.lang.Object

A simple factory class to return DocumentModel instances that natively handle Image or Imageable instances.

Version:
$Id: //depot/carrierwave/src/shared/com/vinculumtech/carrierwave/docmodel/DocumentModelFactory.java#10 $

Method Summary
static TypeMap getDefaultImageNodeTypeMap()
          Creates a TypeMap with an Image to ImageNode mapping.
static DocumentModel getImageDocumentModel(java.lang.Object rootObject)
          This creates a DocumentModel instance sourced with an Image to ImageNode typeMap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultImageNodeTypeMap

public static final TypeMap getDefaultImageNodeTypeMap()
Creates a TypeMap with an Image to ImageNode mapping.

Returns:
a TypeMap instance

getImageDocumentModel

public static final DocumentModel getImageDocumentModel(java.lang.Object rootObject)
This creates a DocumentModel instance sourced with an Image to ImageNode typeMap.

Returns:
a DocumentModel instance


Copyright (C) 2002 Vinculum Technologies, Inc. All Rights Reserved.