Ammends some fringe scenarios with state keys and states
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / pz2utils4jsf / pazpar2 / commands / Pazpar2Commands.java
index 4795905..bac6787 100644 (file)
@@ -81,6 +81,11 @@ public class Pazpar2Commands implements Serializable {
     return (ShowCommand) (stateMgr.getCurrentState().getCommand(SHOW));\r
   }\r
   \r
+  /**\r
+   * Gets a detached (copied) record command from the current state\r
+   * \r
+   * @return\r
+   */\r
   public RecordCommand getRecord() {\r
     return (RecordCommand) (stateMgr.checkOut(RECORD));\r
   }\r
@@ -94,10 +99,19 @@ public class Pazpar2Commands implements Serializable {
     return (RecordCommand)stateMgr.getCurrentState().getCommand(RECORD);\r
   }\r
   \r
+  /**\r
+   * Gets a detached (copied) termlist command from the current state\r
+   * \r
+   * @return Mutable termlist command\r
+   */\r
   public TermlistCommand getTermlist() {\r
     return (TermlistCommand) (stateMgr.checkOut(TERMLIST));\r
   }\r
   \r
+  /**\r
+   * \r
+   * @return\r
+   */\r
   public BytargetCommand getBytarget() {\r
     return (BytargetCommand) (stateMgr.checkOut(BYTARGET));\r
   }\r