public class NamedEntryCollection<T extends NamedEntry> extends Object
| Constructor and Description |
|---|
NamedEntryCollection(String name,
NameCreator<T> creator,
JFactReasonerConfiguration options)
c'tor: clear 0-th element
|
| Modifier and Type | Method and Description |
|---|---|
T |
get(String name)
get entry by NAME from the collection; it if necessary
|
List<T> |
getList() |
boolean |
isLocked()
check if collection is locked
|
boolean |
isRegistered(String name)
check if entry with a NAME is registered in given collection
|
T |
registerElem(T p)
new element in a collection; return this element
|
void |
registerNew(T p)
abstract method for additional tuning of newly created element
|
boolean |
remove(T p)
remove given entry from the collection; @return true iff it was NOT the
last entry.
|
boolean |
setLocked(boolean val)
set LOCKED value to a VAL; @return old value of LOCKED
|
int |
size() |
public NamedEntryCollection(String name, NameCreator<T> creator, JFactReasonerConfiguration options)
public void registerNew(T p)
public boolean isLocked()
public boolean setLocked(boolean val)
public boolean isRegistered(String name)
public boolean remove(T p)
public int size()
Copyright © 2013 The University of Manchester. All Rights Reserved.