/** * Returns the set of authority codes. * * @throws FactoryException if access to the underlying database failed. */ public final Set /*<String>*/ getAuthorityCodes() throws FactoryException { return getAuthorityFactory().getAuthorityCodes(getType()); }
/** * The Authority for this Finder; used during get Identifier. * * @return Citation for the authority being represented. */ protected Citation getAuthority() { return getProxy().getAuthorityFactory().getAuthority(); } /** Returns the identifier for the specified object. */
/** Returns the user-supplied factories. */ final Collection<AuthorityFactory> getFactories() { return ((ManyAuthoritiesFactory) getProxy().getAuthorityFactory()).getFactories(); }
/** Returns all factories to try. */ private Set<AuthorityFactory> fromFactoryRegistry() { final ManyAuthoritiesFactory factory = (ManyAuthoritiesFactory) getProxy().getAuthorityFactory(); final Class<? extends AuthorityFactory> type = getProxy().getType(); final Set<AuthorityFactory> factories = new LinkedHashSet<AuthorityFactory>(); for (final String authority : ReferencingFactoryFinder.getAuthorityNames()) { factory.fromFactoryRegistry(authority, type, factories); } // Removes the factories already tried by super-class. final Collection<AuthorityFactory> done = getFactories(); if (done != null) { factories.removeAll(done); } return factories; }
/** Returns a string representation of the specified object, for debugging purpose only. */ final String toString(final Class owner) { final AuthorityFactory factory = getAuthorityFactory(); return Classes.getShortName(owner) + '[' + Classes.getShortName(getType()) + " in " + Classes.getShortClassName(factory) + "(\"" + factory.getAuthority().getTitle() + "\")]"; }
final Citation authority = getProxy().getAuthorityFactory().getAuthority(); final boolean isAll = ReferencingFactory.ALL.equals(authority); for (final Iterator it = object.getIdentifiers().iterator(); it.hasNext(); ) {