KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > util > xml > idefix > NamespaceFactoryIF


1 package org.sapia.util.xml.idefix;
2
3 import org.sapia.util.xml.Namespace;
4
5 import java.lang.reflect.Method JavaDoc;
6
7
8 /**
9  * This interface allow the creation of <CODE>Namespace</CODE> objects.
10  *
11  * @author <a HREF="mailto:jc@sapia-oss.org">Jean-Cedric Desrochers</a>
12  * <dl>
13  * <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>
14  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
15  * <a HREF="http://www.sapia-oss.org/license.html" target="sapia-license">license page</a> at the Sapia OSS web site</dd></dt>
16  * </dl>
17  */

18 public interface NamespaceFactoryIF {
19   /** Defines a default namespace instance. */
20   public static final Namespace DEFAULT_NAMESPACE = new Namespace("", "");
21
22   /**
23    * Returns the namespace that should be associated with the XML representation
24    * of the passed in class. If no association is found <code>null</code> is
25    * return.
26    *
27    * @param aClass The class for which to retrieve a namespace.
28    * @return The associated namespace or <code>null</code> is none is found.
29    * @see #DEFAULT_NAMESPACE
30    */

31   public Namespace getNamespaceFor(Class JavaDoc aClass);
32
33   /**
34    * Returns the namespace that should be associated with the XML representation
35    * of the passed in method. If no association is found <code>null</code> is
36    * return.
37    *
38    * @param aMethod The method for which to retrieve a namespace.
39    * @return The associated namespace or <code>null</code> is none is found.
40    * @see #DEFAULT_NAMESPACE
41    */

42   public Namespace getNamespaceFor(Method JavaDoc aMethod);
43 }
44
Popular Tags