public abstract class BaseConstructor
extends java.lang.Object
Constructor and Description |
---|
BaseConstructor() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkData()
Check if more documents available
|
java.lang.Object |
getData()
Construct and return the next document
|
PropertyUtils |
getPropertyUtils() |
java.lang.Object |
getSingleData(java.lang.Class<?> type)
Ensure that the stream contains a single document and construct it
|
boolean |
isAllowDuplicateKeys() |
boolean |
isExplicitPropertyUtils() |
void |
setAllowDuplicateKeys(boolean allowDuplicateKeys) |
void |
setComposer(Composer composer) |
void |
setPropertyUtils(PropertyUtils propertyUtils) |
public void setComposer(Composer composer)
public boolean checkData()
public java.lang.Object getData()
public java.lang.Object getSingleData(java.lang.Class<?> type)
type
- the class of the instance being createdComposerException
- in case there are more documents in the streampublic void setPropertyUtils(PropertyUtils propertyUtils)
public final PropertyUtils getPropertyUtils()
public final boolean isExplicitPropertyUtils()
public boolean isAllowDuplicateKeys()
public void setAllowDuplicateKeys(boolean allowDuplicateKeys)