1 /* 2 * Copyright 1999-2004 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 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.6 2004/02/17 04:21:14 minchau 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 { 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 { 53 m_prefix = prefix; 54 m_uri = uri; 55 } 56 } 57