Opened 3 years ago

Last modified 21 months ago

#490 new enhancement

Compound holders

Reported by: Maxim Reznik Owned by:
Priority: major Milestone: 19.0
Component: Matreshka - XML Processor Version:
Keywords: compound holder Cc:

Description

We need more general way to get component of a holder in XML templates then JSON_Object only.

I propose to add Component function to League.Holder.

Change History (4)

comment:1 by Maxim Reznik, 3 years ago

In 5813:

Extend the holder type with a query of a named component

Refs #490

comment:2 by Maxim Reznik, 3 years ago

The other idea is to avoid Component/First methods and keep pointer to implementation functions in a separate map (Tag->Function).

This allows extend a holder of particular type with both component and iteration function, but it requires more then one generic instantiations - (Generic_Holder + Generic_Iterable_Holders + Generic_Compound_Holders).

We also perhaps should rewrite JSON_Object/JSON_Array holder to implement this generic interface and drop dependency XML template from JSON altogether.

comment:3 by vadim.godunko, 21 months ago

Milestone: 0.8.018.0

Milestone renamed

comment:4 by vadim.godunko, 21 months ago

Milestone: 18.019.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.