Example usage for javax.xml.registry.infomodel ExternalLink getName

List of usage examples for javax.xml.registry.infomodel ExternalLink getName

Introduction

In this page you can find the example usage for javax.xml.registry.infomodel ExternalLink getName.

Prototype

InternationalString getName() throws JAXRException;

Source Link

Document

Gets the user-friendly name of this object.

Usage

From source file:it.cnr.icar.eric.client.ui.thin.RegistryObjectCollectionBean.java

public List<SelectItem> getExternalLinks() throws JAXRException {
    ArrayList<SelectItem> list = new ArrayList<SelectItem>();
    Collection<?> externalLinks = (Collection<?>) getCurrentRegistryObjectBean().getFields()
            .get("externalLinks");
    Iterator<?> iter = externalLinks.iterator();
    while (iter.hasNext()) {
        ExternalLink anItem = (ExternalLink) iter.next();
        list.add(new SelectItem(anItem.getExternalURI() + "(" + anItem.getName() + ")"));
    }//ww w . java2  s.  co m
    return list;
}