org.opensaml.saml2.metadata.LocalizedString Java Examples

The following examples show how to use org.opensaml.saml2.metadata.LocalizedString. 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 File: MetadataGenerator.java    From MaxKey with 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 File: ServiceDescriptionImpl.java    From lams with 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 #3
Source File: OrganizationURLImpl.java    From lams with 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 #4
Source File: OrganizationDisplayNameImpl.java    From lams with 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 #5
Source File: ServiceNameImpl.java    From lams with 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 #6
Source File: LocalizedNameImpl.java    From lams with 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 #7
Source File: LocalizedURIImpl.java    From lams with 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 #8
Source File: OrganizationNameImpl.java    From lams with 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 File: DescriptionImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getDescription() {
    return getName();
}
 
Example #10
Source File: DescriptionImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public void setDescription(LocalizedString newDescription) {
    setName(newDescription);
}
 
Example #11
Source File: LocalizedNameImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getName() {
    return name;
}
 
Example #12
Source File: LocalizedURIImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getURI() {
    return uri;
}
 
Example #13
Source File: ServiceNameImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getName() {
    return name;
}
 
Example #14
Source File: OrganizationDisplayNameImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getName() {
    return name;
}
 
Example #15
Source File: OrganizationNameImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getName() {
    return name;
}
 
Example #16
Source File: OrganizationURLImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getURL() {
    return url;
}
 
Example #17
Source File: ServiceDescriptionImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public LocalizedString getDescription() {
    return description;
}
 
Example #18
Source File: LocalizedURI.java    From lams with 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);
 
Example #19
Source File: Description.java    From lams with 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 #20
Source File: LocalizedURI.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the URI.
 * 
 * @return the URI
 */
public LocalizedString getURI();
 
Example #21
Source File: LocalizedName.java    From lams with 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 File: LocalizedName.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the name.
 * 
 * @return the name
 */
public LocalizedString getName();
 
Example #23
Source File: Description.java    From lams with 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);