congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ExternalIdentifierType.setIdentificationScheme
Code IndexAdd Tabnine to your IDE (free)

How to use
setIdentificationScheme
method
in
org.dcm4chee.xds2.infoset.rim.ExternalIdentifierType

Best Java code snippets using org.dcm4chee.xds2.infoset.rim.ExternalIdentifierType.setIdentificationScheme (Showing top 3 results out of 315)

origin: org.dcm4che/dcm4chee-xds2-infoset

public static String setExternalIdentifierValue(String urn, String value, RegistryObjectType ro) {
  List<ExternalIdentifierType> list = ro.getExternalIdentifier();
  ExternalIdentifierType ei;
  for ( int i = 0, len = list.size() ; i < len ; i++ ) {
    ei = list.get(i);
    if ( ei.getIdentificationScheme().equals(urn)) {
      String oldValue = ei.getValue();
      ei.setValue(value);
      return oldValue;
    }
  }
  ei = new ExternalIdentifierType();
  ei.setIdentificationScheme(urn);
  ei.setValue(value);
  list.add(ei);
  return null;
}
origin: org.dcm4che/dcm4chee-xds2-ws

private void copyExternalIdentifierType(Set<ExternalIdentifier> externalIdentifiers, RegistryObjectType roType) {
  if (externalIdentifiers != null) {
    List<ExternalIdentifierType> eiTypes = roType.getExternalIdentifier();
    ExternalIdentifierType eiType;
    for (ExternalIdentifier ei : externalIdentifiers) {
      eiType = factory.createExternalIdentifierType();
      toEbXmlObj(ei, eiType);
      if (ei.getIdentificationScheme() != null) {
        eiType.setIdentificationScheme(ei.getIdentificationScheme().getId());
      } else {
        log.error("IdentificationScheme is null! ExternalIdentifier id:"+ei.getId());
        eiType.setIdentificationScheme("urn:willi:12345-abcd-123");
      }
      eiType.setValue(ei.getValue());
      if (ei.getRegistryObject() != null) {
        eiType.setRegistryObject(ei.getRegistryObject().getId());
      } else {
        log.error("RegistryObject is null! ExternalIdentifier id:"+ei.getId());
        eiType.setRegistryObject("urn:willi:12345-abcd-456");
      }
      eiTypes.add(eiType);
    }
  }
}
origin: org.dcm4che/dcm4chee-xds2-src-base

public static ExternalIdentifierType createExternalIdentifier(String id,
    String scheme, String registryObject, String value, String name) {
  ExternalIdentifierType ei = rimFactory.createExternalIdentifierType();
  ei.setId(id);
  ei.setIdentificationScheme(scheme);
  ei.setObjectType("urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:ExternalIdentifier");
  ei.setRegistryObject(registryObject);
  ei.setValue(value);
  InternationalStringType is = rimFactory.createInternationalStringType();
  LocalizedStringType v = rimFactory.createLocalizedStringType();
  v.setValue(name);
  is.getLocalizedString().add(v);
  ei.setName(is);
  return ei;
}
 
org.dcm4chee.xds2.infoset.rimExternalIdentifierTypesetIdentificationScheme

Javadoc

Sets the value of the identificationScheme property.

Popular methods of ExternalIdentifierType

  • getIdentificationScheme
    Gets the value of the identificationScheme property.
  • getValue
    Gets the value of the value property.
  • setValue
    Sets the value of the value property.
  • setRegistryObject
    Sets the value of the registryObject property.
  • <init>
  • getRegistryObject
    Gets the value of the registryObject property.
  • setId
  • setName
  • setObjectType

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • String (java.lang)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • IsNull (org.hamcrest.core)
    Is the value null?
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now