01: /*
02: * Copyright 1999-2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: /*
17: * $Id: NameSpace.java,v 1.7 2004/08/17 18:57:22 jycli Exp $
18: */
19: package org.apache.xml.utils;
20:
21: import java.io.Serializable;
22:
23: /**
24: * A representation of a namespace. One of these will
25: * be pushed on the namespace stack for each
26: * element.
27: * @xsl.usage advanced
28: */
29: public class NameSpace implements Serializable {
30: static final long serialVersionUID = 1471232939184881839L;
31:
32: /** Next NameSpace element on the stack.
33: * @serial */
34: public NameSpace m_next = null;
35:
36: /** Prefix of this NameSpace element.
37: * @serial */
38: public String m_prefix;
39:
40: /** Namespace URI of this NameSpace element.
41: * @serial */
42: public String m_uri; // if null, then Element namespace is empty.
43:
44: /**
45: * Construct a namespace for placement on the
46: * result tree namespace stack.
47: *
48: * @param prefix Prefix of this element
49: * @param uri URI of this element
50: */
51: public NameSpace(String prefix, String uri) {
52: m_prefix = prefix;
53: m_uri = uri;
54: }
55: }
|