Package org.marc4j.marc

Examples of org.marc4j.marc.VariableField


            Record record = reader.next();

            List fields = record.getVariableFields();
            Iterator i = fields.iterator();
            while (i.hasNext()) {
                VariableField field = (VariableField) i.next();
                String tag = field.getTag();
                if (table.containsKey(tag)) {
                    Integer counts = (Integer) table.get(tag);
                    table.put(tag, new Integer(counts.intValue() + 1));
                } else {
                    table.put(tag, new Integer(1));
View Full Code Here


        if (Verifier.isControlField(tag))
            i = controlFields.iterator();
        else
            i = dataFields.iterator();
        while (i.hasNext()) {
            VariableField field = (VariableField) i.next();
            if (field.getTag().equals(tag))
                return field;
        }
        return null;
    }
View Full Code Here

        if (Verifier.isControlField(tag))
            i = controlFields.iterator();
        else
            i = dataFields.iterator();
        while (i.hasNext()) {
            VariableField field = (VariableField) i.next();
            if (field.getTag().equals(tag))
                fields.add(field);
        }
        return fields;
    }
View Full Code Here

TOP

Related Classes of org.marc4j.marc.VariableField

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.