com.objsys.asn1j.runtime
Class Asn1XmlNamespace

java.lang.Object
  extended by com.objsys.asn1j.runtime.Asn1XmlNamespace

public class Asn1XmlNamespace
extends java.lang.Object

This class maps an XML namespace prefix to a URI.


Constructor Summary
Asn1XmlNamespace(java.lang.String prefix, java.lang.String uri)
          The constructor creates a mapping between a namespace URI and a prefix.
 
Method Summary
 java.lang.String getPrefix()
          This method is used to get the prefix value.
 java.lang.String getURI()
          This method is used to get the URI value.
 boolean isPrefixEqual(java.lang.String prefix)
          This method is used to test the given prefix for a match.
 boolean isURIEqual(java.lang.String uri)
          This method is used to test the given URI for a match.
 void setPrefix(java.lang.String prefix)
          This method is used to set the prefix value.
 void setURI(java.lang.String uri)
          This method is used to get the URI value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Asn1XmlNamespace

public Asn1XmlNamespace(java.lang.String prefix,
                        java.lang.String uri)
The constructor creates a mapping between a namespace URI and a prefix.

Parameters:
prefix - XML namespace prefix
uri - XML namespace URI
Method Detail

getPrefix

public java.lang.String getPrefix()
This method is used to get the prefix value.


getURI

public java.lang.String getURI()
This method is used to get the URI value.


isPrefixEqual

public boolean isPrefixEqual(java.lang.String prefix)
This method is used to test the given prefix for a match.


isURIEqual

public boolean isURIEqual(java.lang.String uri)
This method is used to test the given URI for a match.


setPrefix

public void setPrefix(java.lang.String prefix)
This method is used to set the prefix value.


setURI

public void setURI(java.lang.String uri)
This method is used to get the URI value.