Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.core.impl.adapters
Class StringToDocModel

java.lang.Object
  extended by org.nuxeo.ecm.automation.core.impl.adapters.StringToDocModel
All Implemented Interfaces:
TypeAdapter

public class StringToDocModel
extends Object
implements TypeAdapter

Author:
Bogdan Stefanescu

Constructor Summary
StringToDocModel()
           
 
Method Summary
static DocumentRef createRef(String value)
           
 DocumentModel getAdaptedValue(OperationContext ctx, Object objectToAdapt)
          Adapt the given object to an instance of the given target type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringToDocModel

public StringToDocModel()
Method Detail

getAdaptedValue

public DocumentModel getAdaptedValue(OperationContext ctx,
                                     Object objectToAdapt)
                              throws TypeAdaptException
Description copied from interface: TypeAdapter
Adapt the given object to an instance of the given target type. The input object cannot be null. Throws an exception if the object cannot be adapted.

Specified by:
getAdaptedValue in interface TypeAdapter
Throws:
TypeAdaptException - when the object cannot be adapted

createRef

public static DocumentRef createRef(String value)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.