Class VarNameAdapter
- java.lang.Object
-
- fr.gouv.vitam.common.database.parser.request.adapter.VarNameAdapter
-
- Direct Known Subclasses:
CollectVarNameAdapter
,LogbookVarNameAdapter
,MongoDbVarNameAdapter
,SingleVarNameAdapter
,VarNameAdapterExternal
,VarNameInsertAdapter
,VarNameUpdateAdapter
public class VarNameAdapter extends java.lang.Object
Model for VarNameAdapter (Unit/ObjectGroup) internal usage.
-
-
Constructor Summary
Constructors Constructor Description VarNameAdapter()
Empty Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkNoParameter(com.fasterxml.jackson.databind.JsonNode request)
Check if no arguments is using any fix '#' Parameterjava.lang.String
getVariableName(java.lang.String name)
Return nullboolean
metadataAdapter()
void
setVar(BuilderToken.QUERY req, com.fasterxml.jackson.databind.node.ObjectNode currentObject, com.fasterxml.jackson.databind.JsonNode request)
Set simple Var (no value)void
setVarArray(com.fasterxml.jackson.databind.node.ArrayNode array)
Set an array of Var (no Value)void
setVarsValue(com.fasterxml.jackson.databind.node.ObjectNode currentObject, com.fasterxml.jackson.databind.JsonNode request)
Set Vars = Value (Json)
-
-
-
Method Detail
-
metadataAdapter
public boolean metadataAdapter()
- Returns:
- True if the adapter is a Internal VarnameAdapter
-
getVariableName
public java.lang.String getVariableName(java.lang.String name) throws InvalidParseOperationException
Return null- Parameters:
name
- String- Returns:
- null
- Throws:
InvalidParseOperationException
- invalid parse operation exception
-
setVarsValue
public void setVarsValue(com.fasterxml.jackson.databind.node.ObjectNode currentObject, com.fasterxml.jackson.databind.JsonNode request) throws InvalidParseOperationException
Set Vars = Value (Json)- Parameters:
currentObject
- ObjectNoderequest
- JsonNode- Throws:
InvalidParseOperationException
- invalid parse operation exception
-
setVar
public void setVar(BuilderToken.QUERY req, com.fasterxml.jackson.databind.node.ObjectNode currentObject, com.fasterxml.jackson.databind.JsonNode request) throws InvalidParseOperationException
Set simple Var (no value)- Parameters:
req
- QUERYcurrentObject
- ObjectNoderequest
- JsonNode- Throws:
InvalidParseOperationException
- invalid parse operation exception
-
setVarArray
public void setVarArray(com.fasterxml.jackson.databind.node.ArrayNode array) throws InvalidParseOperationException
Set an array of Var (no Value)- Parameters:
array
- ArrayNode- Throws:
InvalidParseOperationException
- invalid parse operation exception
-
checkNoParameter
public void checkNoParameter(com.fasterxml.jackson.databind.JsonNode request) throws InvalidParseOperationException
Check if no arguments is using any fix '#' Parameter- Parameters:
request
- JsonNode- Throws:
InvalidParseOperationException
- invalid parse operation exception
-
-