org.opensaml.saml2.metadata
Class LocalizedString

java.lang.Object
  extended by org.opensaml.saml2.metadata.LocalizedString

public class LocalizedString
extends Object

Localized String with the language associated with it.


Field Summary
private  String language
          Language of the localized string.
private  String localizedString
          Localized string.
 
Constructor Summary
LocalizedString()
          Constructor.
LocalizedString(String localString, String language)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
          Determines if two LocalizedStrings are equal, that is, if both thier localized string and language have case-sentivite equality.
 String getLanguage()
          Gets the language of the string.
 String getLocalString()
          Gets the localized string.
 int hashCode()
          
 void setLanguage(String newLanguage)
          Sets the language of the string.
 void setLocalizedString(String newString)
          Sets the localized string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localizedString

private String localizedString
Localized string.


language

private String language
Language of the localized string.

Constructor Detail

LocalizedString

public LocalizedString()
Constructor.


LocalizedString

public LocalizedString(String localString,
                       String language)
Constructor.

Parameters:
localString - the localized string
language - the language of the string
Method Detail

getLocalString

public String getLocalString()
Gets the localized string.

Returns:
the localized string

setLocalizedString

public void setLocalizedString(String newString)
Sets the localized string.

Parameters:
newString - the localized string

getLanguage

public String getLanguage()
Gets the language of the string.

Returns:
the language of the string

setLanguage

public void setLanguage(String newLanguage)
Sets the language of the string.

Parameters:
newLanguage - the language of the string

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Determines if two LocalizedStrings are equal, that is, if both thier localized string and language have case-sentivite equality.

Overrides:
equals in class Object
Parameters:
obj - the object this object is compared with
Returns:
true if the objects are equal, false if not


Copyright © 1999-2013. All Rights Reserved.