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

java.fedora.server.search.ObjectFields Maven / Gradle / Ivy

Go to download

The Fedora Client is a Java Library that allows API access to a Fedora Repository. The client is typically one part of a full Fedora installation.

The newest version!
/*
 * -----------------------------------------------------------------------------
 *
 * 

License and Copyright: The contents of this file are subject to the * Apache License, Version 2.0 (the "License"); you may not use * this file except in compliance with the License. You may obtain a copy of * the License at * http://www.fedora-commons.org/licenses.

* *

Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for * the specific language governing rights and limitations under the License.

* *

The entire file consists of original code.

*

Copyright © 2008 Fedora Commons, Inc.
*

Copyright © 2002-2007 The Rector and Visitors of the University of * Virginia and Cornell University
* All rights reserved.

* * ----------------------------------------------------------------------------- */ package fedora.server.search; import java.io.InputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import fedora.server.errors.ObjectIntegrityException; import fedora.server.errors.RepositoryConfigurationException; import fedora.server.errors.StreamIOException; import fedora.server.errors.UnrecognizedFieldException; import fedora.server.utilities.DateUtility; import fedora.server.utilities.DCFields; /** * *

Title: ObjectFields.java

*

Description:

* * @author [email protected] * @version $Id: ObjectFields.java 3966 2005-04-21 13:33:01Z rlw $ */ public class ObjectFields extends DCFields { private String m_pid; private String m_label; private String m_fType; private String m_cModel; private String m_state; private String m_ownerId; private Date m_cDate; private Date m_mDate; private Date m_dcmDate; private ArrayList m_bDefs=new ArrayList(); private ArrayList m_bMechs=new ArrayList(); private StringBuffer m_currentContent; private boolean[] m_want=new boolean[26]; public final static int PID=0; public final static int LABEL=1; public final static int FTYPE=2; public final static int CMODEL=3; public final static int STATE=4; public final static int OWNERID=5; public final static int CDATE=6; public final static int MDATE=7; public final static int TITLE=8; public final static int CREATOR=9; public final static int SUBJECT=10; public final static int DESCRIPTION=11; public final static int PUBLISHER=12; public final static int CONTRIBUTOR=13; public final static int DATE=14; public final static int TYPE=15; public final static int FORMAT=16; public final static int IDENTIFIER=17; public final static int SOURCE=18; public final static int LANGUAGE=19; public final static int RELATION=20; public final static int COVERAGE=21; public final static int RIGHTS=22; public final static int DCMDATE=23; public final static int BDEF=24; public final static int BMECH=25; public ObjectFields() { } public ObjectFields(String[] fieldNames) throws UnrecognizedFieldException { for (int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy