io.legaldocml.akn.element.Ul Maven / Gradle / Ivy
The newest version!
package io.legaldocml.akn.element;
import io.legaldocml.akn.group.HTMLblock;
import io.legaldocml.io.impl.Buffers;
import io.legaldocml.io.XmlWriter;
import java.io.IOException;
import static io.legaldocml.akn.AknElements.UL;
/**
* The element ul is an HTML element and is used in Akoma Ntoso as in HTML, for an unordered list of list item (elements
* li).
*
*
*
*
*
* @author Jacques Militello
*/
public final class Ul extends ListItems implements LiElement, HTMLblock {
/**
* Memory address.
*/
private static final long ADDRESS_UL = Buffers.address(UL);
/**
* {@inheritDoc}
*/
@Override
public void write(XmlWriter writer) throws IOException {
writer.writeStart(ADDRESS_UL, 2);
super.write(writer);
writer.writeEnd(ADDRESS_UL, 2);
}
/**
* {@inheritDoc}
*/
@Override
public String name() {
return UL;
}
}