Documentation Center

Sample Definitions

<components>

   <!-- SDK-based components are self-describing. Only the class name is required for them to be properly handled. The examples show what is required, with the additional legacy requirements shown as comments. We suggest providing comments like this to describe each component. -->

   <!-- Illustrates how to create an attribute using the component descriptor file -->
   <attribute name="Sample_Attribute" ui_name="Sample Attribute"
      object_type="user"
      flags="readonly" type="selector">
      <option value="value1"/>
      <option value="value2"/>
   </attribute>

   <!-- Illustrates how to create a mime type using the component descriptor file -->
   <mime_type type="complex/Sample" description="Sample mime type"
      is_text="yes"
      default_extension="smp"
      external_type="plain/text"
      filter="XML Filter"
      extensions="smp klg"/>

   <!-- Illustrates how to create an AIS property using the component descriptor file --> 
   <ais_property name="Sample AIS Property" inheritance="inherited" type="selector">
      <option value="value1"/>
      <option value="value2"/>
   </ais_property>

   <!-- Illustrates how to create a human action using the component descriptor file -->
   <human_action name="Sample Human Action" instructions="Do what you want to do" />

</components>