/** * Returns the name of the processing operation. The default implementation returns the * {@linkplain #descriptor} code name. * * @todo The return type will be changed from {@link String} to {@link Identifier}. */ public String getName() { return descriptor.getName().getCode(); }
/** * Returns the version number of the implementation. * * @deprecated Replacement to be determined. */ @Deprecated public String getVersion() { return descriptor.getName().getVersion(); }
/** Returns the operation name for the specified parameters. */ static String getOperationName(final ParameterValueGroup parameters) { return parameters.getDescriptor().getName().getCode().trim(); }
/** * Prints the elements of a descriptor group to the output stream. * * @param descriptor The descriptor group to format. * @throws IOException if an error occured will writing to the stream. */ public void format(final ParameterDescriptorGroup descriptor) throws IOException { synchronized (lock) { format(descriptor.getName().getCode(), descriptor, null); } }
/** Returns a name for the specified math transform. */ private static final String getName(final MathTransform transform) { if (transform instanceof AbstractMathTransform) { ParameterValueGroup params = ((AbstractMathTransform) transform).getParameterValues(); if (params != null) { String name = params.getDescriptor().getName().getCode(); if (name != null && (name = name.trim()).length() != 0) { return name; } } } return Classes.getShortClassName(transform); }
/** * Prints the elements of a parameter group to the output stream. * * @param values The parameter group to format. * @throws IOException if an error occured will writing to the stream. */ public void format(final ParameterValueGroup values) throws IOException { final ParameterDescriptorGroup descriptor = values.getDescriptor(); synchronized (lock) { format(descriptor.getName().getCode(), descriptor, values); } }
/** * Returns a name for this math transform (never {@code null}). This convenience methods returns * the name of the {@linkplain #getParameterDescriptors parameter descriptors} if any, or the * short class name otherwise. * * @return A name for this math transform (never {@code null}). * @since 2.5 */ public String getName() { final ParameterDescriptorGroup descriptor = getParameterDescriptors(); if (descriptor != null) { final Identifier identifier = descriptor.getName(); if (identifier != null) { final String code = identifier.getCode(); if (code != null) { return code; } } } return Classes.getShortClassName(this); }
OperationMethod method = null; try { final String classification = parameters.getDescriptor().getName().getCode(); final MathTransformProvider provider = getProvider(classification); method = provider;
String name = getName(param, group.getDescriptor().getName().getAuthority()); if (name == null) { name = param.getName().getCode();
format(name + '/' + descriptor.getName().getCode(), descriptor, value);
/** * Returns the version number of the implementation. */ public String getVersion() { return descriptor.getName().getVersion(); }
/** * Returns the name of the processing operation. The default implementation * returns the {@linkplain #descriptor} code name. * * @todo The return type will be changed from {@link String} to {@link Identifier}. */ public String getName() { return descriptor.getName().getCode(); }
/** * Returns the version number of the implementation. * * @deprecated Replacement to be determined. */ @Deprecated public String getVersion() { return descriptor.getName().getVersion(); }
assertEquals( classification, ((MapProjection) mt).getParameterDescriptors().getName().getCode());
/** * Returns the operation name for the specified parameters. */ static String getOperationName(final ParameterValueGroup parameters) { return parameters.getDescriptor().getName().getCode().trim(); }
/** * Returns the exception to thrown when the parameter of the given name has not been found. */ private ParameterNotFoundException parameterNotFound(final String name) { return new ParameterNotFoundException(Resources.format( Resources.Keys.ParameterNotFound_2, descriptor.getName(), name), name); }
content = descriptor.descriptors(); assertEquals("name", "group", descriptor.getName().getCode()); assertEquals("descriptors", 3, content.size()); assertTrue("contains(p1)", content.contains(p1)); content = descriptor.descriptors(); assertEquals("name", "group", descriptor.getName().getCode()); assertEquals("descriptors.size()", 2, content.size()); assertTrue("contains(p1)", content.contains(p1)); content = descriptor.descriptors(); assertEquals("name", "group", descriptor.getName().getCode()); assertEquals("descriptors.size()", 2, content.size()); assertTrue("contains(p1)", content.contains(p1));
/** * Returns the exception to be thrown when a transform for the given parameters is requested. */ private static NoSuchIdentifierException unsupported(final ParameterValueGroup parameters) { return new NoSuchIdentifierException("Parameterized transforms are not implemented.", parameters.getDescriptor().getName().getCode()); }
/** * Creates a dummy operation method of the given dimensions. */ private static OperationMethod createOperationMethod(final int sourceDimension, final int targetDimension) { final ParameterDescriptorGroup parameters = new DefaultParameterDescriptorGroup( Collections.singletonMap(ParameterDescriptorGroup.NAME_KEY, "Dummy"), 1, 1); return new DefaultOperationMethod(Collections.singletonMap(OperationMethod.NAME_KEY, parameters.getName()), sourceDimension, targetDimension, parameters); }