Advertisement
Guest User

ShowAttachedObjectAction

a guest
Nov 12th, 2014
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. public class ShowAttachedOBjectAction implements Action {
  2.  
  3.     /** A list of all attachedOBject types available */
  4.     private List<String> objectTypes;
  5.  
  6.     @Override
  7.     public String execute() throws Exception {
  8.         objectTypes = new ArrayList<String>();
  9.         ObjectType[] allTypes = ObjectType.values();
  10.         for (ObjectType objectType : allTypes) {
  11.             objectTypes.add(objectType.toString());
  12.         }
  13.         return SUCCESS;
  14.     }
  15.  
  16. /** getters and setters */
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement