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

io.legaldocml.akn.element.FRBRmasterExpression 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_MASTER_EXPRESSION;

/**
 * The element FRBRmasterExpression is the metadata property identifying the master expression, i.e., the expression
 * whose ids are used as permanent ids in the wId attributes. An expression without the FRBRmasterExpression element is
 * considered a master expression itself, i.e., the first version, or the most important version, of a document
 * expressed in the only language, or in the most important language. Any other situation (subsequent versions, or
 * language variants, or content variants) must have the FRBRmasterExpression element pointing to the URI of the master
 * expression. If the FRBRmasterEpression is specified, but without a href pointing to the masterExpression, it is
 * assumed that NO master expression exist in reality, but an UR-Expression exist, whose ids are used in this expression
 * as wIds.
 *
 * 
 *   
 * 
* * @author Jacques Militello */ public final class FRBRmasterExpression extends LinkType { /** * Memory address. */ private static final long ADDRESS_FRBR_MASTER_EXPRESSION = Buffers.address(FRBR_MASTER_EXPRESSION); /** * {@inheritDoc} */ @Override public void write(XmlWriter writer) throws IOException { writer.writeStart(ADDRESS_FRBR_MASTER_EXPRESSION, 20); super.write(writer); writer.writeEnd(ADDRESS_FRBR_MASTER_EXPRESSION, 20); } /** * {@inheritDoc} */ @Override public String name() { return FRBR_MASTER_EXPRESSION; } /** * {@inheritDoc} */ @Override public void accept(AknVisitor visitor) { visitor.visit(this); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy