Java Code Examples for org.opensaml.saml2.metadata.LocalizedString

The following examples show how to use org.opensaml.saml2.metadata.LocalizedString. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: MaxKey   Source File: MetadataGenerator.java    License: Apache License 2.0 6 votes vote down vote up
public Organization getOrganization(String name,String displayName,String url){
 Organization organization=new OrganizationBuilder().buildObject();
 
    OrganizationName organizationName=new OrganizationNameBuilder().buildObject();
    LocalizedString orglocalizedString=new LocalizedString();
    orglocalizedString.setLocalizedString(name);
    organizationName.setName(orglocalizedString);
    organization.getOrganizationNames().add(organizationName);
    
    OrganizationDisplayName organizationDisplayName=new OrganizationDisplayNameBuilder().buildObject();
 LocalizedString localizedString=new LocalizedString();
 localizedString.setLocalizedString(displayName);
 organizationDisplayName.setName(localizedString);
    organization.getDisplayNames().add(organizationDisplayName);
    
    OrganizationURL organizationURL=new OrganizationURLBuilder().buildObject();
    LocalizedString urllocalizedString=new LocalizedString();
    urllocalizedString.setLocalizedString(url);
    organizationURL.setURL(urllocalizedString);
    organization.getURLs().add(organizationURL);
    
    return organization;
}
 
Example 2
Source Project: lams   Source File: LocalizedURIImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
public void setURI(LocalizedString newURI) {
    uri = prepareForAssignment(uri, newURI);
    boolean hasXMLLang = false;
    if (uri != null && !DatatypeHelper.isEmpty(uri.getLanguage())) {
        hasXMLLang = true;
    }
    manageQualifiedAttributeNamespace(LangBearing.XML_LANG_ATTR_NAME, hasXMLLang);
}
 
Example 3
Source Project: lams   Source File: LocalizedNameImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
public void setName(LocalizedString newName) {
    name = prepareForAssignment(name, newName);
    boolean hasXMLLang = false;
    if (name != null && !DatatypeHelper.isEmpty(name.getLanguage())) {
        hasXMLLang = true;
    }
    manageQualifiedAttributeNamespace(LangBearing.XML_LANG_ATTR_NAME, hasXMLLang);
}
 
Example 4
/** {@inheritDoc} */
public void setName(LocalizedString newName) {
    name = prepareForAssignment(name, newName);
    boolean hasXMLLang = false;
    if (name != null && !DatatypeHelper.isEmpty(name.getLanguage())) {
        hasXMLLang = true;
    }
    manageQualifiedAttributeNamespace(LangBearing.XML_LANG_ATTR_NAME, hasXMLLang);
}
 
Example 5
Source Project: lams   Source File: OrganizationURLImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
public void setURL(LocalizedString newURL) {
    url = prepareForAssignment(url, newURL);
    boolean hasXMLLang = false;
    if (url != null && !DatatypeHelper.isEmpty(url.getLanguage())) {
        hasXMLLang = true;
    }
    manageQualifiedAttributeNamespace(LangBearing.XML_LANG_ATTR_NAME, hasXMLLang);
}
 
Example 6
Source Project: lams   Source File: ServiceDescriptionImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
public void setDescription(LocalizedString newDescription) {
    description = prepareForAssignment(description, newDescription);
    boolean hasXMLLang = false;
    if (description != null && !DatatypeHelper.isEmpty(description.getLanguage())) {
        hasXMLLang = true;
    }
    manageQualifiedAttributeNamespace(LangBearing.XML_LANG_ATTR_NAME, hasXMLLang);
}
 
Example 7
Source Project: lams   Source File: ServiceNameImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
public void setName(LocalizedString newName) {
    name = prepareForAssignment(name, newName);
    boolean hasXMLLang = false;
    if (name != null && !DatatypeHelper.isEmpty(name.getLanguage())) {
        hasXMLLang = true;
    }
    manageQualifiedAttributeNamespace(LangBearing.XML_LANG_ATTR_NAME, hasXMLLang);
}
 
Example 8
Source Project: lams   Source File: OrganizationNameImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
public void setName(LocalizedString newName) {
    name = prepareForAssignment(name, newName);
    boolean hasXMLLang = false;
    if (name != null && !DatatypeHelper.isEmpty(name.getLanguage())) {
        hasXMLLang = true;
    }
    manageQualifiedAttributeNamespace(LangBearing.XML_LANG_ATTR_NAME, hasXMLLang);
}
 
Example 9
Source Project: lams   Source File: LocalizedURIImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getURI() {
    return uri;
}
 
Example 10
Source Project: lams   Source File: DescriptionImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getDescription() {
    return getName();
}
 
Example 11
Source Project: lams   Source File: DescriptionImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public void setDescription(LocalizedString newDescription) {
    setName(newDescription);
}
 
Example 12
Source Project: lams   Source File: LocalizedNameImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getName() {
    return name;
}
 
Example 13
/** {@inheritDoc} */
public LocalizedString getName() {
    return name;
}
 
Example 14
Source Project: lams   Source File: OrganizationURLImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getURL() {
    return url;
}
 
Example 15
Source Project: lams   Source File: ServiceDescriptionImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getDescription() {
    return description;
}
 
Example 16
Source Project: lams   Source File: ServiceNameImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getName() {
    return name;
}
 
Example 17
Source Project: lams   Source File: OrganizationNameImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getName() {
    return name;
}
 
Example 18
Source Project: lams   Source File: Description.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the description of the EndPoint.
 * 
 * @return the description of the EndPoint
 */
public LocalizedString getDescription();
 
Example 19
Source Project: lams   Source File: Description.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the description of the EndPoint.
 * 
 * @param newDescription description of the EndPoint
 */
public void setDescription(LocalizedString newDescription);
 
Example 20
Source Project: lams   Source File: LocalizedName.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the name.
 * 
 * @return the name
 */
public LocalizedString getName();
 
Example 21
Source Project: lams   Source File: LocalizedName.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the  name.
 * 
 * @param newName new name
 */
public void setName(LocalizedString newName);
 
Example 22
Source Project: lams   Source File: LocalizedURI.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the URI.
 * 
 * @return the URI
 */
public LocalizedString getURI();
 
Example 23
Source Project: lams   Source File: LocalizedURI.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the URI.
 * 
 * @param newURI the new value
 */
public void setURI(LocalizedString newURI);