/** * Returns this name expanded with the specified scope. One may represent this operation as a * concatenation of the specified {@code name} with {@code this}. * * @since 2.3 */ public ScopedName push(final GenericName scope) { return getName().push(scope); }
/** * Returns this name expanded with the specified scope. One may represent this operation * as a concatenation of the specified {@code name} with {@code this}. * * @param scope The name to use as prefix. * @return a concatenation of the given scope with this name. */ @Override public ScopedName push(final GenericName scope) { return getName().push(scope); }
/** * Returns this name expanded with the specified scope. One may represent this operation * as a concatenation of the specified {@code name} with {@code this}. * * @param scope The name to use as prefix. * @return a concatenation of the given scope with this name. */ @Override public ScopedName push(final GenericName scope) { return getName().push(scope); }
/** * Ensures that the given attribute type is the instance that we expect at the given index. * If the given instance is not the expected one, then an {@link IllegalArgumentException} * will be thrown with an error message formatted using the name of expected and given types. * * @param index index of the expected attribute type. * @param type the actual attribute type. */ final void verifyAttributeType(final int index, final DefaultAttributeType<?> type) { final DefaultAttributeType<?> expected = types.characterizedBy[index]; if (!expected.equals(type)) { final GenericName en = expected.getName(); final GenericName an = type.getName(); throw new IllegalArgumentException(String.valueOf(en).equals(String.valueOf(an)) ? Resources.format(Resources.Keys.MismatchedPropertyType_1, en) : Resources.format(Resources.Keys.CanNotSetCharacteristics_2, en.push(source.getName()), an)); } }
/** * Ensures that the given attribute type is the instance that we expect at the given index. * If the given instance is not the expected one, then an {@link IllegalArgumentException} * will be thrown with an error message formatted using the name of expected and given types. * * @param index index of the expected attribute type. * @param type the actual attribute type. */ final void verifyAttributeType(final int index, final DefaultAttributeType<?> type) { final DefaultAttributeType<?> expected = types.characterizedBy[index]; if (!expected.equals(type)) { final GenericName en = expected.getName(); final GenericName an = type.getName(); throw new IllegalArgumentException(String.valueOf(en).equals(String.valueOf(an)) ? Resources.format(Resources.Keys.MismatchedPropertyType_1, en) : Resources.format(Resources.Keys.CanNotSetCharacteristics_2, en.push(source.getName()), an)); } }