KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > zeus > util > XMLName


1 /*
2  * Enhydra Java Application Server Project
3  *
4  * The contents of this file are subject to the Enhydra Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License on
7  * the Enhydra web site ( http://www.enhydra.org/ ).
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11  * the License for the specific terms governing rights and limitations
12  * under the License.
13  *
14  * The Initial Developer of the Enhydra Application Server is Lutris
15  * Technologies, Inc. The Enhydra Application Server and portions created
16  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17  * All Rights Reserved.
18  */

19 package org.enhydra.zeus.util;
20
21 /**
22  * <p>
23  * <code>XMLName</code> is a small (private) utility class to hold the
24  * pair of strings used to identify a binding to ignore.
25  * </p>
26  *
27  * @author Brett McLaughlin
28  * @author Sean Ogle
29  */

30 public class XMLName {
31
32     /** The XML name of the class */
33     private String JavaDoc xmlName;
34     
35     /** The URI for this XML name */
36     private String JavaDoc namespaceURI;
37     
38     /**
39      * <p>
40      * This allows construction of a new XML named item.
41      * </p>
42      *
43      * @param xmlName the name of the XML item
44      * @param namespaceURI the namespace URI for this item
45      */

46     public XMLName(String JavaDoc xmlName, String JavaDoc namespaceURI) {
47         this.xmlName = xmlName;
48         this.namespaceURI = namespaceURI;
49     }
50     
51     /**
52      * <p>
53      * This sets the XML name for this item.
54      * </p>
55      *
56      * @param xmlName the name of the XML item.
57      */

58      public void setXMLName(String JavaDoc xmlName) {
59          this.xmlName = xmlName;
60      }
61      
62      /**
63       * <p>
64       * This returns the XML name of this item.
65       * </p>
66       *
67       * @return <code>String</code> - this item's XML name
68       */

69      public String JavaDoc getXMLName() {
70          return xmlName;
71      }
72      
73     /**
74      * <p>
75      * This sets the URI for this item.
76      * </p>
77      *
78      * @param namespaceURI the namespace URI
79      */

80      public void setNamespaceURI(String JavaDoc namespaceURI) {
81          this.namespaceURI = namespaceURI;
82      }
83      
84      /**
85       * <p>
86       * This returns the namespace URI of this item.
87       * </p>
88       *
89       * @return <code>String</code> - this item's namespace URI
90       */

91      public String JavaDoc getNamespaceURI() {
92          return namespaceURI;
93      }
94 }
95
Popular Tags