Class CustomAnnotation
java.lang.Object
org.tasktide.core.model.CustomAnnotation
- All Implemented Interfaces:
TaskTideModel<CustomAnnotation>
Class to hold collection of custom annotations
as a
LinkedHashMap-
Constructor Summary
ConstructorsConstructorDescriptionSimplifies Jakarta (de)serailizationCustomAnnotation(String annoId, Map<String, Object> anno) Construct with attributes -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd entry if not present, returns false if presentgetAnno()Get annotation propertyNot implemented, throws UnsupportedOperationExceptionNot implemented, throws UnsupportedOperationExceptiongetId()Get annotation IdGet value matching key, otherwise nullgetState()Not implemented, throws UnsupportedOperationExceptiongetValueFromField(String field) Delegates to the getKey methodbooleanChecks whether map contains keybooleanChecks if all queried annotations match activevoidSets annotation field to empty hash mapvoidSet annotation IdvoidsetAnnotations(Map<String, Object> anno) Sets annotation propertyvoidNot implemented, throws UnsupportedOperationExceptiontoJson()Serialize to JSON stringSerialize to a human readable formatted JSON stringtoString()Represent as String
-
Constructor Details
-
CustomAnnotation
public CustomAnnotation()Simplifies Jakarta (de)serailization -
CustomAnnotation
-
-
Method Details
-
add
-
getKey
-
hasKey
Checks whether map contains key- Parameters:
key-- Returns:
- boolean
-
resetModel
public void resetModel()Sets annotation field to empty hash map- Specified by:
resetModelin interfaceTaskTideModel<CustomAnnotation>
-
getId
Get annotation Id- Specified by:
getIdin interfaceTaskTideModel<CustomAnnotation>- Returns:
- String
-
setAnnoId
-
getAnno
-
setAnnotations
-
getValueFromField
Delegates to the getKey method- Specified by:
getValueFromFieldin interfaceTaskTideModel<CustomAnnotation>- Parameters:
field-- Returns:
- Object
-
toJson
Serialize to JSON string- Specified by:
toJsonin interfaceTaskTideModel<CustomAnnotation>- Returns:
- String
-
toJsonDoc
Serialize to a human readable formatted JSON string- Specified by:
toJsonDocin interfaceTaskTideModel<CustomAnnotation>- Returns:
- String
-
getState
Not implemented, throws UnsupportedOperationException- Specified by:
getStatein interfaceTaskTideModel<CustomAnnotation>- Returns:
-
getCollection
Not implemented, throws UnsupportedOperationException- Specified by:
getCollectionin interfaceTaskTideModel<CustomAnnotation>- Returns:
-
getAnnotations
Not implemented, throws UnsupportedOperationException- Specified by:
getAnnotationsin interfaceTaskTideModel<CustomAnnotation>- Returns:
-
setAnnotations
Not implemented, throws UnsupportedOperationException- Specified by:
setAnnotationsin interfaceTaskTideModel<CustomAnnotation>- Parameters:
anno-
-
queriedFieldsMatch
Checks if all queried annotations match active- Parameters:
query-- Returns:
- boolean
-
toString
-