code: public Attribute getTypeAttribute()
      {
          final Attribute ret;
          if (this.typeAttributeName == null && getParentType() != null) {
              ret = getParentType().getTypeAttribute();
          } else {
              ret = this.attributes.get(this.typeAttributeName);
          }
          return ret;
      }
docs: Get the attribute containing the type information.
  
  @return attribute containing the type information