public void registerParts(InputStream is) throws IOException, ParseException { BreezeFile file = BreezeParser.parseBreezeFile(is); // TODO for (BreezePart part : file.parts) breezeParts.put(part.getName(), part); }
public Collection<BreezePart> getTopLevelParts() { Set<BreezePart> parts = new HashSet<BreezePart>(breezeParts.values()); for (BreezePart part : breezeParts.values()) for (RawBreezePartReference ref : part.getParts()) parts.remove(get(ref.name())); return parts; }