org.nuxeo.ecm.automation
Interface TypeAdapter
- All Known Implementing Classes:
- CalendarToDate, DocModelListToDocRefList, DocModelToDocModelList, DocModelToDocRef, DocModelToDocRefList, DocRefListToDocModelList, DocRefToDocModel, DocRefToDocModelList, DocRefToDocRefList, JSONObjectToProperties, StringToBoolean, StringToDate, StringToDocModel, StringToDocRef, StringToInteger, 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
getAdaptedValue
Object getAdaptedValue(OperationContext ctx,
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 © 2011 Nuxeo SAS. All Rights Reserved.