Java Code Examples for org.eclipse.emf.ecore.EEnumLiteral.toString()

The following are Jave code examples for showing how to use toString() of the org.eclipse.emf.ecore.EEnumLiteral class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: collaboro   File: NotationView.java   Source Code and License Vote up 5 votes
/**
 * Obtains the string representation of the value
 * 
 * @param value
 * @return
 */
protected String convert(Object value) {
	String result = "ND";

	if (value instanceof String) {
		result = (String) value;
	} else if (value instanceof EEnumLiteral) {
		EEnumLiteral literal = (EEnumLiteral) value;
		result = literal.toString();
	}
	return result;
}
 
Example 2
Project: collaboro   File: SVGBuilder.java   Source Code and License Vote up 5 votes
/**
 * Obtains the string representation of the value
 * 
 * @param value
 * @return
 */
protected String convert(Object value) {
	String result = "ND";

	if (value instanceof String) {
		result = (String) value;
	} else if (value instanceof EEnumLiteral) {
		EEnumLiteral literal = (EEnumLiteral) value;
		result = literal.toString();
	}
	return result;
}