Class RestUrnArgumentDefinition
java.lang.Object
com.aquima.interactions.communication.impl.RestUrnArgumentDefinition
- All Implemented Interfaces:
IRestUrnArgumentDefinition
This class holds the static definition of a rest url argument.
- Since:
- 9.0
- Author:
- Arjan Pragt
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RestUrnArgumentDefinition
(IRestUrnArgumentDS datasource, IEntityDefinition entityDefinition, IRuleEngine ruleEngine) -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the attribute definition of the dynamic value.This method returns the default value of the urn fragment.getName()
This method returns the name of the urn argument.This method returns the validations of the attribute.boolean
This method returns whether the urn fragment is required or not.
-
Constructor Details
-
RestUrnArgumentDefinition
protected RestUrnArgumentDefinition(IRestUrnArgumentDS datasource, IEntityDefinition entityDefinition, IRuleEngine ruleEngine)
-
-
Method Details
-
getName
Description copied from interface:IRestUrnArgumentDefinition
This method returns the name of the urn argument.- Specified by:
getName
in interfaceIRestUrnArgumentDefinition
- Returns:
- The name of the argument, may not be null.
-
getConstant
Description copied from interface:IRestUrnArgumentDefinition
This method returns the default value of the urn fragment. A fragment is either a constant or dynamic. If dynamic this method must return null.- Specified by:
getConstant
in interfaceIRestUrnArgumentDefinition
- Returns:
- The constant value or null.
-
getAttributeName
Description copied from interface:IRestUrnArgumentDefinition
This method returns the attribute definition of the dynamic value. A fragment is either a constant or dynamic. If constant this method must return null.- Specified by:
getAttributeName
in interfaceIRestUrnArgumentDefinition
- Returns:
- The attribute definition or null.
-
getValidations
Description copied from interface:IRestUrnArgumentDefinition
This method returns the validations of the attribute.- Specified by:
getValidations
in interfaceIRestUrnArgumentDefinition
- Returns:
- The validation definitions of the attribute, may not be null.
-
isRequired
public boolean isRequired()Description copied from interface:IRestUrnArgumentDefinition
This method returns whether the urn fragment is required or not. The default value is true.- Specified by:
isRequired
in interfaceIRestUrnArgumentDefinition
- Returns:
- If the argument is required, defaults to true.
-