io.legaldocml.akn.element.FRBRauthoritative Maven / Gradle / Ivy
The newest version!
package io.legaldocml.akn.element;
import io.legaldocml.akn.visitor.AknVisitor;
import io.legaldocml.io.XmlWriter;
import io.legaldocml.io.impl.Buffers;
import java.io.IOException;
import static io.legaldocml.akn.AknElements.FRBR_AUTHORITATIVE;
/**
* The element FRBRauthoritative is the metadata property containing a boolean value to determine whether the document
* contains authoritative text (i.e., content that is the official, authoritative product of an official workflow from
* an entity that is entrusted with generating an official, authoriative version of the document.
*
*
*
*
*
* @author Jacques Militello
*/
public final class FRBRauthoritative extends BooleanValueType {
/**
* Memory address.
*/
private static final long ADDRESS_FRBR_AUTHORITATIVE = Buffers.address(FRBR_AUTHORITATIVE);
/**
* {@inheritDoc}
*/
@Override
public void write(XmlWriter writer) throws IOException {
writer.writeStart(ADDRESS_FRBR_AUTHORITATIVE, 17);
super.write(writer);
writer.writeEnd(ADDRESS_FRBR_AUTHORITATIVE, 17);
}
/**
* {@inheritDoc}
*/
@Override
public String name() {
return FRBR_AUTHORITATIVE;
}
/**
* {@inheritDoc}
*/
@Override
public void accept(AknVisitor visitor) {
visitor.visit(this);
}
}