Example #1
0
 /**
  * @param defn
  * @param prop
  * @throws MetaDataException
  */
 public static void addPropertyDefn(ObjectDefn defn, PropertyDefn prop) throws MetaDataException {
   if (defn != null) defn.addProperty(prop);
 }
Example #2
0
 /**
  * Sets the name for the element definition.
  *
  * @param defn
  * @param name
  */
 public static void setName(ObjectDefn defn, String name) {
   if (defn != null) defn.setName(name);
 }
Example #3
0
 /**
  * @param element
  * @param key
  */
 public static void setDisplayNameKey(ObjectDefn element, String key) {
   if (element != null) element.setDisplayNameKey(key);
 }