org.media.mn8.concepts
Class MapConcept

java.lang.Object
  |
  +--org.media.mn8.Concept
        |
        +--org.media.mn8.JavaConcept
              |
              +--org.media.mn8.concepts.MapConcept
All Implemented Interfaces:
Map
Direct Known Subclasses:
HTMLFormConcept

public class MapConcept
extends JavaConcept
implements Map

Version:
$Revision: 1.15 $ $Date: 2002/09/18 17:24:51 $
Author:
Remus Pereni

Field Summary
protected  LogicalConcept _hasNext
           
protected  LogicalConcept _hasPrevious
           
protected  IntegerConcept _index
           
protected  Vector _keys
           
protected  IntegerConcept _length
           
protected  Vector _nameCache
           
protected  Vector _values
           
 AttributeConcept hasNext
           
 AttributeConcept hasPrevious
           
 AttributeConcept index
           
 AttributeConcept length
           
 
Fields inherited from class org.media.mn8.Concept
_conceptLabel, _isHidden, _resourceURI, _showEmpty
 
Constructor Summary
MapConcept()
           
MapConcept(Vector keys, Vector values)
           
 
Method Summary
 void add(Concept key, Concept newValue)
           
 void clear()
           
 Object clone()
           
 LogicalConcept containsKey(Concept key)
           
 LogicalConcept containsValue(Concept value)
           
 Concept currentKey()
           
 LogicalConcept equals(MapConcept target)
           
 boolean equals(Object obj)
           
 ConceptDefinition getConceptDefinition()
           
 Concept getConceptElement(StringConcept name)
           
 FieldDefinition getConceptElementField(StringConcept name)
           
 SeriesConcept getConceptElementFields()
           
 SeriesConcept getConceptElements()
           
 int getIndex()
           
 Concept getKeyAt(IntegerConcept position)
           
 SeriesConcept getKeys()
           
 Vector getKeyVector()
           
 int getLength()
           
 Concept getValue(Concept key)
           
 Concept getValueAt(IntegerConcept position)
           
 SeriesConcept getValues()
           
 Vector getValuesVector()
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 IntegerConcept indexOfKey(Concept key)
           
 IntegerConcept indexOfValue(Concept value)
           
 void insert(Concept newKey, Concept newValue)
           
 void insert(IntegerConcept position, Concept newKey, Concept newValue)
           
 Concept nextKey()
           
 Concept nextValue()
           
 Concept previousKey()
           
 void remove(Concept key)
           
 void setIndex(int idx)
           
 void setIndex(IntegerConcept idx)
           
 void setVectors(Vector keys, Vector contents)
           
 void sort(Concept sorter)
           
protected  void updateNameCache()
           
protected  void updateNavigationFans()
           
 
Methods inherited from class org.media.mn8.JavaConcept
create, equals, opEQ, toTXT, toXML
 
Methods inherited from class org.media.mn8.Concept
areThereMoreElemenents, cloneConcept, extendsConcept, getAllInheritedConcepts, getAttributeValue, getConceptAttribute, getConceptAttribute, getConceptAttributeField, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptInstance, getConceptLabel, getConceptMethod, getConceptMethods, getConceptNamed, getConceptOperators, getConceptsAtPath, getConceptsAtPath, getConceptType, getErrorHandler, getInheritedConcepts, getMeAllElements, getResourceURI, hasConceptAttribute, hasConceptAttribute, hasConceptElement, hasConceptElement, hasConceptMethod, hasPath, hasPath, isHidden, loadContent, printFields, printFields, searchDeeperForPath, searchSubElements, setConceptLabel, setErrorHandler, setHidden, setResourceURI, setShowEmpty, showEmpty, subAttributeGetConcept, subAttributeHasPath, subElementGetConcepts, subElementHasPath
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_keys

protected Vector _keys

_values

protected Vector _values

_nameCache

protected Vector _nameCache

_index

protected IntegerConcept _index

_length

protected IntegerConcept _length

_hasNext

protected LogicalConcept _hasNext

_hasPrevious

protected LogicalConcept _hasPrevious

length

public AttributeConcept length

index

public AttributeConcept index

hasNext

public AttributeConcept hasNext

hasPrevious

public AttributeConcept hasPrevious
Constructor Detail

MapConcept

public MapConcept()

MapConcept

public MapConcept(Vector keys,
                  Vector values)
Method Detail

add

public void add(Concept key,
                Concept newValue)
Specified by:
add in interface Map

remove

public void remove(Concept key)
Specified by:
remove in interface Map

nextValue

public Concept nextValue()
Specified by:
nextValue in interface Map

nextKey

public Concept nextKey()
Specified by:
nextKey in interface Map

clear

public void clear()
Specified by:
clear in interface Map

getValue

public Concept getValue(Concept key)
Specified by:
getValue in interface Map

currentKey

public Concept currentKey()

previousKey

public Concept previousKey()

insert

public void insert(Concept newKey,
                   Concept newValue)
Specified by:
insert in interface Map

insert

public void insert(IntegerConcept position,
                   Concept newKey,
                   Concept newValue)
Specified by:
insert in interface Map

containsKey

public LogicalConcept containsKey(Concept key)
Specified by:
containsKey in interface Map

containsValue

public LogicalConcept containsValue(Concept value)
Specified by:
containsValue in interface Map

indexOfKey

public IntegerConcept indexOfKey(Concept key)
Specified by:
indexOfKey in interface Map

indexOfValue

public IntegerConcept indexOfValue(Concept value)
Specified by:
indexOfValue in interface Map

sort

public void sort(Concept sorter)
Specified by:
sort in interface Map

getKeys

public SeriesConcept getKeys()
Specified by:
getKeys in interface Map

getValues

public SeriesConcept getValues()
Specified by:
getValues in interface Map

getKeyVector

public Vector getKeyVector()

getValuesVector

public Vector getValuesVector()

setVectors

public void setVectors(Vector keys,
                       Vector contents)

getConceptDefinition

public ConceptDefinition getConceptDefinition()
Overrides:
getConceptDefinition in class JavaConcept

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Map

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface Map

getKeyAt

public Concept getKeyAt(IntegerConcept position)
Specified by:
getKeyAt in interface Map

getValueAt

public Concept getValueAt(IntegerConcept position)
Specified by:
getValueAt in interface Map

getLength

public int getLength()
Specified by:
getLength in interface Map

getIndex

public int getIndex()
Specified by:
getIndex in interface Map

setIndex

public void setIndex(int idx)
Specified by:
setIndex in interface Map

setIndex

public void setIndex(IntegerConcept idx)

updateNameCache

protected void updateNameCache()

equals

public boolean equals(Object obj)
Overrides:
equals in class JavaConcept

equals

public LogicalConcept equals(MapConcept target)

updateNavigationFans

protected void updateNavigationFans()

getConceptElement

public Concept getConceptElement(StringConcept name)
Overrides:
getConceptElement in class Concept

getConceptElementField

public FieldDefinition getConceptElementField(StringConcept name)

getConceptElementFields

public SeriesConcept getConceptElementFields()
Overrides:
getConceptElementFields in class Concept

getConceptElements

public SeriesConcept getConceptElements()
Overrides:
getConceptElements in class Concept

clone

public Object clone()
Overrides:
clone in class JavaConcept


"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."