第九章 Advanced Solutions_3

g. Use the default get and set methods automatically generated for each attribute to also print out attribute information.
i. As before, exceptions will be thrown and need to be handled.
j. Run the program, then use the OOTB search UI to verify the results.
Step 3. Create a custom Part.
a. Create a Java application with a Main method.
b. Add a method createPart(). Call this method from the Main method.
c. objects are stored in containers. Inside createPart(), first execute a search for the container named “GOLF_CART”.
d. From the results — stored in a QueryResult (variable “qr”) — get a reference to the container:
e. Initialize the custom Part and set the attributes. Below is an example of setting an EnumeratedType attribute where the name of the EnumeratedType attribute is “Material”, and the name of the role association is “matl”:
The number for the object will be the current date and time.
f. Set the folder and persist the object. Note that the assignLocation() method uses the reference to the GOLF_CART container found previously:
g. As before, exceptions will be thrown and need to be handled.
h. Run the program and use the UI to verify custom Parts are being created.
Summary
After completing this module, you should be able to:
• Perform tasks in the Engineer Component element of the Application Solution Development module of the System RVP work stream.
• Implement a custom link.
• Implement a listener service.

你可能感兴趣的:(C++,c,UI,F#,C#)