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

io.legaldocml.akn.element.FRBRWork Maven / Gradle / Ivy

package io.legaldocml.akn.element;

import io.legaldocml.io.impl.Buffers;
import io.legaldocml.io.XmlReader;
import io.legaldocml.io.XmlWriter;

import java.io.IOException;

/**
 * The element FRBRWork is the metadata container of identifying properties related to the Work level according to the
 * FRBR hierarchy.
 *
 * 
 * 	 <xsd:element name="FRBRWork">
 * 	   <xsd:complexType>
 * 	     <xsd:complexContent>
 * 		   <xsd:extension base="coreProperties">
 * 		     <xsd:sequence>
 * 			   <xsd:group ref="workProperties"/>
 * 			 <xsd:sequence>
 *  	   <xsd:extension>
 * 	     <xsd:complexContent>
 * 	   <xsd:complexType>
 * 	 <xsd:element>
 * 
* * @author Jacques Militello */ public final class FRBRWork extends WorkProperties { /** * XML Tag element name. */ public static final String ELEMENT = "FRBRWork"; /** * Memory address. */ private static final long ADDRESS = Buffers.address(ELEMENT); /** * {@inheritDoc} */ @Override public void write(XmlWriter writer) throws IOException { writer.writeStart(ADDRESS, 8); super.write(writer); writer.writeEnd(ADDRESS, 8); } /** * {@inheritDoc} */ @Override public void read(XmlReader reader) { super.read(reader); if (reader.getQName().equalsLocalName(FRBRWork.ELEMENT)) { reader.nextStartOrEndElement(); } else { throw new IllegalStateException(reader.getQName().toString()); } } /** * {@inheritDoc} */ @Override public String name() { return ELEMENT; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy