io.legaldocml.akn.element.OfficialGazette Maven / Gradle / Ivy
The newest version!
package io.legaldocml.akn.element;
import io.legaldocml.akn.DocumentType;
import io.legaldocml.io.impl.Buffers;
import io.legaldocml.io.XmlWriter;
import java.io.IOException;
import static io.legaldocml.akn.AknElements.OFFICIAL_GAZETTE;
/**
* Element officialGazette is used for describing the structure and content of an issue of an official gazette.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* @author Jacques Militello
*/
public final class OfficialGazette extends CollectionStructure implements DocumentType {
/**
* Memory address.
*/
private static final long ADDRESS_OFFICIAL_GAZETTE = Buffers.address(OFFICIAL_GAZETTE);
/**
* {@inheritDoc}
*/
@Override
public void write(XmlWriter writer) throws IOException {
writer.writeStart(ADDRESS_OFFICIAL_GAZETTE, 15);
super.write(writer);
writer.writeEnd(ADDRESS_OFFICIAL_GAZETTE, 15);
}
/**
* {@inheritDoc}
*/
@Override
public String name() {
return OFFICIAL_GAZETTE;
}
}