Package org.marc4j.marc

Examples of org.marc4j.marc.IllegalAddException


     */
    public void addSubfield(Subfield subfield) {
        if (subfield instanceof SubfieldImpl)
            subfields.add(subfield);
        else
            throw new IllegalAddException("Subfield");
    }
View Full Code Here


     *             when the parameter is not a <code>VariableField</code>
     *             instance
     */
    public void addVariableField(VariableField field) {
        if (!(field instanceof VariableField))
            throw new IllegalAddException("Expected VariableField instance");

        String tag = field.getTag();
        if (Verifier.isControlNumberField(tag)) {
            if (Verifier.hasControlNumberField(controlFields))
                controlFields.set(0, field);
View Full Code Here

TOP

Related Classes of org.marc4j.marc.IllegalAddException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.