test_class.declarator: openLREncoder = new OpenLRProtoEncoder()
test_class.original_string: OpenLRProtoEncoder openLREncoder = new OpenLRProtoEncoder();
test_class.type: OpenLRProtoEncoder
test_class.var_name: openLREncoder
test_class.file: proto/src/test/java/openlr/proto/OpenLRProtoEncoderTest.java
test_class.identifier: OpenLRProtoEncoderTest
test_case.body: @Test
      public void testUnsupportedLocationType() {
          GeoCoordinates geoCoordinates = new GeoCoordinatesProtoImpl(1, 2);
          RawCircleLocRef rawLocationReference = new RawCircleLocRef("1", geoCoordinates, 100);
  
          LocationReference locationReference = openLREncoder.encodeData(rawLocationReference);
  
          assertFalse(locationReference.isValid());
          assertEquals(locationReference.getReturnCode(), OpenLRProtoStatusCode.UNSUPPORTED_LOCATION_TYPE);
      }
test_case.class_method_signature: OpenLRProtoEncoderTest.testUnsupportedLocationType()
test_case.full_signature: @Test public void testUnsupportedLocationType()
test_case.identifier: testUnsupportedLocationType
test_case.invocations: encodeData assertFalse isValid assertEquals getReturnCode
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUnsupportedLocationType()
focal_class.declarator: locationTypeEncoderRegistry = LocationTypeEncoderRegistry.create()
focal_class.modifier: private
focal_class.original_string: private LocationTypeEncoderRegistry locationTypeEncoderRegistry = LocationTypeEncoderRegistry.create();
focal_class.type: LocationTypeEncoderRegistry
focal_class.var_name: locationTypeEncoderRegistry
focal_class.file: proto/src/main/java/openlr/proto/OpenLRProtoEncoder.java
focal_class.identifier: OpenLRProtoEncoder
focal_class.interfaces: implements PhysicalEncoder
focal_class.class_method_signature: OpenLRProtoEncoder.encodeData(RawLocationReference rawLocRef)
focal_class.full_signature: @Override public LocationReference encodeData(RawLocationReference rawLocRef)
focal_class.identifier: encodeData
focal_class.modifiers: @Override public
focal_class.parameters: (RawLocationReference rawLocRef)
focal_class.return: LocationReference
focal_class.signature: LocationReference encodeData(RawLocationReference rawLocRef)
focal_class.class_method_signature: OpenLRProtoEncoder.encodeData(RawLocationReference rawLocRef, int version)
focal_class.full_signature: @Override public LocationReference encodeData(RawLocationReference rawLocRef, int version)
focal_class.identifier: encodeData
focal_class.modifiers: @Override public
focal_class.parameters: (RawLocationReference rawLocRef, int version)
focal_class.return: LocationReference
focal_class.signature: LocationReference encodeData(RawLocationReference rawLocRef, int version)
focal_class.class_method_signature: OpenLRProtoEncoder.getSupportedVersions()
focal_class.full_signature: @Override public int[] getSupportedVersions()
focal_class.identifier: getSupportedVersions
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int[]
focal_class.signature: int[] getSupportedVersions()
focal_class.class_method_signature: OpenLRProtoEncoder.getDataFormatIdentifier()
focal_class.full_signature: @Override public String getDataFormatIdentifier()
focal_class.identifier: getDataFormatIdentifier
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDataFormatIdentifier()
focal_class.class_method_signature: OpenLRProtoEncoder.getDataClass()
focal_class.full_signature: @Override public Class<?> getDataClass()
focal_class.identifier: getDataClass
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<?>
focal_class.signature: Class<?> getDataClass()
focal_method.body: @Override
      public LocationReference encodeData(RawLocationReference rawLocRef) {
          LocationReferenceEncoder locationReferenceEncoder = locationTypeEncoderRegistry.getEncoder(rawLocRef.getLocationType());
  
          if (locationReferenceEncoder == null) {
              return new LocationReferenceProtoImpl(
                      rawLocRef.getID(),
                      rawLocRef.getLocationType(),
                      OpenLRProtoStatusCode.UNSUPPORTED_LOCATION_TYPE);
          }
  
          try {
              return locationReferenceEncoder.encode(rawLocRef);
          }
          catch (OpenLRProtoException e) {
              return new LocationReferenceProtoImpl(
                      rawLocRef.getID(),
                      rawLocRef.getLocationType(),
                      e.getErrorCode());
          }
      }
focal_method.class_method_signature: OpenLRProtoEncoder.encodeData(RawLocationReference rawLocRef)
focal_method.full_signature: @Override public LocationReference encodeData(RawLocationReference rawLocRef)
focal_method.identifier: encodeData
focal_method.invocations: getEncoder getLocationType getID getLocationType encode getID getLocationType getErrorCode
focal_method.modifiers: @Override public
focal_method.parameters: (RawLocationReference rawLocRef)
focal_method.return: LocationReference
focal_method.signature: LocationReference encodeData(RawLocationReference rawLocRef)