Packageorg.servebox.toolbox.search
Classpublic class WordIndex
InheritanceWordIndex Inheritance DictionaryTable

WordIndex is a Dictionary used to link objects to single words, for search purpose.



Protected Properties
 PropertyDefined by
 Inherited_internalDict : Object
Storage object.
DictionaryTable
 Inherited_keys : Array
Keys cache.
DictionaryTable
Public Methods
 MethodDefined by
  
Constructor.
WordIndex
  
addObject(key:String, obj:IBasicObject):void
Adds an object to the object list for the word indexed by key.
WordIndex
 Inherited
clear():void
Removes all mappings from this map (optional operation).
DictionaryTable
 Inherited
Creates a shallow copy of this hashtable.
DictionaryTable
 Inherited
contains(value:IBasicObject):Boolean
DictionaryTable
 Inherited
containsKey(key:Object):Boolean
Returns true if this map contains a mapping for the specified key.
DictionaryTable
 Inherited
containsValue(value:IBasicObject):Boolean
Returns true if this map maps one or more keys to the specified value.
DictionaryTable
 Inherited
elements():Array
DictionaryTable
 Inherited
equals(value:IBasicObject):Boolean
Compares the specified Object with this Map for equality, as per the definition in the Map interface.
DictionaryTable
 Inherited
get(key:Object):IBasicObject
DictionaryTable
 Inherited
getKey(value:Object):String
Return the key for the value
DictionaryTable
 Inherited
hashCode():int
Returns the hashcode of the object.
DictionaryTable
 Inherited
isEmpty():Boolean
Tests if this dictionary maps no keys to value.
DictionaryTable
 Inherited
keys():Array
Returns an Array of the keys in this dictionary.
DictionaryTable
 Inherited
keySet():Array
Returns a view of the keys contained in this map.
DictionaryTable
 Inherited
needleMap(neededKeys:Array):IMap
Copies the key/values pair using the specified set of keys to a new map instance.
DictionaryTable
 Inherited
put(key:Object, value:IBasicObject):Object
Maps the specified key to the specified value in this dictionary.
The DictionaryTable uses String instances as keys.
DictionaryTable
 Inherited
putAll(t:IMap):void
Copies all of the mappings from the specified Map to this Hashtable These mappings will replace any mappings that this Hashtable had for any of the keys currently in the specified Map.
DictionaryTable
 Inherited
remove(key:Object):Object
Removes the key (and its corresponding value) from this dictionary.
DictionaryTable
 Inherited
size():int
Returns the number of entries (distinct keys) in this dictionary.
DictionaryTable
 Inherited
toString():String
Returns the string representation of the specified object.
DictionaryTable
 Inherited
values():Array
Returns a collection view of the values contained in this map.
DictionaryTable
Constructor detail
WordIndex()constructor
public function WordIndex()

Constructor.

Method detail
addObject()method
public function addObject(key:String, obj:IBasicObject):void

Adds an object to the object list for the word indexed by key. The object should implement the BasicObject interface.

Parameters
key:String — The word key.
 
obj:IBasicObject — The object to add.