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 com.sun.org.apache.xml.internal.utils;
  20. import java.io.Serializable;
  21. /**
  22. * A representation of a namespace. One of these will
  23. * be pushed on the namespace stack for each
  24. * element.
  25. * @xsl.usage advanced
  26. */
  27. public class NameSpace implements Serializable
  28. {
  29. /** Next NameSpace element on the stack.
  30. * @serial */
  31. public NameSpace m_next = null;
  32. /** Prefix of this NameSpace element.
  33. * @serial */
  34. public String m_prefix;
  35. /** Namespace URI of this NameSpace element.
  36. * @serial */
  37. public String m_uri; // if null, then Element namespace is empty.
  38. /**
  39. * Construct a namespace for placement on the
  40. * result tree namespace stack.
  41. *
  42. * @param prefix Prefix of this element
  43. * @param uri URI of this element
  44. */
  45. public NameSpace(String prefix, String uri)
  46. {
  47. m_prefix = prefix;
  48. m_uri = uri;
  49. }
  50. }