net.groboclown.util.jplugin.v1
Class ClassWrapper
java.lang.Object
|
+--net.groboclown.util.jplugin.v1.ClassWrapper
- public class ClassWrapper
- extends Object
Wraps the class description up in a neat package
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
DISPLAY_NAME
public static final String DISPLAY_NAME
ICON_NAME
public static final String ICON_NAME
classInspector
private Inspector classInspector
name
private String name
className
private String className
attributes
private ClassAttributes attributes
attributeSets
private Vector attributeSets
classSets
private Vector classSets
clazz
private Class clazz
icon
private Image icon
ClassWrapper
public ClassWrapper(String className,
ClassAttributes ca,
Inspector classInspector)
- Throws:
NoClassDefFoundError
- thrown when the given class
was not found by the class inspector. Should this be a
IllegalStateException?
getName
public String getName()
getClassName
public String getClassName()
hasAttribute
public boolean hasAttribute(String attrib)
hasAttribute
public boolean hasAttribute(String attrib,
String val)
instantiate
public Object instantiate()
getContainedClass
public Class getContainedClass()
getAttributeSets
public Enumeration getAttributeSets()
getClassSets
public Enumeration getClassSets()
isInAttributeSet
public boolean isInAttributeSet(String name)
isInClassSet
public boolean isInClassSet(String name)
isInClassSet
public boolean isInClassSet(Class clazz)
isInSet
public boolean isInSet(String name)
addAttributeSet
public void addAttributeSet(String name)
addClassSet
public void addClassSet(String name)
getIcon
public Image getIcon()
Written under the LGPL