/** * 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); }
/** * @param slot * @throws MetaDataException */ public static void build(SlotDefn slot) throws MetaDataException { if (slot != null) slot.build(); }
/** * @param slot * @param id */ public static void setID(SlotDefn slot, int id) { if (slot != null) slot.setSlotID(id); }
/** * @param slot * @param type */ public static void addType(SlotDefn slot, String type) { if (slot != null) slot.addType(type); }
/** * @param slot * @param flag */ public static void setMultipleCardinality(SlotDefn slot, boolean flag) { if (slot != null) slot.setMultipleCardinality(flag); }
/** * @param slot * @param key */ public static void setDisplayNameKey(SlotDefn slot, String key) { if (slot != null) slot.setDisplayNameID(key); }