Class ContentHolderForInput
java.lang.Object
com.orchestranetworks.rest.serialization.ContentHolder
com.orchestranetworks.rest.serialization.ContentHolderForInput
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 ValueContextForUpdate
to create a new table record or update an existing one.
- Since:
- 6.0.0
-
Method Summary
Modifier and TypeMethodDescriptionfinal ContentHolderForInputUnwraps thisContentHolderto get aContentHolderForInputif it has been instantiated as so.abstract voidcopyTo(ValueContextForUpdate aValueContextForUpdate) Fills the providedValueContextForUpdatewith the data holds in thisContentHolderForInput.final booleanReturnstrueif this content holder is for input,falseotherwise.Methods inherited from class com.orchestranetworks.rest.serialization.ContentHolder
get, get, getBoolean, getDate, getInt, getList, getString
-
Method Details
-
isForInput
public final boolean isForInput()Description copied from class:ContentHolderReturnstrueif this content holder is for input,falseotherwise.- Specified by:
isForInputin classContentHolder- See Also:
-
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:
-
copyTo
Fills the providedValueContextForUpdatewith the data holds in thisContentHolderForInput.- Parameters:
aValueContextForUpdate- theValueContextForUpdateto fill.
-