Package com.priint.pubserver.entity
Class EntityMethod
java.lang.Object
com.priint.pubserver.entity.EntityMethod
- All Implemented Interfaces:
Serializable
The type Entity method.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet list of method annotations.Defaults to an empty string.Method identifier is a system wide, unique name of the method.Description of the parameters to use when calling the method.voidsetAnnotation(List<String> annotation) Set list of method annotations.voidsetDescription(String description) Throws NullArgumentException if input isnull.voidsetIdentifier(String identifier) Throws NullArgumentException if input isnull.voidsetParameter(List<KeyValue> parameter) Throws NullArgumentException if input isnull.
-
Constructor Details
-
EntityMethod
public EntityMethod()
-
-
Method Details
-
getIdentifier
Method identifier is a system wide, unique name of the method. E.g. "getKeyValueListOfSubentities"- Returns:
- the identifier
-
setIdentifier
Throws NullArgumentException if input is
null.- Parameters:
identifier- the identifier
-
getAnnotation
Get list of method annotations.Defaults to an empty list.
- Returns:
- annotation annotation
-
setAnnotation
Set list of method annotations.Throws NullArgumentException if input is
null.- Parameters:
annotation-
-
getParameter
Description of the parameters to use when calling the method.- The KeyValue.key contains the name of the parameter.
- The KeyValue.value contains the documentation.
- The KeyValue.datatype contains the data type of the parameter.
- Returns:
- parameter as List of
KeyValue
- The KeyValue.key contains the name of the parameter.
-
setParameter
Throws NullArgumentException if input is
null.- Parameters:
parameter-
-
getDescription
Defaults to an empty string.
- Returns:
- description as String
-
setDescription
Throws NullArgumentException if input is
null.- Parameters:
description-
-