KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > util > xml > confix > ObjectFactoryIF


1 package org.sapia.util.xml.confix;
2
3
4 /**
5  * This interface specifies the behavior of factories that create
6  * objects out of XML content.
7  *
8  * @author Yanick Duchesne
9  *
10  * <dl>
11  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
12  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
13  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
14  * </dl>
15  */

16 public interface ObjectFactoryIF {
17   /**
18    * Creates an object for the element passed in.
19    *
20    * @param aPrefix The namespace prefix of the element.
21    * @param aNamespaceURI The namespace URI of the element.
22    * @param anElementName The element name for wich to create an object.
23    * @param aParent The parent object of the object to create.
24    * @exception ObjectCreationException If an error occurs creating the object.
25    */

26   public CreationStatus newObjectFor(String JavaDoc aPrefix, String JavaDoc aNamespaceURI,
27     String JavaDoc anElementName, Object JavaDoc aParent) throws ObjectCreationException;
28 }
29
Popular Tags