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

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

Introduction

In this page you can find the example usage for javax.xml.registry.infomodel Classification 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> getClassifications() throws JAXRException {
    ArrayList<SelectItem> list = new ArrayList<SelectItem>();
    Collection<?> classifications = (Collection<?>) getCurrentRegistryObjectBean().getFields()
            .get("classifications");
    Iterator<?> iter = classifications.iterator();
    while (iter.hasNext()) {
        Classification anItem = (Classification) iter.next();
        String cstr = anItem.getName() + ":" + anItem.getValue();
        list.add(new SelectItem(cstr));
    }// w  ww  .j  a va2 s  .  c  o m
    return list;
}