FileDocCategorySizeDatePackage
MockAttributeSet.javaAPI DocJava SE 5 API2572Fri Aug 26 14:58:20 BST 2005javax.swing.text.rtf

MockAttributeSet

public class MockAttributeSet extends Object implements MutableAttributeSet, AttributeSet

Fields Summary
public Dictionary
backing
Constructors Summary
Methods Summary
public voidaddAttribute(java.lang.Object name, java.lang.Object value)

        backing.put(name, value);
    
public voidaddAttributes(javax.swing.text.AttributeSet attr)

        Enumeration as = attr.getAttributeNames();
	while(as.hasMoreElements()) {
	    Object el = as.nextElement();
	    backing.put(el, attr.getAttribute(el));
	}
    
public booleancontainsAttribute(java.lang.Object name, java.lang.Object value)

         throw new InternalError("MockAttributeSet: charade revealed!");
    
public booleancontainsAttributes(javax.swing.text.AttributeSet attr)

         throw new InternalError("MockAttributeSet: charade revealed!");
    
public javax.swing.text.AttributeSetcopyAttributes()

         throw new InternalError("MockAttributeSet: charade revealed!");
    
public java.lang.ObjectgetAttribute(java.lang.Object name)

        return backing.get(name);
    
public intgetAttributeCount()

         return backing.size();
    
public java.util.EnumerationgetAttributeNames()

         return backing.keys();
    
public javax.swing.text.AttributeSetgetResolveParent()

         throw new InternalError("MockAttributeSet: charade revealed!");
    
public booleanisDefined(java.lang.Object name)

         return ( backing.get(name) ) != null;
    
public booleanisEmpty()

         return backing.isEmpty();
    
public booleanisEqual(javax.swing.text.AttributeSet attr)

         throw new InternalError("MockAttributeSet: charade revealed!");
    
public voidremoveAttribute(java.lang.Object name)

        backing.remove(name);
    
public voidremoveAttributes(javax.swing.text.AttributeSet attr)

         throw new InternalError("MockAttributeSet: charade revealed!");
    
public voidremoveAttributes(java.util.Enumeration en)

         throw new InternalError("MockAttributeSet: charade revealed!");
    
public voidsetResolveParent(javax.swing.text.AttributeSet pp)

         throw new InternalError("MockAttributeSet: charade revealed!");