if (part.getPartStructure().getId().isEqual(partStructureId))
/** * This method searches the current record for a Part using its * PartStructure Type. * * @param partStructureType PartStructure Type of Part you need. * @return the Part if it exists in the current record, null if it does not. */ private org.osid.repository.Part recordHasPart( org.osid.shared.Type partStructureType ) { try { org.osid.repository.PartIterator pit = record.getParts(); while( pit.hasNextPart() ) { org.osid.repository.Part part = pit.nextPart(); if( part.getPartStructure().getType().isEqual( partStructureType ) ) { return part; } } } catch( org.osid.repository.RepositoryException re ) { log.warn( "recordHasPart() failed getting Parts.", re ); } // did not find the Part return null; }
this.displayName = this.partStructure.getDisplayName();
this.displayName = this.partStructure.getDisplayName();
if (part.getPartStructure().getId().isEqual(partStructureId))
/** * This method searches the current record for a Part using its * PartStructure Type. * * @param partStructureType PartStructure Type of Part you need. * @return the Part if it exists in the current record, null if it does not. */ private org.osid.repository.Part recordHasPart( org.osid.shared.Type partStructureType ) { try { org.osid.repository.PartIterator pit = record.getParts(); while( pit.hasNextPart() ) { org.osid.repository.Part part = pit.nextPart(); if( part.getPartStructure().getType().isEqual( partStructureType ) ) { return part; } } } catch( org.osid.repository.RepositoryException re ) { log.warn( "recordHasPart() failed getting Parts.", re ); } // did not find the Part return null; }
if (part.getPartStructure().getId().isEqual(partStructureId))
String type = part.getPartStructure().getType() .getKeyword();
if (part.getPartStructure().getId().isEqual(partStructureId))
if (part.getPartStructure().getId().isEqual(partStructureId))
if (part.getPartStructure().getId().isEqual(partStructureId))
if (part.getPartStructure().getId().isEqual(partStructureId))
if (part.getPartStructure().getId().isEqual(partStructureId))