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

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

package io.legaldocml.akn.element;

import io.legaldocml.akn.visitor.AknVisitor;
import io.legaldocml.io.XmlReader;
import io.legaldocml.io.XmlWriter;

import java.io.IOException;

import static io.legaldocml.akn.AknElements.FRBR_FORMAT;
import static io.legaldocml.akn.AknElements.FRBR_PORTION;

/**
 * The group ManifProperties lists the properties that are characteristics of the FRBR Manifestation level.
 *
 * 
 *   
 * 	   
 *       
 *       
 *     
 * 
* * @author Jacques Militello */ public abstract class ManifProperties extends CoreProperties { // Optional. private FRBRformat format; // Optional. private FRBRportion portion; /** * {@inheritDoc} */ @Override public void write(XmlWriter writer) throws IOException { super.write(writer); if (this.format != null) { this.format.write(writer); } if (this.portion != null) { this.portion.write(writer); } } /** * {@inheritDoc} */ @Override public void read(XmlReader reader) { super.read(reader); if (reader.getQName().equalsLocalName(FRBR_FORMAT)) { this.format = new FRBRformat(); this.format.read(reader); reader.nextStartOrEndElement(); } if (reader.getQName().equalsLocalName(FRBR_PORTION)) { this.portion = new FRBRportion(); this.portion.read(reader); reader.nextStartOrEndElement(); } } /** * {@inheritDoc} */ @Override public void accept(AknVisitor visitor) { super.accept(visitor); if (this.format != null) { this.format.accept(visitor); } if (this.portion != null) { this.portion.accept(visitor); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy