Class ServiceMapper

java.lang.Object
de.iip_ecosphere.platform.services.environment.ServiceMapper

public class ServiceMapper extends Object
Template.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • ServiceMapper

      public ServiceMapper(de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder builder)
      Creates a service builder instance.
      Parameters:
      builder - the builder
  • Method Details

    • mapService

      public void mapService(Service service)
      Maps the given service onto the protocol service builder.
      Parameters:
      service - the service to define
    • getQName

      public static String getQName(Service service, String elementName)
      Returns the qualified name for an operation/property implementation.
      Parameters:
      service - the service to prefix
      elementName - the element name
      Returns:
      the qualified name
    • getQName

      public static String getQName(String serviceId, String elementName)
      Returns the qualified name for an operation/property implementation.
      Parameters:
      serviceId - the service id to prefix
      elementName - the element name
      Returns:
      the qualified name
    • unqualify

      public static String unqualify(String name)
      Unqualifies a qualified name.
      Parameters:
      name - the name
      Returns:
      the unqualified name