Search in sources :

Example 1 with IExtensionAttributeWriter

use of org.freeplane.core.io.IExtensionAttributeWriter in project freeplane by freeplane.

the class TreeXmlWriter method addExtensionAttributes.

public void addExtensionAttributes(final Object map, final Collection<IExtension> extensions) {
    final Iterator<IExtension> extensionIterator = extensions.iterator();
    while (extensionIterator.hasNext()) {
        final IExtension extension = extensionIterator.next();
        final Iterator<IExtensionAttributeWriter> writerIterator = writeManager.getExtensionAttributeWriters().iterator(extension.getClass());
        while (writerIterator.hasNext()) {
            writerIterator.next().writeAttributes(this, map, extension);
        }
    }
}
Also used : IExtensionAttributeWriter(org.freeplane.core.io.IExtensionAttributeWriter) IExtension(org.freeplane.core.extension.IExtension)

Aggregations

IExtension (org.freeplane.core.extension.IExtension)1 IExtensionAttributeWriter (org.freeplane.core.io.IExtensionAttributeWriter)1