protected void updateInternalName() { if (name != null) { if (clazz != null) internalName = "\0" + clazz.getLowerName() + "##" + (caseSensitise ? lowerName : name); else if (module != null) internalName = "\0" + module.getInternalName() + "##" + (caseSensitise ? lowerName : name); } }
public boolean isOwned(ClassEntity entity) { return clazz != null && clazz.getId() == entity.getId(); }
public void setClazz(ClassEntity clazz) { this.clazz = clazz; this.module = clazz == null ? null : clazz.getModule(); updateInternalName(); }