Codota Logo
RcObjectMetadata.getRootId
Code IndexAdd Codota to your IDE (free)

How to use
getRootId
method
in
org.rescarta.metadata.RcObjectMetadata

Best Java code snippets using org.rescarta.metadata.RcObjectMetadata.getRootId (Showing top 5 results out of 315)

  • Common ways to obtain RcObjectMetadata
private void myMethod () {
RcObjectMetadata r =
  • Codota IconFile file;RcObjectMetadata.readMets(file)
  • Smart code suggestions by Codota
}
origin: org.rescarta.rc-mct/rc-mct

/**
 * Checks if an object id using the specified institution id, aggregator id,
 * and root id has already been used in the current data set.
 * 
 * @param institutionId
 *            The institution is the check for.
 * @param aggregatorId
 *            The aggregator id to check for.
 * @param rootId
 *            The root id to check for.
 * 
 * @return True if an object id using the specified institution id,
 *         aggregator id, and root id has already been used in the current
 *         data set.
 */
private boolean isObjectIdUsed(String institutionId, String aggregatorId, String rootId) {
  if (this.targetObjects != null) {
    for (RcMetadata rcMd : this.targetObjects) {
      if (rcMd instanceof RcObjectMetadata &&
          ((RcObjectMetadata) rcMd).getInstitutionId().equals(institutionId) &&
          ((RcObjectMetadata) rcMd).getAggregator().equals(aggregatorId) &&
          ((RcObjectMetadata) rcMd).getRootId().equals(rootId)) {
        return true;
      }
    }
  }
  return false;
}
origin: org.rescarta.rc-cmgr/rc-cmgr

curOutputFilename += curRcObjectMetadata.getRootId();
curOutputFilename += ".xml";
curOutputFilename += curRcObjectMetadata.getRootId() + File.separator;
if (rcDcOutputParams.getDcFilenameMode() == RcDcOutputParameters.DC_OUTPUT_FILENAME_USE_FULL_OBJECT_ID) {
  curOutputFilename += curRcObjectMetadata.getInstitutionId();
  curOutputFilename += curRcObjectMetadata.getAggregator();
  curOutputFilename += curRcObjectMetadata.getRootId();
  curOutputFilename += ".xml";
origin: org.rescarta.rc-dct/rc-dct

curDestinationDirName = rootDestinationDirName + rcObjMd.getInstitutionId() + File.separator + rcObjMd.getAggregator() + File.separator + rcObjMd.getRootId();
curDestinationDir = new File(curDestinationDirName);
if (curDestinationDir.exists() && curDestinationDir.listFiles().length > 0) {
origin: org.rescarta.rc-mct/rc-mct

    this.config.getObjectIdSource() == RcMetadataCreationToolConfiguration.SHARED_FILE_OBJECT_ID_SOURCE) {
  String finalizedRootId = rcFileSyncObjIdSrc.getRootId(rcObjMd.getInstitutionId(), rcObjMd.getAggregator());
  if (!finalizedRootId.equals(rcObjMd.getRootId())) {
    this.showInformationMessageDialog("Root id " + rcObjMd.getRootId() + " was taken by another user.  Root id " + finalizedRootId + " will be used instead.", "Root Id Reassigned");
    rcObjMd.setRootId(finalizedRootId);
if (this.creatingMetadata) {
  String curRootId = rcObjMd.getRootId();
  if (this.config.getObjectIdSource() == RcMetadataCreationToolConfiguration.USER_CONFIGURATION_OBJECT_ID_SOURCE) {
origin: org.rescarta.rc-dct/rc-dct

if (!curDestinationDirectory.exists())
  curDestinationDirectory.mkdir();
curDestinationDirectoryPath += curSourceRcObjectMetadata.getRootId() + File.separator;
curDestinationDirectory = new File(curDestinationDirectoryPath);
if (curDestinationDirectory.exists())
org.rescarta.metadataRcObjectMetadatagetRootId

Popular methods of RcObjectMetadata

  • getObjectType
  • getId
  • getTitle
  • clearStructure
  • getNames
  • loadStructure
  • readMets
  • getAggregator
  • getDateCaptured
  • getDatePublished
  • getInstitutionId
  • getParentFileSystemDataSourceMetadata
  • getInstitutionId,
  • getParentFileSystemDataSourceMetadata,
  • clone,
  • getLanguages,
  • getMods,
  • readMods,
  • setRootId,
  • writeMets,
  • getAbstract

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
  • startActivity (Activity)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now