All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.commonmark.ext.image.attributes.ImageAttributes Maven / Gradle / Ivy

The newest version!
package org.commonmark.ext.image.attributes;

import org.commonmark.node.CustomNode;
import org.commonmark.node.Delimited;

import java.util.Map;

/**
 * A node containing text and other inline nodes as children.
 */
public class ImageAttributes extends CustomNode implements Delimited {

    private final Map attributes;

    public ImageAttributes(Map attributes) {
        this.attributes = attributes;
    }

    @Override
    public String getOpeningDelimiter() {
        return "{";
    }

    @Override
    public String getClosingDelimiter() {
        return "}";
    }

    public Map getAttributes() {
        return attributes;
    }

    @Override
    protected String toStringAttributes() {
        return "imageAttributes=" + attributes;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy