public void setDocumentation(String doc) {
		if (Strings.isEmpty(doc)) {
			getSarlAnnotationType().eAdapters().removeIf(new Predicate<Adapter>() {
				public boolean test(Adapter adapter) {
					return adapter.isAdapterForType(DocumentationAdapter.class);
				}
			});
		} else {
			DocumentationAdapter adapter = (DocumentationAdapter) EcoreUtil.getExistingAdapter(
					getSarlAnnotationType(), DocumentationAdapter.class);
			if (adapter == null) {
				adapter = new DocumentationAdapter();
				getSarlAnnotationType().eAdapters().add(adapter);
			}
			adapter.setDocumentation(doc);
		}
	}
public void setDocumentation ( String doc ) { if ( Strings . isEmpty ( doc ) ) { getSarlAnnotationType ( ) . eAdapters ( ) . removeIf ( new Predicate < Adapter > ( ) { public boolean test ( Adapter adapter ) { return adapter . isAdapterForType ( DocumentationAdapter . class ) ; } } ) ; } else { DocumentationAdapter adapter = ( DocumentationAdapter ) EcoreUtil . getExistingAdapter ( getSarlAnnotationType ( ) , DocumentationAdapter . class ) ; if ( adapter == null ) { adapter = new DocumentationAdapter ( ) ; getSarlAnnotationType ( ) . eAdapters ( ) . add ( adapter ) ; } adapter . setDocumentation ( doc ) ; } }
Change the documentation of the element.

<p>The documentation will be displayed just before the element.

@param doc the documentation.