The EnginePropertiesList class is a container for EngineProperties objects. It provides convenience methods to remove EngineProperties objects on the basis of defined properties.
See Also: EngineProperties
public EnginePropertiesList()
Creates an empty EnginePropertiesList object.
public int size()
Returns the number of EngineProperties objects in the list.
public boolean isEmpty()
Returns true if the list is empty.
public void addElement(EngineProperties Desc)
Adds an EngineProperties to the list.
public void removeElementAt(int index)
Removes a EngineProperties from the list.
Exceptions:
public EngineProperties elementAt(int index)
Returns a EngineProperties from the list.
Exceptions:
public EngineProperties firstElement()
Returns the first EngineProperties in the list. Note that the EngineProperties objects are ordered in order.
Exceptions:
public String toString()
Converts the list to a string. Useful for debugging.
Overrides: toString in class Object
public synchronized Object clone()
Clones this EnginePropertiesList. The descriptions are not cloned.
Overrides: clone in class Object
public synchronized void ensure(String Key, String Value)
Ensure that all EngineProperties descriptions in the list match the property defined by Key and Value. Any descriptions which do not match are removed from the list.
public synchronized void ensure(Properties Props)
Ensure that all EngineProperties descriptions in the list match all properties defined in Props. Any descriptions which do not match are removed from the list.
public synchronized void ensureOneOf(Properties Props)
Ensure that all EngineProperties descriptions in the list match at least one property defined in Props. Any descriptions which do not match are removed from the list.
public synchronized void reject(String Key, String Value)
Reject (remove) any EngineProperties descriptions in the list which match the property defined by Key and Value.
public synchronized void reject(Properties Props)
Reject (remove) any EngineProperties descriptions in the list which match all the properties defined in Props.
public synchronized void rejectOneOf(Properties Props)
Reject (remove) any EngineProperties descriptions in the list which match at least one of the properties defined in Props.