Пример #1
0
 public static String getConstruct(Result result) {
   String construct = result.getConstruct();
   if (construct == null) {
     construct = "item";
     result.setConstruct(construct);
   }
   return construct;
 }
Пример #2
0
 public static Result clone(Result result) {
   if (result == null) return null;
   Result clone = create();
   clone.setType(ObjectUtil.clone(result.getType()));
   clone.setName(ObjectUtil.clone(result.getName()));
   clone.setKey(ObjectUtil.clone(result.getKey()));
   clone.setConstruct(ObjectUtil.clone(result.getConstruct()));
   clone.setRequired(ObjectUtil.clone(result.getRequired()));
   return clone;
 }