Class ContentHolderForInput
- java.lang.Object
-
- com.orchestranetworks.rest.serialization.ContentHolder
-
- com.orchestranetworks.rest.serialization.ContentHolderForInput
-
public abstract class ContentHolderForInput extends ContentHolder
Provides a facade to automatically parse a part of the request body that may represent a table record.The parsed data can later be copied into a
ValueContextForUpdateto create a new table record or update an existing one.- Since:
- 6.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ContentHolderForInputasContentHolderForInput()Unwraps thisContentHolderto get aContentHolderForInputif it has been instantiated as so.abstract voidcopyTo(ValueContextForUpdate aValueContextForUpdate)Fills the providedValueContextForUpdatewith the data holds in thisContentHolderForInput.booleanisForInput()Returnstrueif this content holder is for input,falseotherwise.-
Methods inherited from class com.orchestranetworks.rest.serialization.ContentHolder
get, get, getBoolean, getDate, getInt, getList, getString
-
-
-
-
Method Detail
-
isForInput
public final boolean isForInput()
Description copied from class:ContentHolderReturnstrueif this content holder is for input,falseotherwise.- Specified by:
isForInputin classContentHolder- See Also:
ContentHolder.isForInput()
-
asContentHolderForInput
public final ContentHolderForInput asContentHolderForInput()
Description copied from class:ContentHolderUnwraps thisContentHolderto get aContentHolderForInputif it has been instantiated as so.- Specified by:
asContentHolderForInputin classContentHolder- Returns:
- the unwrapped
ContentHolderForInput. - See Also:
ContentHolder.asContentHolderForInput()
-
copyTo
public abstract void copyTo(ValueContextForUpdate aValueContextForUpdate)
Fills the providedValueContextForUpdatewith the data holds in thisContentHolderForInput.- Parameters:
aValueContextForUpdate- theValueContextForUpdateto fill.
-
-