|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--edu.vt.marian.search.UncontrolledStringClassManager
Class Manager for "opaque" (unsearchable, incomparable) strings. This is the manager used for classes of raw document objects and the like: classes where the underlying representation is as strings, but none of the String functionality really makes sense. Instance identity is decided externally to the class, so when an object is added it is added with an instance ID attached. The class manager enforces uniqueness of instance IDs, but not of strings. Similarly, the manager can retrieve on instance IDs, but not on strings.
ClassManager,
NodeClassManager,
ControlledStringClassManager| Constructor Summary | |
UncontrolledStringClassManager()
|
|
| Method Summary | |
int |
add(edu.vt.marian.common.FullID id,
java.lang.String str)
Add a new String and a new FullID for it to this class (See note). |
long |
classSize()
Return the number of class instances currently in the factory. |
int |
delete(edu.vt.marian.common.FullID id)
Forget about the object referred to by id. |
java.util.Vector |
idsToObjects(java.util.Vector ids)
Do idToObject() for a bunch of FullIDs. |
java.lang.Object |
idToObject(edu.vt.marian.common.FullID id)
Return the Java Object that implements the instance of this class picked out by id. |
java.lang.String |
idToString(edu.vt.marian.common.FullID id)
Map this ID to the String form of class instance. |
boolean |
isInClass(edu.vt.marian.common.FullID id)
Is this the ID of an instance currently in this class? |
WtdObjSet |
match(edu.vt.marian.common.InfoDesc description)
Create (or find in the local cache) a set of matches to description. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public UncontrolledStringClassManager()
| Method Detail |
public WtdObjSet match(edu.vt.marian.common.InfoDesc description)
description - An abstract description of a set of nodes
in this class, including their "context":
significant links with other parts of the
collection network.public boolean isInClass(edu.vt.marian.common.FullID id)
public java.lang.String idToString(edu.vt.marian.common.FullID id)
id - The FullID of an instance of this class.public java.lang.Object idToObject(edu.vt.marian.common.FullID id)
id - The FullID for an object of this class.public java.util.Vector idsToObjects(java.util.Vector ids)
ids - A Vector of FullIDs for objects of this class.
public int add(edu.vt.marian.common.FullID id,
java.lang.String str)
id - An unused FullID of this class.str - A (presumably) previously unseen String of this class.NOTE: Uncontrolled strings are not comparable, so this cannot check whether str has already been added. It is up to the caller to ensure that strings are not added multiple times with different ids.
public int delete(edu.vt.marian.common.FullID id)
public long classSize()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||