コード例 #1
0
 /**
  * Sets the name for the element definition.
  *
  * @param defn
  * @param name
  */
 public static void setName(SlotDefn defn, String name) {
   if (defn != null) defn.setName(name);
 }
コード例 #2
0
 /**
  * @param slot
  * @throws MetaDataException
  */
 public static void build(SlotDefn slot) throws MetaDataException {
   if (slot != null) slot.build();
 }
コード例 #3
0
 /**
  * @param slot
  * @param id
  */
 public static void setID(SlotDefn slot, int id) {
   if (slot != null) slot.setSlotID(id);
 }
コード例 #4
0
 /**
  * @param slot
  * @param type
  */
 public static void addType(SlotDefn slot, String type) {
   if (slot != null) slot.addType(type);
 }
コード例 #5
0
 /**
  * @param slot
  * @param flag
  */
 public static void setMultipleCardinality(SlotDefn slot, boolean flag) {
   if (slot != null) slot.setMultipleCardinality(flag);
 }
コード例 #6
0
 /**
  * @param slot
  * @param key
  */
 public static void setDisplayNameKey(SlotDefn slot, String key) {
   if (slot != null) slot.setDisplayNameID(key);
 }