public org.osid.shared.ObjectIterator getPartValuesByPartStructure( org.osid.shared.Id partStructureId) throws org.osid.repository.RepositoryException { if (partStructureId == null) { throw new org.osid.repository.RepositoryException( org.osid.shared.SharedException.NULL_ARGUMENT); } try { java.util.Vector results = new java.util.Vector(); org.osid.repository.PartIterator partIterator = getPartsByPartStructure(partStructureId); while (partIterator.hasNextPart()) { org.osid.repository.Part part = partIterator.nextPart(); results.addElement(part.getValue()); } return new ObjectIterator(results); } catch (Throwable t) { LOG.warn(t.getMessage()); throw new org.osid.repository.RepositoryException(org.osid.OsidException.OPERATION_FAILED); } }
public java.io.Serializable getPartValue(org.osid.shared.Id partId) throws org.osid.repository.RepositoryException { org.osid.repository.Part part = getPart(partId); return part.getValue(); }