Class ComplexDeviceComponentMapper

  • All Implemented Interfaces:

    
    public class ComplexDeviceComponentMapper
    
                        

    Utility class to map from complex device component coded value to URI and back to coded value.

    This class implements the grammar defined in IEEE 11073-20701 section 9.2.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static String fromComplexDeviceComponent(AbstractComplexDeviceComponentDescriptor descriptor) Maps an abstract complex component descriptor to URI representation.
      static String fromCodedValue(CodedValue codedValue) Given a coded value that belongs to an abstract complex component descriptor, this function creates the URI representation.
      static CodedValue fromUri(String complexDeviceComponentTypeUri) Maps a complex device component type URI string to a coded value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComplexDeviceComponentMapper

        ComplexDeviceComponentMapper()
    • Method Detail

      • fromComplexDeviceComponent

         static String fromComplexDeviceComponent(AbstractComplexDeviceComponentDescriptor descriptor)

        Maps an abstract complex component descriptor to URI representation.

        Parameters:
        descriptor - the device component where to access the type.
        Returns:

        the mapped URI.

      • fromCodedValue

         static String fromCodedValue(CodedValue codedValue)

        Given a coded value that belongs to an abstract complex component descriptor, this function creates the URI representation.

        Parameters:
        codedValue - a complex device component's type.
        Returns:

        the mapped URI.

      • fromUri

         static CodedValue fromUri(String complexDeviceComponentTypeUri)

        Maps a complex device component type URI string to a coded value.

        Parameters:
        complexDeviceComponentTypeUri - the URI to parse.
        Returns:

        a coded value if pattern of URI matches.