Codota Logo
RegistryObjectType.getSlot
Code IndexAdd Codota to your IDE (free)

How to use
getSlot
method
in
org.dcm4chee.xds2.infoset.rim.RegistryObjectType

Best Java code snippets using org.dcm4chee.xds2.infoset.rim.RegistryObjectType.getSlot (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: org.dcm4che/dcm4chee-xds2-src-base

public static SlotType1 addSlot(RegistryObjectType ro, String name, String type, String...values) {
  SlotType1 slot = createSlot(name, type, values);
  ro.getSlot().add(slot);
  return slot;
}
public static SlotType1 setSlot(RegistryObjectType ro, String name, String type, Collection<String> values) {
origin: org.dcm4che/dcm4chee-xds2-infoset

public static Map<String, SlotType1> getSlotsFromRegistryObject(RegistryObjectType ro) throws JAXBException {
  List<SlotType1> slots = ro.getSlot();
  Map<String, SlotType1> slotByName = new HashMap<String, SlotType1>(slots == null ? 0 : slots.size());
  if (slots != null) {
    SlotType1 slot;
    for (int i = 0, len = slots.size() ; i < len ; i++) {
      slot = slots.get(i);
      slotByName.put(slot.getName(), slot);
    }
  }
  return slotByName;
}
origin: org.dcm4che/dcm4chee-xds2-src-base

public static SlotType1 removeSlot(RegistryObjectType ro, String name) {
  List<SlotType1> slots = ro.getSlot();
  for (int i = 0, len = slots.size() ; i < len ; i++) {
    if (name.equals(slots.get(i).getName())) {
      return slots.remove(i);
    }
  }
  return null;
}
 
origin: org.dcm4che/dcm4chee-xds2-src-base

public static SlotType1 addOrOverwriteSlot(RegistryObjectType ro, SlotType1 slot) {
  List<SlotType1> slots = ro.getSlot();
  String name = slot.getName();
  SlotType1 oldSlot = null;
  for (int i = 0, len = slots.size() ; i < len ; i++) {
    if (slots.get(i).getName().equals(name)) {
      oldSlot = slots.remove(i);
      break;
    }
  }
  slots.add(slot);
  return oldSlot;
}
 
origin: org.dcm4che/dcm4chee-xds2-infoset

public static void addOrOverwriteSlot(RegistryObjectType ro, Map<String, SlotType1> slots, String slotName, String... val) throws JAXBException {
  if ( slots.containsKey(slotName) ) {
    SlotType1 oldSlot = (SlotType1)slots.get(slotName); 
    ro.getSlot().remove(oldSlot);
  }   
  SlotType1 slot = objFac.createSlotType1();
  slot.setName(slotName);
  ValueListType valueList = objFac.createValueListType();
  for ( int i = 0 ; i < val.length ; i++) {
    valueList.getValue().add(val[i]);
  }
  slot.setValueList(valueList);
  ro.getSlot().add(slot);
}
 
origin: org.dcm4che/dcm4chee-xds2-src-base

public static SlotType1 setSlot(RegistryObjectType ro, String name, String type, Collection<String> values) {
  SlotType1 slot = createSlot(name, type);
  if (values != null && values.size() > 0)
    slot.getValueList().getValue().addAll(values);
  List<SlotType1> slots = ro.getSlot();
  for (int i = 0, len = slots.size() ; i < len ; i++) {
    if (slots.get(i).getName().equals(name)) {
      slots.remove(i);
      break;
    }
  }
  slots.add(slot);
  return slot;
}
 
origin: org.dcm4che/dcm4chee-xds2-ws

private void copySlotType(List<Slot> slots, RegistryObjectType roType) {
  if (slots != null) {
    SlotType1 slotType;
    HashMap<String, SlotType1> slotTypeMap = new HashMap<String, SlotType1>();
    for (Slot slot : slots) {
      slotType = slotTypeMap.get(slot.getName());
      if (log.isDebugEnabled())
        log.debug("########add slot name:"+slot.getName()+" value:"+slot.getValue()+" parent.pk:"+slot.getParent().getPk()+" pk:"+slot.getPk());
      if (slotType == null) {
        slotType = factory.createSlotType1();
        slotType.setName(slot.getName());
        slotType.setSlotType(slot.getType());
        slotType.setValueList(factory.createValueListType());
        slotTypeMap.put(slot.getName(), slotType);
      }
      slotType.getValueList().getValue().add(slot.getValue());
    }
    roType.getSlot().addAll(slotTypeMap.values());
  }
}
 
org.dcm4chee.xds2.infoset.rimRegistryObjectTypegetSlot

Popular methods of RegistryObjectType

  • getClassification
    Gets the value of the classification property. This accessor method returns a reference to the live
  • getExternalIdentifier
    Gets the value of the externalIdentifier property. This accessor method returns a reference to the l
  • getId
  • setDescription
    Sets the value of the description property.
  • setName
    Sets the value of the name property.
  • <init>
  • getDescription
    Gets the value of the description property.
  • getLid
    Gets the value of the lid property.
  • getName
    Gets the value of the name property.
  • getObjectType
    Gets the value of the objectType property.
  • setHome
  • setId
  • setHome,
  • setId,
  • setLid,
  • setObjectType,
  • setStatus,
  • setVersionInfo

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • findViewById (Activity)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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