Class Helper


  • public class Helper
    extends Object
    • Constructor Detail

      • Helper

        public Helper()
    • Method Detail

      • toEmptyString

        public static String toEmptyString​(Object... o)
        Returns an empty string for arbitrary input. Since Xtend outputs all return of methods in rich strings this can be used to suppress any output.
        Parameters:
        o - will not be used
        Returns:
        ""
      • removeAllSpecialChars

        public static String removeAllSpecialChars​(String s)
      • getResourceURI

        public static String getResourceURI​(EObject eObject)
        Parameters:
        eObject - The object.
        Returns:
        The URI String of the given object.
      • getResourceDescription

        public static String getResourceDescription​(EObject eObject)
        Parameters:
        eObject - The object.
        Returns:
        The measuring point description of the given object.
      • getResourceFileName

        public static String getResourceFileName​(org.palladiosimulator.pcm.seff.ResourceDemandingSEFF eObject)
        Parameters:
        eObject - The object.
        Returns:
        The file name of the resource containing the object.
      • getResourceFileName

        public static String getResourceFileName​(org.palladiosimulator.analyzer.quality.qualityannotation.CharacterisedPCMParameterPartition eObject)
        Parameters:
        eObject - The object.
        Returns:
        The file name of the resource containing the object.
      • getRdseff

        public static org.palladiosimulator.pcm.seff.ResourceDemandingSEFF getRdseff​(org.palladiosimulator.pcm.seff.AbstractAction action)
        Parameters:
        action - The action.
        Returns:
        The ResourceDemandingSEFF containing the action or null if none could be found.