Changeset 2101 for FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/handlers/CommandHandler.java
- Timestamp:
- 2008-06-23 00:00:48 (7 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/handlers/CommandHandler.java
r1905 r2101 25 25 26 26 /** 27 * Handler for the get and postcommands.27 * Handler for <code>GET</code> and <code>POST</code> commands. 28 28 * 29 29 * @version $Id$ … … 60 60 * Getter for the name. 61 61 * 62 * @return name62 * @return The command name 63 63 */ 64 64 public String getName() { … … 70 70 * 71 71 * @param name 72 * @return A {@link CommandHandler} object holding the value represented by the string 73 * argument. 72 * A command to retrieve 73 * @return A {@link CommandHandler} object holding the value represented by 74 * the string argument. 74 75 * @throws IllegalArgumentException 75 * If 'name' is null or can't be parsed.76 * If 'name' is <code>null</code> or does not exist. 76 77 */ 77 78 public static CommandHandler valueOf(final String name) throws IllegalArgumentException { … … 86 87 87 88 /** 88 * Checks, if a specfied string is a valid representation of a get command. 89 * Checks if a specfied string represents a valid <code>GET</code> 90 * command. 89 91 * 90 92 * @param name 91 * @return True, if the string representation is valid, or false. 93 * A command string to check 94 * @return <code>true</code> if the string representation is valid else 95 * <code>false</code>. 92 96 */ 93 97 public static boolean isValidForGet(final String name) { … … 96 100 97 101 /** 98 * Checks, if a specfied string is a valid representation of a post command. 102 * Checks if a specfied string represents a valid <code>POST</code> 103 * command. 99 104 * 100 105 * @param name 101 * @return True, if the string representation is valid, or false. 106 * A command string to check 107 * @return <code>true</code> if the string representation is valid else 108 * <code>false</code>. 102 109 */ 103 110 public static boolean isValidForPost(final String name) { … … 107 114 108 115 /** 109 * A wrapper for {@link #valueOf(String)}. It returns null instead of throwing an exception. 116 * A wrapper for {@link #valueOf(String)}. It returns null instead of 117 * throwing an exception. 110 118 * 111 * @param name 112 * @return A {@link CommandHandler} object holding the value represented by the string113 * argument, or null.119 * @param name A command string to check 120 * @return A {@link CommandHandler} object holding the value represented by 121 * the string argument, or <code>null</code>. 114 122 */ 115 123 public static CommandHandler getCommand(final String name) { … … 128 136 @Override 129 137 public boolean equals(Object obj) { 138 if (obj == null) 139 return false; 130 140 try { 131 141 CommandHandler rt = (CommandHandler) obj;