alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 *                 Sun Public License Notice
 * 
 * The contents of this file are subject to the Sun Public License
 * Version 1.0 (the "License"). You may not use this file except in
 * compliance with the License. A copy of the License is available at
 * http://www.sun.com/
 * 
 * The Original Code is NetBeans. The Initial Developer of the Original
 * Code is Sun Microsystems, Inc. Portions Copyright 1997-2002 Sun
 * Microsystems, Inc. All Rights Reserved.
 */
package org.netbeans.api.xml.services;

import java.util.Iterator;
import javax.xml.transform.URIResolver;

import org.xml.sax.EntityResolver;
import org.openide.util.Lookup;

// for JavaDoc
import org.openide.xml.EntityCatalog;

/**
 * Factory of user's catalog service instaces. A client cannot instantiate and
 * use it directly. It can indirectly use instances are registeretered in a 
 * {@link Lookup} by providers.
 * 

* It is user's level equivalent of system's entity resolution support * {@link EntityCatalog} in OpenIDE API. Do not mix these, * always use UserCatalog while working with user's files. * User may, depending on provider implementation, use system catalog as * user's one if needed. * * @author Libor Kramolis * @author Petr Kuzel * @since 0.5 */ public abstract class UserCatalog { // abstract to avoid instantionalization by API clients /** * Utility method looking up for an instance in default Lookup. * @return UserCatalog registered in default Lookup or null. */ public static UserCatalog getDefault() { return (UserCatalog) Lookup.getDefault().lookup(UserCatalog.class); } /** * User's JAXP/TrAX URIResolver. * @return URIResolver or null if not supported. */ public URIResolver getURIResolver() { return null; } /** * User's SAX EntityResolver. * @return EntityResolver or null if not supported. */ public EntityResolver getEntityResolver() { return null; } /** * Read-only "sampled" iterator over all registered entity public IDs. * @return all known public IDs or null if not supported. */ // Svata suggested here a live collection, but he accepts this solution if it // is only for informational purposes. It is. public Iterator getPublicIDs() { return null; } }

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.