Opened 4 years ago

Closed 5 months ago

#490 closed enhancement (fixed)

Compound holders

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


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 (5)

comment:1 by Maxim Reznik, 4 years ago

In 5813:

Extend the holder type with a query of a named component

Refs #490

comment:2 by Maxim Reznik, 4 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, 3 years ago


Milestone renamed

comment:4 by vadim.godunko, 3 years ago

Milestone: 18.019.0

Ticket retargeted after milestone closed

comment:5 by vadim.godunko, 5 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.