public class AbstractFormattingHelper extends Object implements FormattingHelper
| Modifier and Type | Field and Description |
|---|---|
static AbstractFormattingHelper |
INSTANCE
Shared instance implementing the default formatting algorithms.
|
| Constructor and Description |
|---|
AbstractFormattingHelper() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatClass(Object object)
Return the Java class name of object.
|
String |
formatEClassName(EObject eObject)
Return the Ecore class name of object.
|
String |
formatName(Object object)
Return the name of object.
|
String |
formatPath(List<String> pathName)
Return a hierarchical path name.
|
String |
formatPath(List<String> pathName,
String name)
Return a hierarchically named name.
|
String |
formatQualifiedName(Object object)
Return the qualified name of an object.
|
String |
formatString(String name)
Return the string.
|
String |
formatType(Object type)
Return the type of object.
|
public static final AbstractFormattingHelper INSTANCE
public String formatClass(Object object)
FormattingHelperformatClass in interface FormattingHelperobject - to be formattedpublic String formatEClassName(EObject eObject)
FormattingHelperformatEClassName in interface FormattingHelpereObject - to be formattedpublic String formatName(Object object)
FormattingHelperformatName in interface FormattingHelperobject - to be formattedpublic String formatQualifiedName(Object object)
FormattingHelperformatQualifiedName in interface FormattingHelperobject - to be formattedpublic String formatPath(List<String> pathName)
FormattingHelperformatPath in interface FormattingHelperpathName - to be formattedpublic String formatPath(List<String> pathName, String name)
FormattingHelperformatPath in interface FormattingHelperpathName - to be formattedname - to be suffixedpublic String formatString(String name)
FormattingHelperformatString in interface FormattingHelpername - to be formattedpublic String formatType(Object type)
FormattingHelperformatType in interface FormattingHelpertype - object to be formattedCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.