001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one
003     * or more contributor license agreements. See the NOTICE file
004     * distributed with this work for additional information
005     * regarding copyright ownership. The ASF licenses this file
006     * to you under the Apache License, Version 2.0 (the  "License");
007     * you may not use this file except in compliance with the License.
008     * You may obtain a copy of the License at
009     *
010     *     http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     */
018    /*
019     * $Id: NameSpace.java 468655 2006-10-28 07:12:06Z minchau $
020     */
021    package org.apache.xml.utils;
022    
023    import java.io.Serializable;
024    
025    /**
026     * A representation of a namespace.  One of these will
027     * be pushed on the namespace stack for each
028     * element.
029     * @xsl.usage advanced
030     */
031    public class NameSpace implements Serializable
032    {
033        static final long serialVersionUID = 1471232939184881839L;
034    
035      /** Next NameSpace element on the stack.
036       *  @serial             */
037      public NameSpace m_next = null;
038    
039      /** Prefix of this NameSpace element.
040       *  @serial          */
041      public String m_prefix;
042    
043      /** Namespace URI of this NameSpace element.
044       *  @serial           */
045      public String m_uri;  // if null, then Element namespace is empty.
046    
047      /**
048       * Construct a namespace for placement on the
049       * result tree namespace stack.
050       *
051       * @param prefix Prefix of this element
052       * @param uri URI of  this element
053       */
054      public NameSpace(String prefix, String uri)
055      {
056        m_prefix = prefix;
057        m_uri = uri;
058      }
059    }