/** * Register multiple ID-to-XMLObject mappings for this object's owner's children. * * @param idIndex the ID-to-XMLObject mapping to register */ public void registerIDMappings(IDIndex idIndex) { if (idIndex == null || idIndex.isEmpty()) { return; } idMappings.putAll(idIndex.getIDMappings()); if (owner.hasParent()) { owner.getParent().getIDIndex().registerIDMappings(idIndex); } }
/** * Register multiple ID-to-XMLObject mappings for this object's owner's children. * * @param idIndex the ID-to-XMLObject mapping to register */ public void registerIDMappings(IDIndex idIndex) { if (idIndex == null || idIndex.isEmpty()) { return; } idMappings.putAll(idIndex.getIDMappings()); if (owner.hasParent()) { owner.getParent().getIDIndex().registerIDMappings(idIndex); } }