Class StringToDocRef
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.impl.adapters.StringToDocRef
-
- All Implemented Interfaces:
TypeAdapter
public class StringToDocRef extends Object implements TypeAdapter
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description StringToDocRef()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DocumentRefcreateRef(String value)Deprecated.since 9.1, seeTypeAdapterHelper.createDocumentRef(String)insteadDocumentRefgetAdaptedValue(OperationContext ctx, Object objectToAdapt)Adapt the given object to an instance of the given target type.
-
-
-
Method Detail
-
getAdaptedValue
public DocumentRef getAdaptedValue(OperationContext ctx, Object objectToAdapt) throws TypeAdaptException
Description copied from interface:TypeAdapterAdapt 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:
getAdaptedValuein interfaceTypeAdapter- Throws:
TypeAdaptException- when the object cannot be adapted
-
createRef
@Deprecated public static DocumentRef createRef(String value)
Deprecated.since 9.1, seeTypeAdapterHelper.createDocumentRef(String)instead
-
-