Example of a class implementing the

ENTERPRISE JAVA
Bridging the Gap Between Java Clients and EJBs Using XML

William Louth
Listing 4. Example of a class implementing the Name interface.


public class TrunkDetailsIconName implements Name {
  private String BEARER = "bearer";
  private String TRUNK = "trunk";
  public String get(Object obj) {
    TrunkDetails d = (TrunkDetails)obj;
    return ((d.isBearer()) ? BEARER : TRUNK);
  }
}

Upcoming Training Events

0 AM
Visual Studio Live! San Diego
September 8-12, 2025
Live! 360 Orlando
November 16-21, 2025
Cloud & Containers Live! Orlando
November 16-21, 2025
Data Platform Live! Orlando
November 16-21, 2025
Visual Studio Live! Orlando
November 16-21, 2025