biz.c24.io.api.data
Class NamespaceMapping

java.lang.Object
  extended by biz.c24.io.api.data.NamespaceMapping
All Implemented Interfaces:
Serializable

public class NamespaceMapping
extends Object
implements Serializable

An immutable mapping between a namespace URI and a shorthand prefix.

Warning: Serialized objects of this class or of a deployed class which is derived from it may not be compatible with future releases of C24 Integreation Objects. The current serialization support is appropriate for short term storage or RMI between applications running the same version of C24 Integreation Objects.

See Also:
Serialized Form

Constructor Summary
NamespaceMapping(String uri, String prefix)
          Creates a new instance with the given URI and prefix.
 
Method Summary
 boolean equals(Object o)
           
 String getPrefix()
          Returns the prefix.
 String getUri()
          Returns the URI.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamespaceMapping

public NamespaceMapping(String uri,
                        String prefix)
Creates a new instance with the given URI and prefix.

Parameters:
uri - The namespace uri.
prefix - The prefix.
Throws:
NullPointerException - if either uri or prefix is null.
Method Detail

getUri

public String getUri()
Returns the URI.

Returns:
The URI.

getPrefix

public String getPrefix()
Returns the prefix.

Returns:
The prefix.

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


C24 Technologies © 2002-2012: All Rights Reserved.