Class JavaNames


  • public class JavaNames
    extends Object
    1:1 copy from the old JavaNames xtend1 extension. Ugly as hell, but whatever works.
    • Constructor Detail

      • JavaNames

        public JavaNames()
    • Method Detail

      • removeAllSpecialChars

        public static String removeAllSpecialChars​(String s)
      • javaName

        public static String javaName​(org.palladiosimulator.pcm.core.entity.Entity e)
      • javaString

        public static String javaString​(String s)
      • javaVariableName

        public static String javaVariableName​(String s)
      • specificationString

        public static String specificationString​(String s)
      • javaSignature

        public static String javaSignature​(org.palladiosimulator.pcm.repository.OperationSignature s)
      • posInInterface

        public static int posInInterface​(org.palladiosimulator.pcm.repository.OperationSignature s,
                                         int pos)
      • javaSignature

        public static String javaSignature​(org.palladiosimulator.pcm.repository.InfrastructureSignature s)
      • posInInterface

        public static int posInInterface​(org.palladiosimulator.pcm.repository.InfrastructureSignature s,
                                         int pos)
      • _portClassName

        protected static String _portClassName​(org.palladiosimulator.pcm.repository.OperationProvidedRole r)
      • _portClassName

        protected static String _portClassName​(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole r)
      • _portClassName

        protected static String _portClassName​(org.palladiosimulator.pcm.repository.SinkRole r)
        TODO Implement SinkRole?
      • contextClassName

        public static String contextClassName​(org.palladiosimulator.pcm.core.entity.InterfaceRequiringEntity c)
      • contextInterfaceName

        public static String contextInterfaceName​(org.palladiosimulator.pcm.core.entity.InterfaceRequiringEntity c)
      • portMemberVar

        public static String portMemberVar​(org.palladiosimulator.pcm.repository.OperationProvidedRole r)
      • portMemberVar

        public static String portMemberVar​(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole r)
      • _portGetter

        protected static String _portGetter​(org.palladiosimulator.pcm.repository.OperationProvidedRole r)
      • _portGetter

        protected static String _portGetter​(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole r)
      • basePackageName

        public static String basePackageName​(org.palladiosimulator.pcm.core.entity.Entity s)
      • _implementationPackage

        protected static String _implementationPackage​(org.palladiosimulator.pcm.repository.OperationInterface i)
      • _implementationPackage

        protected static String _implementationPackage​(org.palladiosimulator.pcm.repository.InfrastructureInterface i)
      • _implementationPackage

        protected static String _implementationPackage​(org.palladiosimulator.pcm.system.System s)
      • _implementationPackage

        protected static String _implementationPackage​(org.palladiosimulator.pcm.usagemodel.UsageScenario u)
      • _implementationPackage

        protected static String _implementationPackage​(org.palladiosimulator.pcm.repository.RepositoryComponent c)
      • _implementationPackage

        protected static String _implementationPackage​(org.palladiosimulator.pcm.reliability.FailureType ft)
      • _implementationPackage

        protected static String _implementationPackage​(org.palladiosimulator.pcm.repository.PrimitiveDataType dt)
      • _implementationPackage

        protected static String _implementationPackage​(org.palladiosimulator.pcm.repository.CollectionDataType dt)
      • _implementationPackage

        protected static String _implementationPackage​(org.palladiosimulator.pcm.repository.CompositeDataType dt)
      • className

        public static String className​(org.palladiosimulator.pcm.core.composition.ComposedStructure s)
      • fqnAllocationContextPackage

        public static String fqnAllocationContextPackage​(org.palladiosimulator.pcm.allocation.Allocation a)
      • fqnAllocationContextClass

        public static String fqnAllocationContextClass​(org.palladiosimulator.pcm.allocation.Allocation a)
      • fqnAllocationContext

        public static String fqnAllocationContext​(org.palladiosimulator.pcm.allocation.Allocation a)
      • _fqn

        protected static String _fqn​(org.palladiosimulator.pcm.repository.OperationInterface i)
      • _fqn

        protected static String _fqn​(org.palladiosimulator.pcm.repository.InfrastructureInterface i)
      • _fqn

        protected static String _fqn​(org.palladiosimulator.pcm.repository.RepositoryComponent c)
      • _fqn

        protected static String _fqn​(org.palladiosimulator.pcm.system.System s)
      • _fqn

        protected static String _fqn​(org.palladiosimulator.pcm.usagemodel.UsageScenario us)
      • fqnContextPackage

        public static String fqnContextPackage​(org.palladiosimulator.pcm.core.entity.Entity c)
      • fqnContext

        public static String fqnContext​(org.palladiosimulator.pcm.core.entity.InterfaceRequiringEntity c)
      • fqnContextInterface

        public static String fqnContextInterface​(org.palladiosimulator.pcm.core.entity.InterfaceRequiringEntity c)
      • _fqnPortPackage

        protected static String _fqnPortPackage​(org.palladiosimulator.pcm.repository.ProvidedRole pr)
      • _fqnPortPackage

        protected static String _fqnPortPackage​(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole pr)
      • _fqnPortPackage

        protected static String _fqnPortPackage​(org.palladiosimulator.pcm.repository.SinkRole pr)
        TODO Implement SinkRoles?
      • fqnPort

        public static String fqnPort​(org.palladiosimulator.pcm.repository.OperationProvidedRole pr)
      • fqnPort

        public static String fqnPort​(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole pr)
      • beanName

        public static String beanName​(org.palladiosimulator.pcm.repository.RepositoryComponent c)
      • fqnInterface

        public static String fqnInterface​(org.palladiosimulator.pcm.core.entity.InterfaceProvidingEntity c)
      • interfaceName

        public static String interfaceName​(org.palladiosimulator.pcm.core.entity.InterfaceProvidingEntity c)
      • dummyComponentName

        public static String dummyComponentName​(org.palladiosimulator.pcm.repository.OperationRequiredRole rr)
      • dummyComponentName

        public static String dummyComponentName​(org.palladiosimulator.pcm.repository.InfrastructureRequiredRole rr)
      • fqnDummyComponentPackage

        public static String fqnDummyComponentPackage​(org.palladiosimulator.pcm.repository.OperationRequiredRole rr)
      • fqnDummyComponentPackage

        public static String fqnDummyComponentPackage​(org.palladiosimulator.pcm.repository.InfrastructureRequiredRole rr)
      • fqnDummyComponent

        public static String fqnDummyComponent​(org.palladiosimulator.pcm.repository.OperationRequiredRole rr)
      • fqnDummyComponent

        public static String fqnDummyComponent​(org.palladiosimulator.pcm.repository.InfrastructureRequiredRole rr)
      • fqnToDirectoryPath

        public static String fqnToDirectoryPath​(String fqn)
      • getFileName

        public static String getFileName​(org.palladiosimulator.pcm.core.entity.Entity e)
      • getFilePath

        public static String getFilePath​(org.palladiosimulator.pcm.core.entity.Entity e)
      • _serviceName

        protected static String _serviceName​(org.palladiosimulator.pcm.repository.OperationSignature s)
      • _serviceName

        protected static String _serviceName​(org.palladiosimulator.pcm.repository.InfrastructureSignature s)
      • javaEEDisplayName

        public static String javaEEDisplayName​(org.palladiosimulator.pcm.core.entity.Entity e)
      • javaEEEjbClientjar

        public static String javaEEEjbClientjar​(org.palladiosimulator.pcm.core.entity.Entity e)
      • fqnJavaEEBasicComponentClassPath

        public static String fqnJavaEEBasicComponentClassPath​(org.palladiosimulator.pcm.core.entity.Entity r)
      • fqnJavaEEBasicComponentProjectName

        public static String fqnJavaEEBasicComponentProjectName​(org.palladiosimulator.pcm.core.entity.Entity r)
      • _fqnJavaEEBasicComponentPortClassPath

        protected static String _fqnJavaEEBasicComponentPortClassPath​(org.palladiosimulator.pcm.repository.OperationProvidedRole r)
      • _fqnJavaEEBasicComponentPortClassPath

        protected static String _fqnJavaEEBasicComponentPortClassPath​(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole r)
      • _fqnJavaEEBasicComponentPortProjectName

        protected static String _fqnJavaEEBasicComponentPortProjectName​(org.palladiosimulator.pcm.repository.OperationProvidedRole r)
      • _fqnJavaEEBasicComponentPortProjectName

        protected static String _fqnJavaEEBasicComponentPortProjectName​(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole r)
      • fqnJavaEEComponentInterfacePath

        public static String fqnJavaEEComponentInterfacePath​(org.palladiosimulator.pcm.core.entity.Entity i)
      • fqnJavaEEComponentPortSuperClass

        public static String fqnJavaEEComponentPortSuperClass​(org.palladiosimulator.pcm.core.entity.Entity e)
      • _fqnJavaEEComponentPortInterface

        protected static String _fqnJavaEEComponentPortInterface​(org.palladiosimulator.pcm.repository.OperationProvidedRole e)
      • _fqnJavaEEComponentPortInterface

        protected static String _fqnJavaEEComponentPortInterface​(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole e)
      • _fqnJavaEEOperationInterfacePath

        protected static String _fqnJavaEEOperationInterfacePath​(org.palladiosimulator.pcm.repository.OperationProvidedRole i)
      • _fqnJavaEEOperationInterfacePath

        protected static String _fqnJavaEEOperationInterfacePath​(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole i)
      • _fqnJavaEEOperationInterfacePath

        protected static String _fqnJavaEEOperationInterfacePath​(org.palladiosimulator.pcm.repository.BasicComponent i)
      • _fqnJavaEEOperationInterfaceProjectName

        protected static String _fqnJavaEEOperationInterfaceProjectName​(org.palladiosimulator.pcm.repository.OperationProvidedRole i)
      • _fqnJavaEEOperationInterfaceProjectName

        protected static String _fqnJavaEEOperationInterfaceProjectName​(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole i)
      • _fqnJavaEEOperationInterfaceProjectName

        protected static String _fqnJavaEEOperationInterfaceProjectName​(org.palladiosimulator.pcm.repository.BasicComponent i)
      • _fqnJavaEEInterfacePackage

        protected static String _fqnJavaEEInterfacePackage​(org.palladiosimulator.pcm.core.entity.Entity b)
      • _fqnJavaEEInterfacePackage

        protected static String _fqnJavaEEInterfacePackage​(org.palladiosimulator.pcm.repository.ProvidedRole b)
      • _fqnJavaEEInterfaceName

        protected static String _fqnJavaEEInterfaceName​(org.palladiosimulator.pcm.core.entity.InterfaceProvidingEntity e)
      • _fqnJavaEEInterfaceName

        protected static String _fqnJavaEEInterfaceName​(org.palladiosimulator.pcm.repository.OperationProvidedRole p)
      • _fqnJavaEEInterfaceName

        protected static String _fqnJavaEEInterfaceName​(org.palladiosimulator.pcm.repository.InfrastructureProvidedRole p)
      • fqnJavaEEPortPackage

        public static String fqnJavaEEPortPackage​(org.palladiosimulator.pcm.repository.ProvidedRole r)
      • fqnJavaEEBasicComponentClassPackage

        public static String fqnJavaEEBasicComponentClassPackage​(org.palladiosimulator.pcm.core.entity.Entity e)
      • fqnJavaEEClientDeployName

        public static String fqnJavaEEClientDeployName​(org.palladiosimulator.pcm.core.entity.Entity e)
      • fqnJavaEEDescriptorPath

        public static String fqnJavaEEDescriptorPath​(org.palladiosimulator.pcm.core.entity.Entity e)
      • fqnJavaEEPreferencesPath

        public static String fqnJavaEEPreferencesPath​(org.palladiosimulator.pcm.core.entity.Entity e)
      • fqnJavaEEDescriptorProjectName

        public static String fqnJavaEEDescriptorProjectName​(org.palladiosimulator.pcm.core.entity.Entity e)
      • fqnJavaEEBasicComponentClassName

        public static String fqnJavaEEBasicComponentClassName​(org.palladiosimulator.pcm.core.entity.Entity e)
      • _serviceName

        protected static String _serviceName​(org.palladiosimulator.pcm.repository.EventType s)
        TODO Implement EventTypes?
      • _serviceNameStub

        protected static String _serviceNameStub​(org.palladiosimulator.pcm.repository.OperationSignature s)
      • _serviceNameStub

        protected static String _serviceNameStub​(org.palladiosimulator.pcm.repository.InfrastructureSignature s)
      • _serviceNameStub

        protected static String _serviceNameStub​(org.palladiosimulator.pcm.repository.EventType s)
        TODO Implement EventTypes?
      • externalCallActionDescription

        public static String externalCallActionDescription​(org.palladiosimulator.pcm.repository.OperationSignature os,
                                                           Object call)
      • internalActionDescription

        public static String internalActionDescription​(org.palladiosimulator.pcm.repository.InfrastructureSignature os,
                                                       Object call)
      • entryLevelSystemCallActionDescription

        public static String entryLevelSystemCallActionDescription​(org.palladiosimulator.pcm.repository.OperationSignature os,
                                                                   Object call)
      • entryLevelSystemCallActionDescription

        public static String entryLevelSystemCallActionDescription​(org.palladiosimulator.pcm.repository.InfrastructureSignature os,
                                                                   Object call)
      • seffDescription

        public static String seffDescription​(org.palladiosimulator.pcm.repository.OperationSignature os,
                                             org.palladiosimulator.pcm.repository.RepositoryComponent component)
      • seffDescription

        public static String seffDescription​(org.palladiosimulator.pcm.repository.InfrastructureSignature os,
                                             org.palladiosimulator.pcm.repository.RepositoryComponent component)
      • findContainerComponent

        public static org.palladiosimulator.pcm.repository.BasicComponent findContainerComponent​(EObject o)
      • portClassName

        public static String portClassName​(org.palladiosimulator.pcm.repository.ProvidedRole r)
      • portGetter

        public static String portGetter​(org.palladiosimulator.pcm.repository.ProvidedRole r)
      • implementationPackage

        public static String implementationPackage​(org.palladiosimulator.pcm.PCMBaseClass s)
      • fqn

        public static String fqn​(org.eclipse.emf.cdo.CDOObject s)
      • fqnPortPackage

        public static String fqnPortPackage​(org.palladiosimulator.pcm.repository.ProvidedRole pr)
      • serviceName

        public static String serviceName​(org.palladiosimulator.pcm.repository.Signature s)
      • fqnJavaEEBasicComponentPortClassPath

        public static String fqnJavaEEBasicComponentPortClassPath​(org.palladiosimulator.pcm.repository.ProvidedRole r)
      • fqnJavaEEBasicComponentPortProjectName

        public static String fqnJavaEEBasicComponentPortProjectName​(org.palladiosimulator.pcm.repository.ProvidedRole r)
      • fqnJavaEEComponentPortInterface

        public static String fqnJavaEEComponentPortInterface​(org.palladiosimulator.pcm.repository.ProvidedRole e)
      • fqnJavaEEOperationInterfacePath

        public static String fqnJavaEEOperationInterfacePath​(org.palladiosimulator.pcm.core.entity.Entity i)
      • fqnJavaEEOperationInterfaceProjectName

        public static String fqnJavaEEOperationInterfaceProjectName​(org.palladiosimulator.pcm.core.entity.Entity i)
      • fqnJavaEEInterfacePackage

        public static String fqnJavaEEInterfacePackage​(org.palladiosimulator.pcm.core.entity.Entity b)
      • fqnJavaEEInterfaceName

        public static String fqnJavaEEInterfaceName​(org.palladiosimulator.pcm.core.entity.Entity p)
      • serviceNameStub

        public static String serviceNameStub​(org.palladiosimulator.pcm.repository.Signature s)