The feature name and location as a string - handy for text summary
@return
321156
public String getTextDescription() {
        StringBuilder builder = new StringBuilder(name);
        builder.append(" ");
        List<Location> locationList = new ArrayList<Location>(locations.getLocations());
        Collections.sort(locationList, new LocationComparator(LocationComparator.START_LOCATION));
        for(Location location : locationList) {
            builder.append(" ");
            builder.append(location.getBeginPosition());
            builder.append("-");
            builder.append(location.getEndPosition());
        }

        return builder.toString();
    }
910821
public Map<String, Object> toRepresentation() {
        Map<String, Object> representation = new HashMap<>();
        if (templated()) {
            representation.put("href-template", hrefTemplate);
            representation.put("href-vars", hrefVars());
        } else {
            representation.put("href", href);
        }
        if (hints != null) {
            Map<String, Object> hintsRepresentation = hints.toRepresentation();
            if (!hintsRepresentation.isEmpty()) {
                representation.put("hints", hintsRepresentation);
            }
        }
        return representation;
    }
577890
public String getName()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getName");
    
    String name = null;
    BaseDestinationDefinition def = getDefinition();
    if (def != null)
      name = getDefinition().getName();
  
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getName", name);
    
    return name; 
  }
892549
public String getClasspathsAsTextAreaContent() {
    	StringBuilder sb = new StringBuilder();
    	for (String classpath : getClasspaths()) {
    		sb.append(classpath);
    		sb.append("\r");
    	}
    	return sb.toString();
    }
746825
public String toFieldDescriptor() {
        int i;
        StringBuilder result;

        result = new StringBuilder();
        for (i = 0; i < dimensions; i++) {
            result.append('[');
        }
        result.append(componentType.descriptor);
        if (componentType.id == T_REFERENCE) {
            result.append(name.replace('.', '/'));
            result.append(';');
        }
        return result.toString();
    }
1246103
public Properties getFeatureProperties() {
		Properties properties = new Properties();
		for (String name : features.keySet()) {
			properties.setProperty(name, features.get(name).spec());
		}
		return properties;
	}
70691
public String getDescriptiveText() {
        String defaultLocale = Locale.getDefault().getLanguage();
        String descriptiveText = getDescriptiveText(defaultLocale);
        if (descriptiveText == null) {
            descriptiveText = getDescriptiveText("en");
            if (descriptiveText == null) {
                descriptiveText = getDescriptiveText("");
            }
        }
        return descriptiveText;
    }
63269
public final Set<String> getPropertyNames() {
    Set<String> props = new TreeSet<>();
    collectPropertyNames(props);
    return props;
  }
353743
public Object getTitleOrName() {

        String result = getTitle();
        if (CmsStringUtil.isEmptyOrWhitespaceOnly(result)) {
            result = getPath();
        }
        return result;
    }
54771
private function getFindReplaceLocationMapNameText() {
    $config = $this->configFactory->get('openy_programs_search.settings');
    $exclude_location_map = $config->get('name_string_replace_location_map');

    return is_array($exclude_location_map) ? $exclude_location_map : [];
  }
1078916
public String description() {
        if (description.length() == 0 && matchingField != null) {

            //check for javadoc comment of corresponding field.
            Comment comment = matchingField.comment();
            if (comment != null) {
                return comment.commentText();
            }
        }
        return description;
    }
976345
@Override
    public String getFilename() {
        try {
            if (hasDescriptionProperty(FILENAME)) {
                return getDescriptionProperty(FILENAME).getString().replace(FIELD_DELIMITER + XSDstring.getURI(), "");
            }
            return node.getName();
        } catch (final RepositoryException e) {
            throw new RepositoryRuntimeException(e);
        }
    }
1142337
@Override
    public String getName() {
        Enterprise enterprise = model.getEnterprise();
        return "System Landscape" + (enterprise != null && enterprise.getName().trim().length() > 0 ? " for " + enterprise.getName() : "");
    }
207427
def to_s
      text = ''

      text << tag_output_string + "\n" unless tags.empty?
      text << "Feature:#{name_output_string}"
      text << "\n" + description_output_string unless description_text.empty?
      text << "\n\n" + background_output_string if background
      text << "\n\n" + tests_output_string unless tests.empty?

      text
    end
1107749
@Transient
    private Feature getLocation() {
        if (geometry == null) {
            return null;
        }
        final List<Feature> features = geometry.getFeatures();
        if (features == null || features.isEmpty()) {
            return null;
        }
        return features.get(0);
    }
474982
@JSONField(serialize = false, deserialize = false)
  public String getMentionListString() {
    if (null == this.mentionList) {
      return "";
    }
    StringBuilder builder = new StringBuilder();
    for (int i = 0; i < this.mentionList.size(); i++) {
      builder.append(this.mentionList.get(i));
      if (i != this.mentionList.size() - 1) {
        builder.append(",");
      }
    }
    return builder.toString();
  }
834719
@Transient
    public String[] getPostcodeLocalities() {
        final Feature location = getLocation();
        if (location == null) {
            return null;
        }
        return location.getProperty("postcodeLocalities");
    }