org.xulux.utils
Class Translation

java.lang.Object
  extended by org.xulux.utils.Translation

public class Translation
extends java.lang.Object

The translation object is a holder of translation information (url to get names from) It defaults to classloader loading.

Version:
$Id: Translation.java,v 1.1 2005/12/18 12:58:15 mvdb Exp $
Author:
Martin van den Bemt

Constructor Summary
Translation()
           
Translation(java.lang.String url, java.lang.String type)
          Convenient constructor instead of calling the setters..
 
Method Summary
 boolean equals(java.lang.Object object)
          Case sensitive comparison of urls.
 java.lang.String getType()
           
 java.lang.String getUrl()
           
 void setType(java.lang.String string)
           
 void setUrl(java.lang.String string)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Translation

public Translation()

Translation

public Translation(java.lang.String url,
                   java.lang.String type)
Convenient constructor instead of calling the setters..

Parameters:
url - the url
type - the type
Method Detail

getType

public java.lang.String getType()
Returns:
the type

getUrl

public java.lang.String getUrl()
Returns:
the url

setType

public void setType(java.lang.String string)
Parameters:
string - the type

setUrl

public void setUrl(java.lang.String string)
Parameters:
string - the type

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

equals

public boolean equals(java.lang.Object object)
Case sensitive comparison of urls.

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.