Protege 2.1

edu.stanford.smi.protege.util
Class PropertyList

java.lang.Object
  extended byedu.stanford.smi.protege.util.PropertyList

public class PropertyList
extends Object

A property list used by widgets. This is a wrapper around a Project knowledge base instance. I probably should have just used a java.util.Properties class but I wanted to provide methods for working with types of objects (e.g. Rectangles) other than strings. Also the Properties class inheritance is messed up and provides a bunch of dangerous methods.

Author:
Ray Fergerson

Field Summary
static String CLASS_PROPERTY_LIST
           
 
Constructor Summary
PropertyList(Instance instance)
           
 
Method Summary
 void clear()
           
 Object clone()
           
static PropertyList create(KnowledgeBase kb)
           
 WidgetDescriptor createWidgetDescriptor(String name)
           
 Boolean getBoolean(String name)
           
 Dimension getDimension(String name)
           
 Integer getInteger(String name)
           
 KnowledgeBase getKnowledgeBase()
           
 Collection getLiveWidgetDescriptors()
           
 Collection getNames()
           
 PropertyList getPropertyList(String name)
           
 Rectangle getRectangle(String name)
           
 String getString(String name)
           
 WidgetDescriptor getWidgetDescriptor(String name)
           
 Instance getWrappedInstance()
           
 void remove(String name)
           
 void setBoolean(String name, boolean b)
           
 void setBoolean(String name, Boolean b)
           
 void setInteger(String name, int i)
           
 void setInteger(String name, Integer i)
           
 void setRectangle(String name, Rectangle r)
           
 void setString(String name, String value)
           
 void setWidgetDescriptor(WidgetDescriptor d)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_PROPERTY_LIST

public static final String CLASS_PROPERTY_LIST
See Also:
Constant Field Values
Constructor Detail

PropertyList

public PropertyList(Instance instance)
Method Detail

clear

public void clear()

clone

public Object clone()

create

public static PropertyList create(KnowledgeBase kb)

createWidgetDescriptor

public WidgetDescriptor createWidgetDescriptor(String name)

getBoolean

public Boolean getBoolean(String name)

getDimension

public Dimension getDimension(String name)

getInteger

public Integer getInteger(String name)

getKnowledgeBase

public KnowledgeBase getKnowledgeBase()

getNames

public Collection getNames()

getLiveWidgetDescriptors

public Collection getLiveWidgetDescriptors()

getPropertyList

public PropertyList getPropertyList(String name)

getRectangle

public Rectangle getRectangle(String name)

getString

public String getString(String name)

getWidgetDescriptor

public WidgetDescriptor getWidgetDescriptor(String name)

getWrappedInstance

public Instance getWrappedInstance()

remove

public void remove(String name)

setBoolean

public void setBoolean(String name,
                       Boolean b)

setBoolean

public void setBoolean(String name,
                       boolean b)

setInteger

public void setInteger(String name,
                       int i)

setInteger

public void setInteger(String name,
                       Integer i)

setRectangle

public void setRectangle(String name,
                         Rectangle r)

setString

public void setString(String name,
                      String value)

setWidgetDescriptor

public void setWidgetDescriptor(WidgetDescriptor d)

toString

public String toString()

Protege 2.1

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.