/** * @return category with uid filled in. */ public static BwCategory makeCategory() { return (BwCategory)new BwCategory().initUid(); }
@Override public Object clone() { final BwCategory cat = new BwCategory(); super.copyTo(cat); cat.setWord((BwString)getWord().clone()); if (getDescription() != null) { cat.setDescription((BwString)getDescription().clone()); } cat.setName(getName()); return cat; } }