public interface Exporter<A,O extends A,C,R>
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(A pObjectToExport,
C pConfiguration)
Returns
true if the given object can be handled by this exporter. |
R |
build(O pObjectToExport,
C pConfiguration)
Creates an exportable representation of the provided object.
|
boolean accepts(A pObjectToExport, C pConfiguration) throws Exception
true
if the given object can be handled by this exporter.pObjectToExport
- the object to be exportedpConfiguration
- the configuration objecttrue
if the given object can be handled by this exporter. false
otherwiseException
- if an unexpected error occursR build(O pObjectToExport, C pConfiguration) throws Exception
accepts(Object, Object)
)}
returns true
pObjectToExport
- the object to exportpConfiguration
- the configuration objectException
- if the object cannot be exported© 1998- 2021 Escenic AS