823N/A * The contents of this file are subject to the terms of the 823N/A * Common Development and Distribution License, Version 1.0 only 823N/A * (the "License"). You may not use this file except in compliance 823N/A * You can obtain a copy of the license at 823N/A * See the License for the specific language governing permissions 823N/A * and limitations under the License. 823N/A * When distributing Covered Code, include this CDDL HEADER in each 823N/A * file and include the License file at 823N/A * add the following below this CDDL HEADER, with the fields enclosed 873N/A * by brackets "[]" replaced with your own identifying information: 823N/A * Portions Copyright [yyyy] [name of copyright owner] 3215N/A * Copyright 2008 Sun Microsystems, Inc. 823N/A * This class provides an enumeration of the two access 897N/A * The access type string. 823N/A * Constructor that sets the accessType string. 823N/A * @param accessType The access type string to set. 823N/A * Checks if the access type is equal to the string 823N/A * representation passed in. 823N/A * @param type The string representation of the access type. 823N/A * @return True if the access types are equal. 823N/A * TODO Make this method and all other Enum decode methods more efficient. 823N/A * Using the Enum.values() method is documented to be potentially slow. 823N/A * If we ever expect to use the decode() method in a performance-critical 823N/A * manner, then we should make it more efficient. The same thing applies 823N/A * to all of the other enumeration types defined in the package. 823N/A * Decodes an access type enumeration from a string passed into the method. 823N/A * @param type The string representation of the access type. 823N/A * @return Return an EnumAccessType matching the string representation, 823N/A * or null if the string is not valid.