Example #1
0
 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);
   }
 }
Example #2
0
 public boolean isOwned(ClassEntity entity) {
   return clazz != null && clazz.getId() == entity.getId();
 }
Example #3
0
 public void setClazz(ClassEntity clazz) {
   this.clazz = clazz;
   this.module = clazz == null ? null : clazz.getModule();
   updateInternalName();
 }