org.nuxeo.ecm.automation
Interface TypeAdapter
- All Known Implementing Classes:
- CalendarToDate, DocModelListToDocRefList, DocModelToDocModelList, DocModelToDocRef, DocModelToDocRefList, DocRefListToDocModelList, DocRefToDocModel, DocRefToDocModelList, DocRefToDocRefList, StringToDate, StringToDocModel, StringToDocRef, StringToList, StringToProperties, StringToURL
public interface TypeAdapter
An object that can adapt a given object instance to an object of another
type A type adapter accepts only one type of objects and can produce only
one type of object.
- Author:
- Bogdan Stefanescu
Method Summary |
java.lang.Object |
getAdaptedValue(OperationContext ctx,
java.lang.Object objectToAdapt)
Adapt the given object to an instance of the given target type. |
getAdaptedValue
java.lang.Object getAdaptedValue(OperationContext ctx,
java.lang.Object objectToAdapt)
throws TypeAdaptException
- 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.
- Parameters:
ctx
- objectToAdapt
-
- Throws:
TypeAdaptException
- when the object cannot be adapted
Copyright © 2010 Nuxeo SAS. All Rights Reserved.