Package ORG.oclc.os.SRW

Source Code of ORG.oclc.os.SRW.TermList

/*
* TermList.java
*
* Created on October 20, 2006, 9:51 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

package ORG.oclc.os.SRW;

import gov.loc.www.zing.srw.TermType;
import gov.loc.www.zing.srw.TermTypeWhereInList;

/**
*
* @author levan
*/
public class TermList extends SRWDiagnosticsHolder {
    TermType[] terms;
    public TermList() {
    }

    public TermList(TermType[] terms) {
        TermType t;
        this.terms=new TermType[terms.length];
        for(int i=0; i<terms.length; i++) {
            t=terms[i];
            this.terms[i]=new TermType(t.getValue(), t.getNumberOfRecords(), t.getDisplayTerm(), TermTypeWhereInList.inner, null);
        }
    }

    public TermList(String[] terms) {
        String t;
        this.terms=new TermType[terms.length];
        for(int i=0; i<terms.length; i++) {
            t=terms[i];
            this.terms[i]=new TermType(t, null, t, TermTypeWhereInList.inner, null);
        }
    }

    public TermType[] getTerms() {
        return terms;
    }

    public void setTerms(TermType[] terms) {
        this.terms=terms;
    }
}
TOP

Related Classes of ORG.oclc.os.SRW.TermList

TOP
Copyright © 2018 www.massapi.com. 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.