public Map mapOrganisations()

in apache-whisker-xml/src/main/java/org/apache/creadur/whisker/fromxml/JDomBuilder.java [383:398]


	public Map<String, Organisation> mapOrganisations(Document document) {
		final Map<String, Organisation> organisationsById = new HashMap<String, Organisation>();

		final Element childOrganisations = document.getRootElement().getChild(
				"organisations");
		if (childOrganisations != null) {
			@SuppressWarnings("unchecked")
			final List<Element> organisations = (List<Element>) childOrganisations
					.getChildren("organisation");
			for (final Element element : organisations) {
				new JDomBuilder().organisation(element).storeIn(
						organisationsById);
			}
		}
		return Collections.unmodifiableMap(organisationsById);
	}