Sample extract from XML file for class ContactPersonDetails.

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

William Louth
Listing 7. Sample extract from XML file for class ContactPersonDetails.


<object-descriptor>
  <class-name>ContactPersonDetails</class-name>
  <name>class:ContactPersonName</name>
  <type>string:Contact Person</type>
  <icon>string:contactperson</icon>
  <property-descriptor width="200">
    <name>Company</name>
    <method>getCompany</method>
  </property-descriptor>
  <property-descriptor>
     <name>First Name</name>
     <method>getFirstName</method>
  </property-descriptor>
  <property-descriptor>
    <name>Last Name</name>
    <method>getLastName</method>
  </property-descriptor>
  ...
  <action-descriptor>
    <name>Properties</name>
    <icon>property.editor</icon>
    <class-name>PropertyAction</class-name>
    <parameter>
      <name>home</name>
      <value>core/contactpersonmaintenance</value>
    </parameter>
  </action-descriptor>
  <action-descriptor>
    <name>Delete</name>
    <icon>delete</icon>
    <class-name>DeleteAction</class-name>
    <parameter>
      <name>home</name>
      <value>core/contactpersonmaintenance</value>
    </parameter>
  </action-descriptor>
  <security-descriptor>
    <security-role>
      <name>Traffic-Manager</name>
    </security-role>
  </security-descriptor>
</object-descriptor>