package edu.indiana.lib.osid.base.repository.http;
/**********************************************************************************
* $URL: https://source.sakaiproject.org/svn/citations/trunk/citations-osid/web2bridge/src/java/edu/indiana/lib/osid/base/repository/http/RecordStructure.java $
* $Id: RecordStructure.java 105079 2012-02-24 23:08:11Z ottenhoff@longsight.com $
**********************************************************************************
*
* Copyright (c) 2003, 2004, 2005, 2007, 2008 The Sakai Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ECL-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
**********************************************************************************/
/**
* @author Massachusetts Institute of Techbology, Sakai Software Development Team
* @version
*/
public class RecordStructure extends edu.indiana.lib.osid.base.repository.RecordStructure
{
private static org.apache.commons.logging.Log _log = edu.indiana.lib.twinpeaks.util.LogUtils.getLog(RecordStructure.class);
private String idString = "af106d4f201080006d751920168000100";
private String displayName = "Library Content";
private String description = "Holds metadata for an asset of no particular kind";
private String format = "";
private String schema = "";
private org.osid.shared.Type type = new Type("mit.edu","repository","library_content");
private boolean repeatable = false;
private static RecordStructure recordStructure = new RecordStructure();
private org.osid.shared.Id id = null;
protected static RecordStructure getInstance()
{
return recordStructure;
}
protected RecordStructure()
{
try
{
this.id = Managers.getIdManager().getId(this.idString);
}
catch (Throwable t)
{
_log.warn(t.getMessage());
}
}
public String getDisplayName()
throws org.osid.repository.RepositoryException
{
return this.displayName;
}
public String getDescription()
throws org.osid.repository.RepositoryException
{
return this.description;
}
public String getFormat()
throws org.osid.repository.RepositoryException
{
return this.format;
}
public String getSchema()
throws org.osid.repository.RepositoryException
{
return this.schema;
}
public org.osid.shared.Type getType()
throws org.osid.repository.RepositoryException
{
return this.type;
}
public boolean isRepeatable()
throws org.osid.repository.RepositoryException
{
return this.repeatable;
}
public org.osid.shared.Id getId()
throws org.osid.repository.RepositoryException
{
return this.id;
}
public org.osid.repository.PartStructureIterator getPartStructures()
throws org.osid.repository.RepositoryException
{
java.util.Vector results = new java.util.Vector();
try
{
results.addElement(ContributorPartStructure.getInstance());
results.addElement(CoveragePartStructure.getInstance());
results.addElement(CreatorPartStructure.getInstance());
results.addElement(DatePartStructure.getInstance());
results.addElement(DateRetrievedPartStructure.getInstance());
results.addElement(DOIPartStructure.getInstance());
results.addElement(EditionPartStructure.getInstance());
results.addElement(EndPagePartStructure.getInstance());
results.addElement(FormatPartStructure.getInstance());
results.addElement(InLineCitationPartStructure.getInstance());
results.addElement(IsnIdentifierPartStructure.getInstance());
results.addElement(IssuePartStructure.getInstance());
results.addElement(LanguagePartStructure.getInstance());
results.addElement(NotePartStructure.getInstance());
results.addElement(OpenUrlPartStructure.getInstance());
results.addElement(PagesPartStructure.getInstance());
results.addElement(PublicationLocationPartStructure.getInstance());
results.addElement(PublisherPartStructure.getInstance());
results.addElement(RelationPartStructure.getInstance());
results.addElement(RightsPartStructure.getInstance());
results.addElement(SourcePartStructure.getInstance());
results.addElement(SourceTitlePartStructure.getInstance());
results.addElement(StartPagePartStructure.getInstance());
results.addElement(SubjectPartStructure.getInstance());
results.addElement(TypePartStructure.getInstance());
results.addElement(URLPartStructure.getInstance());
results.addElement(VolumePartStructure.getInstance());
results.addElement(YearPartStructure.getInstance());
}
catch (Throwable t)
{
throw new org.osid.repository.RepositoryException(org.osid.repository.RepositoryException.OPERATION_FAILED);
}
return new PartStructureIterator(results);
}
public boolean validateRecord(org.osid.repository.Record record)
throws org.osid.repository.RepositoryException
{
return true;
}
}