Description
consider the this invoice.avdl:
@namespace("purchase") protocol InvoiceProtocol{ import idl "../customer/data.avdl"; import idl "../product/data.avdl"; record Invoice{ timestamp_ms purchaseTime; customer.Customer customer; array<product.Item> items = []; } }
now, if I do this:
for(Schema s : protocol.getTypes()){ System.out.println(s.getName() + " " + s.isImported()); }
this should produce
Customer true Item true Invoice false
I have some use case where we want to perform operations only to the "main" schema and leave all imported schema alone.
This feature (s.isImported()) would be really nice to have (if it's not available already).
Thanks