@Test public void testGet() { Citation citation = Citations.EPSG; final PropertyAccessor accessor = createPropertyAccessor(citation); final int index = accessor.indexOf("identifiers"); assertTrue(index >= 0); final Object identifiers = accessor.get(index, citation); assertNotNull(identifiers); assertTrue(containsEPSG(identifiers)); }
final Object get(final int index, final Object metadata) { return (index >= 0 && index < getters.length) ? get(getters[index], metadata) : null; }
PropertyAccessor { final Object get(final int index, final Object metadata) { return (index >= 0 && index < getters.length) ? get(getters[index], metadata) : null; } }
PropertyAccessor { final Object get(final int index, final Object metadata) { return (index >= 0 && index < getters.length) ? get(getters[index], metadata) : null; } PropertyAccessor(final Class<?> implementation, final Class<?> type); }
PropertyAccessor { final Object get(final int index, final Object metadata) { return (index >= 0 && index < getters.length) ? get(getters[index], metadata) : null; } PropertyAccessor(final Class<?> implementation, final Class<?> type); boolean shallowEquals(final Object metadata1, final Object metadata2, final boolean skipNulls); boolean shallowCopy(final Object source, final Object target, final boolean skipNulls); int hashCode(final Object metadata); int count(final Object metadata, final int max); }
PropertyAccessor { final Object get(final int index, final Object metadata) { return (index >= 0 && index < getters.length) ? get(getters[index], metadata) : null; } PropertyAccessor(final Class<?> implementation, final Class<?> type); boolean shallowEquals(final Object metadata1, final Object metadata2, final boolean skipNulls); boolean shallowCopy(final Object source, final Object target, final boolean skipNulls); int hashCode(final Object metadata); int count(final Object metadata, final int max);  }