org.nuxeo.ecm.automation.core.impl.adapters
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
StringToDocRef
public StringToDocRef()
getAdaptedValue
public DocumentRef 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)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.