2362N/A * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * A straightforward implementation of MutableAttributeSet using a 0N/A * <strong>Warning:</strong> 0N/A * Serialized objects of this class will not be compatible with 0N/A * future Swing releases. The current serialization support is 0N/A * appropriate for short term storage or RMI between applications running 0N/A * the same version of Swing. As of 1.4, support for long term storage 0N/A * of all JavaBeans<sup><font size="-2">TM</font></sup> 0N/A * has been added to the <code>java.beans</code> package. 0N/A * @author Tim Prinzing 0N/A * An empty attribute set. 0N/A * Creates a new attribute set. 0N/A * Creates a new attribute set based on a supplied set of attributes. 0N/A * @param source the set of attributes 0N/A * Checks whether the set of attributes is empty. 0N/A * @return true if the set is empty else false 0N/A * Gets a count of the number of attributes. 0N/A * Tells whether a given attribute is defined. 0N/A * @param attrName the attribute name 0N/A * @return true if the attribute is defined 0N/A * Compares two attribute sets. 0N/A * @param attr the second attribute set 0N/A * @return true if the sets are equal, false otherwise 0N/A * Makes a copy of the attributes. 0N/A * Gets the names of the attributes in the set. 0N/A * @return the names as an <code>Enumeration</code> 0N/A * Gets the value of an attribute. 0N/A * @param name the attribute name 0N/A * Checks whether the attribute list contains a 0N/A * @param name the name 0N/A * @param value the value 0N/A * Checks whether the attribute list contains all the 0N/A * @param attributes the attribute list 0N/A * @return true if the list contains all the name/value pairs 0N/A * Adds an attribute to the list. 0N/A * @param name the attribute name 0N/A * @param value the attribute value 0N/A * Adds a set of attributes to the list. 0N/A * @param attributes the set of attributes to add 0N/A * Removes an attribute from the list. 0N/A * @param name the attribute name 0N/A * Removes a set of attributes from the list. 0N/A * @param names the set of names to remove 0N/A * Removes a set of attributes from the list. 0N/A * @param attributes the set of attributes to remove 0N/A * Gets the resolving parent. This is the set 0N/A * of attributes to resolve through if an attribute 0N/A * isn't defined locally. This is null if there 0N/A * are no other sets of attributes to resolve 0N/A * @return the parent 0N/A * Sets the resolving parent. 0N/A * @param parent the parent 0N/A // --- Object methods --------------------------------- 0N/A * Clones a set of attributes. 0N/A * @return the new set of attributes 0N/A * Returns a hashcode for this set of attributes. 0N/A * @return a hashcode value for this set of attributes. 0N/A * Compares this object to the specified object. 0N/A * The result is <code>true</code> if the object is an equivalent 0N/A * set of attributes. 0N/A * @param obj the object to compare this attribute set with 0N/A * @return <code>true</code> if the objects are equal; 0N/A * <code>false</code> otherwise 0N/A * Converts the attribute set to a String. 0N/A * @return the string 0N/A // don't go recursive 0N/A s = s +
key +
"=**AttributeSet** ";
0N/A * An AttributeSet that is always empty.