Semantic tags can have complex data items like sequences or maps. A simple approach like ValueBuilder#putTag(Object value) or ValueBuilder#putValue(Object value) doesn't always work in this place. ValueBuilder#put(Value(Object value) supplied with a java.util.List or an array would encode into a CBOR sequence. Anyhow it may that the expected result should have been different in this case, therefore a more clear API is necessary.
Current idea involves a ValueBuilder#putTag(Class<? extends SemanticTagBuilder> builderClass) overload to provide a more sophisticated API based on the Semantic Tag implementor.
Semantic tags can have complex data items like sequences or maps. A simple approach like
ValueBuilder#putTag(Object value)
orValueBuilder#putValue(Object value)
doesn't always work in this place.ValueBuilder#put(Value(Object value)
supplied with ajava.util.List
or an array would encode into a CBOR sequence. Anyhow it may that the expected result should have been different in this case, therefore a more clear API is necessary.Current idea involves a
ValueBuilder#putTag(Class<? extends SemanticTagBuilder> builderClass)
overload to provide a more sophisticated API based on the Semantic Tag implementor.