Author: joehni Date: Tue Aug 18 19:52:18 2009 New Revision: 805554 URL: http://svn.apache.org/viewvc?rev=805554&view=rev Log: Make string representation of UserAuthenticationData.Type available to be used as constants read from some kind of configuration file.
Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/UserAuthenticationData.java Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/UserAuthenticationData.java URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/UserAuthenticationData.java?rev=805554&r1=805553&r2=805554&view=diff ============================================================================== --- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/UserAuthenticationData.java (original) +++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/UserAuthenticationData.java Tue Aug 18 19:52:18 2009 @@ -71,6 +71,10 @@ { return type != null ? type.hashCode() : 0; } + + public String toString() { + return type; + } } /** The user name. */ @@ -92,7 +96,7 @@ /** * set a data to this collection. * @param type The Type to add - * @param data The data assoicated with the Type + * @param data The data associated with the Type */ public void setData(Type type, char[] data) { @@ -102,7 +106,7 @@ /** * get a data from the collection. * @param type The Type to retrieve. - * @return a character array containing the data assoicated with the type. + * @return a character array containing the data associated with the type. */ public char[] getData(Type type) {