@SuppressWarnings("unchecked") final SortedMap<String, ObjAttribute> getAttributeMapInternal() { return (SortedMap<String, ObjAttribute>) super.getAttributeMap(); }
/** * Returns a SortedMap of all attributes that either belong to this ObjEntity or * inherited. */ public SortedMap getAttributeMap() { if (superEntityName == null) { return super.getAttributeMap(); } SortedMap attributeMap = new TreeMap(); appendAttributes(attributeMap); return attributeMap; }
/** * Recursively appends all attributes in the entity inheritance hierarchy. */ final void appendAttributes(Map map) { map.putAll(super.getAttributeMap()); ObjEntity superEntity = getSuperEntity(); if (superEntity != null) { superEntity.appendAttributes(map); } }