Lines Matching defs:attribute

237 std::optional<Metadata::Error> AnnotationMetadata::Store(const std::string_view &attribute)
240 return Error(std::string("Unexpected attribute '").append(attribute) +
249 return Metadata::Store(attribute);
252 std::optional<Metadata::Error> AnnotationMetadata::MeetExpRecordAttribute(const std::string_view &attribute,
256 return Error(std::string("Unexpected attribute '").append(attribute) +
266 std::optional<Metadata::Error> AnnotationMetadata::MeetExpIdAttribute(const std::string_view &attribute,
270 return Error(std::string("Unexpected attribute '").append(attribute) +
271 "'. Annotation record attribute must be defined first",
276 return Error(std::string("Unexpected attribute '").append(attribute) +
277 "'. Annotation id attribute already defined",
286 std::optional<Metadata::Error> AnnotationMetadata::MeetExpElementNameAttribute(const std::string_view &attribute,
290 return Error(std::string("Unexpected attribute '").append(attribute) +
291 "'. Annotation record attribute must be defined first",
296 return Error(std::string("Unexpected attribute '").append(attribute) +
307 const std::string_view &attribute, const std::string_view &value)
310 return Error(std::string("Unexpected attribute '").append(attribute) +
311 "'. Annotation element name attribute must be defined first",
316 return Error(std::string("Unexpected attribute '").append(attribute) +
317 "'. Annotation element type attribute already defined",
327 const std::string_view &attribute, const std::string_view &value)
330 return Error(std::string("Unexpected attribute '").append(attribute) +
331 "'. Annotation element name attribute must be defined first",
336 return Error(std::string("Unexpected attribute '").append(attribute) + "'. Annotation element type isn't array",
341 return Error(std::string("Unexpected attribute '").append(attribute) +
342 "'. Annotation element array component type attribute already defined",
351 std::optional<Metadata::Error> AnnotationMetadata::MeetExpElementValueAttribute(const std::string_view &attribute,
355 return Error(std::string("Unexpected attribute '").append(attribute) +
356 "'. Annotation element name attribute must be defined first",
361 return Error(std::string("Unexpected attribute '").append(attribute) +
362 "'. Annotation element type attribute isn't defined",
367 return Error(std::string("Unexpected attribute '").append(attribute) +
368 "'. Annotation element array component type attribute isn't defined",
373 return Error(std::string("Unexpected attribute '").append(attribute) +
381 std::optional<Metadata::Error> AnnotationMetadata::StoreValue(const std::string_view &attribute,
384 auto err = Metadata::StoreValue(attribute, value);
389 if (IsAnnotationRecordAttribute(attribute)) {
390 return MeetExpRecordAttribute(attribute, value);
393 if (IsAnnotationIdAttribute(attribute)) {
394 return MeetExpIdAttribute(attribute, value);
397 if (IsAnnotationElementNameAttribute(attribute)) {
398 return MeetExpElementNameAttribute(attribute, value);
401 if (IsAnnotationElementTypeAttribute(attribute)) {
402 return MeetExpElementTypeAttribute(attribute, value);
405 if (IsAnnotationElementArrayComponentTypeAttribute(attribute)) {
406 return MeetExpElementArrayComponentTypeAttribute(attribute, value);
409 if (IsAnnotationElementValueAttribute(attribute)) {
410 return MeetExpElementValueAttribute(attribute, value);
414 return Error(std::string("Unexpected attribute '").append(attribute) +
479 std::optional<Metadata::Error> FieldMetadata::StoreValue(const std::string_view &attribute,
482 auto err = ItemMetadata::StoreValue(attribute, value);
487 if (IsValueAttribute(attribute)) {