Ejemplo n.º 1
0
  /** Get alias name of the class. */
  @Override
  public String aliasName() {
    // Only retrieve/compute the alias once
    // Cache the result for subsequent use
    if (!aliasAccessed) {

      aliasAccessed = true;

      // Obtain alias name from default implementation
      String a = super.aliasName();
      // If not present, obtain from EA model directly, if ea:alias is identified as the source
      if ((a == null || a.length() == 0)
          && descriptorSource(Options.Descriptor.ALIAS.toString()).equals("ea:alias")) {
        a = eaClassElement.GetAlias();
        super.aliasName = options().internalize(a);
      }
    }
    return super.aliasName;
  } // aliasName()