com.softwareag.tamino.db.api.common
Class TUri

java.lang.Object
  extended by com.softwareag.tamino.db.api.common.TUri

public class TUri
extends java.lang.Object

TUri encapsulates a URI. This is the starting point for the implementation of the rfc2396 (http://www.ietf.org/rfc/rfc2396.txt)
This thing will move on as needed.

Version:
$Revision: 1.6 $
Author:
Stefan Liebig

Constructor Summary
TUri(java.lang.String uri)
          Create a URI.
 
Method Summary
 boolean equals(java.lang.Object object)
          Indicates whether some other object is "equal to" this one.
 java.lang.String getAsString()
          Get the uri as a string.
 java.util.Locale getLocale()
          Gets the locale.
 java.lang.String getScheme()
          Get the scheme (protocal) name from this URI.
 java.lang.String getUri()
          Return the URI as a string.
 int hashCode()
          Returns a hash code value for the object.
 void setLocale(java.util.Locale locale)
          Sets the locale.
 java.lang.String toString()
          Return a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TUri

public TUri(java.lang.String uri)
     throws java.net.MalformedURLException
Create a URI.

Parameters:
string - the URI as a string
Throws:
java.net.MalformedURLException
Method Detail

getUri

public java.lang.String getUri()
Return the URI as a string.

Returns:
the URI

getScheme

public java.lang.String getScheme()
Get the scheme (protocal) name from this URI.

Returns:
the scheme name

getAsString

public java.lang.String getAsString()
Get the uri as a string.

Returns:
the uri string

setLocale

public void setLocale(java.util.Locale locale)
Sets the locale.


getLocale

public java.util.Locale getLocale()
Gets the locale.

Returns:
the locale.

hashCode

public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class java.lang.Object
Returns:
the hashCode

equals

public boolean equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Returns:
equality

toString

public java.lang.String toString()
Return a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
string representation


Copyright (c) 2013 Software AG. All Rights Reserved.