Provide a human readable description for On instance.

@param on - On
@return human readable description - String
636
protected String describe(final On on, final boolean and) {
        if (and) {
            return nominalValue(on.getTime());
        }
        return String.format("%s %s ", bundle.getString("at"), nominalValue(on.getTime())) + "%s";
    }
1025709
public static String getString() {
    final StringBuilder buf = new StringBuilder();
    buf.append("Feature List:\n");
    for (Feature f : Feature.values()) {
      buf.append(f).append(" introduced in layout version ")
          .append(f.lv).append(" (").
      append(f.description).append(")\n");
    }
    
    buf.append("\n\nLayoutVersion and supported features:\n");
    for (Feature f : Feature.values()) {
      buf.append(f.lv).append(": ").append(map.get(f.lv))
          .append("\n");
    }
    return buf.toString();
  }
1267382
public static String getLocalizedDescription( Description description ) throws Exception {
        // try to get the language
        Class< ? > annotationclass = Description.class;
        return getLocalizedString(description, annotationclass);
    }
678603
@Override
    public Every visit(final Every every) {
        String description;
        if (every.getPeriod().getValue() > 1) {
            description = String.format("%s %s ", bundle.getString(EVERY), nominalValue(every.getPeriod())) + " %p ";
        } else {
            description = bundle.getString(EVERY) + " %s ";
        }
        //TODO save the description?
        return every;
    }
185557
protected String describe(final Every every, final boolean and) {
        String description;
        if (every.getPeriod().getValue() > 1) {
            description = String.format("%s %s ", bundle.getString(EVERY), nominalValue(every.getPeriod())) + " %p ";
        } else {
            description = bundle.getString(EVERY) + " %s ";
        }
        if (every.getExpression() instanceof Between) {
            final Between between = (Between) every.getExpression();
            description +=
                    MessageFormat.format(
                            bundle.getString("between_x_and_y"), nominalValue(between.getFrom()), nominalValue(between.getTo())
                    ) + WHITE_SPACE;
        }
        return description;
    }
557296
public static <T> OperatorLogging<T> log(String onNextFormat) {
        return Logging.<T> logger().onNextFormat(onNextFormat).log();
    }
248855
public String getStorageDescription() {
        if (fileItem.isInMemory()) {
            return "in memory";
        } else if (this.fileItem instanceof DiskFileItem) {
            return "at [" + ((DiskFileItem)this.fileItem).getStoreLocation().getAbsolutePath() + "]";
        } else {
            return "on disk";
        }
    }
1276931
protected String describe(final And and) {
        final List<FieldExpression> expressions = new ArrayList<>();
        final List<FieldExpression> onExpressions = new ArrayList<>();
        for (final FieldExpression fieldExpression : and.getExpressions()) {
            if (fieldExpression instanceof On) {
                onExpressions.add(fieldExpression);
            } else {
                expressions.add(fieldExpression);
            }
        }
        final StringBuilder builder = new StringBuilder();
        if (!onExpressions.isEmpty()) {
            builder.append(bundle.getString("at"));
            createAndDescription(builder, onExpressions);
        }
        if (!expressions.isEmpty()) {
            createAndDescription(builder, expressions);
        }

        return builder.toString();
    }
704291
@Override
	public void getDescription(StringBuilder sb, int indent) {
		sb.append("SimpleCSVStream: ");
		sb.append(csvFileOption.getFile().getName());
		sb.append("\t NumInstancesRead: ");
		sb.append(this.numInstancesRead);
		sb.append("\t HitEndOfFile: ");
		sb.append(this.hitEndOfFile);
	}
881593
protected StyledString text(SarlBehaviorUnit element) {
		final StyledString text = new StyledString("on ", StyledString.DECORATIONS_STYLER); //$NON-NLS-1$
		text.append(getHumanReadableName(element.getName()));
		if (element.getGuard() != null) {
			String txt = null;
			final ICompositeNode node = NodeModelUtils.getNode(element.getGuard());
			if (node != null) {
				txt = node.getText().trim();
			}
			if (Strings.isNullOrEmpty(txt)) {
				txt = "[" + Messages.SARLLabelProvider_2 + "]"; //$NON-NLS-1$//$NON-NLS-2$
			} else {
				assert txt != null;
				final String dots = "..."; //$NON-NLS-1$
				if (txt.length() > BEHAVIOR_UNIT_TEXT_LENGTH + dots.length()) {
					txt = "[" + txt.substring(0, BEHAVIOR_UNIT_TEXT_LENGTH) + dots + "]"; //$NON-NLS-1$//$NON-NLS-2$
				} else {
					txt = "[" + txt + "]"; //$NON-NLS-1$//$NON-NLS-2$
				}
			}
			text.append(" "); //$NON-NLS-1$
			text.append(txt, StyledString.DECORATIONS_STYLER);
		}
		return text;
	}
913553
@Override
	public synchronized void enable(boolean on)
	{
		if (!on)
		{
			dump(true);
			cached = null;
		}

		enabled = on;
	}
773810
public static String stringify(final ResponseStatus status, final ResponseStatusDetails details) {
        String result = status.toString();
        if (details != null) {
            result = result + " (Context: " + details.context() + ", Reference: " + details.reference() + ")";
        }
        return result;
    }
359019
public String description() {
	Util.out4.println("DeviceImpl.description() arrived");

	//
	// Record attribute request in black box
	//

	blackbox.insert_attr(Attr_Description);

	//
	// Return data to caller
	//

	Util.out4.println("Leaving DeviceImpl.description()");
	return desc;
    }
1317294
protected String stringWithoutHeader() {

        StringBuffer text = new StringBuffer();

        for (int i = 0; i < numInstances(); i++) {
            text.append(instance(i));
            if (i < numInstances() - 1) {
                text.append('\n');
            }
        }
        return text.toString();

    }
612480
@Nonnull
  public String getDescription (final Locale aContentLocale)
  {
    final String ret = m_eCountry == null ? null : m_eCountry.getDisplayText (aContentLocale);
    return ret != null ? ret : "undefined";
  }
1088841
public Status withDescription(@Nullable String description) {
    if (Utils.equalsObjects(this.description, description)) {
      return this;
    }
    return new Status(this.canonicalCode, description);
  }
197047
@Override
    public List<String> getAllDescription() {
        final List<String> result = new ArrayList<String>();
        final List<Node> nodes = this.getRootNode().get("description");
        for (final Node node : nodes) {
            result.add(node.getText());
        }
        return result;
    }