org.media.mn8.concepts
Class SeriesConcept

java.lang.Object
  |
  +--org.media.mn8.Concept
        |
        +--org.media.mn8.JavaConcept
              |
              +--org.media.mn8.concepts.SeriesConcept
All Implemented Interfaces:
Series
Direct Known Subclasses:
AttributeSeries, ConstrainedSeries, TypedSeries

public class SeriesConcept
extends JavaConcept
implements Series

Version:
$Revision: 1.45 $ $Date: 2002/10/14 20:38:35 $
Author:
Remus Pereni

Field Summary
protected  Vector _contents
           
protected  LogicalConcept _hasNext
           
protected  LogicalConcept _hasPrevious
           
protected  IntegerConcept _index
           
protected  IntegerConcept _length
           
protected  Vector _navCache
           
 AttributeConcept hasNext
           
 AttributeConcept hasPrevious
           
 AttributeConcept index
           
 AttributeConcept length
           
 
Fields inherited from class org.media.mn8.Concept
_conceptLabel, _isHidden, _resourceURI, _showEmpty
 
Constructor Summary
SeriesConcept()
           
SeriesConcept(CharacterConcept from, CharacterConcept to, IntegerConcept step)
           
SeriesConcept(IntegerConcept from, IntegerConcept to, IntegerConcept step)
           
SeriesConcept(IntegerConcept from, IntegerConcept to, RealConcept step)
           
SeriesConcept(RealConcept from, RealConcept to, IntegerConcept step)
           
SeriesConcept(RealConcept from, RealConcept to, RealConcept step)
           
SeriesConcept(String value)
           
SeriesConcept(Vector values)
           
 
Method Summary
 void add(Concept newValue)
           
 void addSeries(SeriesConcept series)
           
 boolean areThereMoreElemenents(String path)
           
 Object clone()
           
 LogicalConcept contains(Concept key)
           
 Concept current()
           
 Concept elementAt(int position)
           
 Concept elementAt(IntegerConcept position)
           
 boolean equals(Object obj)
           
 LogicalConcept equals(SeriesConcept target)
           
protected  StringConcept extractNavName(Concept concept)
           
 ConceptDefinition getConceptDefinition()
           
 Concept getConceptElement(StringConcept name)
           
 FieldDefinition getConceptElementField(String elementName)
           
 FieldDefinition getConceptElementField(StringConcept elemenName)
           
 SeriesConcept getConceptElementFields()
           
 SeriesConcept getConceptElements()
           
 long getIndex()
           
 int getLength()
           
 Vector getMeAllElements(String path)
           
 Vector getValue()
           
 Vector getVector()
           
 boolean hasConceptElement(String name)
           
 LogicalConcept hasConceptElement(StringConcept name)
           
 boolean hasNext()
           
 LogicalConcept hasPath(String fullpath)
          Returns true if the concept has the specified path or not.
 boolean hasPrevious()
           
 IntegerConcept indexOf(Concept key)
           
 void insert(Concept newValue)
           
 void insert(IntegerConcept position, Concept newValue)
           
 void loadContent(Concept from)
           
 Concept next()
           
 Concept previous()
           
 Concept remove()
           
 Concept remove(IntegerConcept ind)
           
 SeriesConcept searchDeeperForPath(SeriesConcept holder, String path)
           
 SeriesConcept selectSIMEXP(String expr)
           
 void setIndex(IntegerConcept where)
           
 void setIndex(long idx)
           
 void setValue(IntegerConcept ind, Concept value)
           
 void setValue(Vector contents)
           
 void setVector(Vector contents)
           
 void sort(Concept sorter)
           
 LogicalConcept subElementHasPath(String elementName, String subPath)
          Returns if an element of this concept has the subpath specified as parameter
 StringConcept toTXT()
           
 StringConcept toXML()
           
protected  void updateNameCache()
           
protected  void updateNavigationFans()
           
 
Methods inherited from class org.media.mn8.JavaConcept
create, equals, opEQ
 
Methods inherited from class org.media.mn8.Concept
cloneConcept, extendsConcept, getAllInheritedConcepts, getAttributeValue, getConceptAttribute, getConceptAttribute, getConceptAttributeField, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptInstance, getConceptLabel, getConceptMethod, getConceptMethods, getConceptNamed, getConceptOperators, getConceptsAtPath, getConceptsAtPath, getConceptType, getErrorHandler, getInheritedConcepts, getResourceURI, hasConceptAttribute, hasConceptAttribute, hasConceptMethod, hasPath, isHidden, printFields, printFields, searchSubElements, setConceptLabel, setErrorHandler, setHidden, setResourceURI, setShowEmpty, showEmpty, subAttributeGetConcept, subAttributeHasPath, subElementGetConcepts
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_contents

protected Vector _contents

_navCache

protected Vector _navCache

_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

SeriesConcept

public SeriesConcept()

SeriesConcept

public SeriesConcept(Vector values)

SeriesConcept

public SeriesConcept(String value)

SeriesConcept

public SeriesConcept(CharacterConcept from,
                     CharacterConcept to,
                     IntegerConcept step)

SeriesConcept

public SeriesConcept(IntegerConcept from,
                     IntegerConcept to,
                     IntegerConcept step)

SeriesConcept

public SeriesConcept(IntegerConcept from,
                     IntegerConcept to,
                     RealConcept step)

SeriesConcept

public SeriesConcept(RealConcept from,
                     RealConcept to,
                     RealConcept step)

SeriesConcept

public SeriesConcept(RealConcept from,
                     RealConcept to,
                     IntegerConcept step)
Method Detail

setIndex

public void setIndex(IntegerConcept where)

add

public void add(Concept newValue)
Specified by:
add in interface Series

addSeries

public void addSeries(SeriesConcept series)

contains

public LogicalConcept contains(Concept key)

indexOf

public IntegerConcept indexOf(Concept key)

setValue

public void setValue(IntegerConcept ind,
                     Concept value)

remove

public Concept remove()
Specified by:
remove in interface Series

remove

public Concept remove(IntegerConcept ind)

next

public Concept next()
Specified by:
next in interface Series

current

public Concept current()
Specified by:
current in interface Series

previous

public Concept previous()
Specified by:
previous in interface Series

insert

public void insert(Concept newValue)
Specified by:
insert in interface Series

insert

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

sort

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

toTXT

public StringConcept toTXT()
Overrides:
toTXT in class JavaConcept

toXML

public StringConcept toXML()
Overrides:
toXML in class JavaConcept

getVector

public Vector getVector()

setVector

public void setVector(Vector contents)

getValue

public Vector getValue()

setValue

public void setValue(Vector contents)

getConceptDefinition

public ConceptDefinition getConceptDefinition()
Overrides:
getConceptDefinition in class JavaConcept

hasNext

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

hasPrevious

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

elementAt

public Concept elementAt(IntegerConcept position)

elementAt

public Concept elementAt(int position)
Specified by:
elementAt in interface Series

getLength

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

getIndex

public long getIndex()
Specified by:
getIndex in interface Series

setIndex

public void setIndex(long idx)
Specified by:
setIndex in interface Series

updateNameCache

protected void updateNameCache()

equals

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

equals

public LogicalConcept equals(SeriesConcept target)

updateNavigationFans

protected void updateNavigationFans()

getConceptElement

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

hasConceptElement

public LogicalConcept hasConceptElement(StringConcept name)
Overrides:
hasConceptElement in class Concept

hasPath

public LogicalConcept hasPath(String fullpath)
Description copied from class: Concept
Returns true if the concept has the specified path or not. By overriding getConceptElements or even this method elements and attributes can dynamically be added to concepts, in fact this is the reason why it is also duplicate here.

The path can be given using standard mn8 navigational patterns (/)? (elementName)? (/elementName)* (@ attributeName)?.

Overrides:
hasPath in class Concept
Parameters:
fullpath - the path to be looked for.
Returns:
true if it exists false otherway.

hasConceptElement

public boolean hasConceptElement(String name)
Overrides:
hasConceptElement in class Concept

getConceptElementFields

public SeriesConcept getConceptElementFields()
Overrides:
getConceptElementFields in class Concept

getConceptElementField

public FieldDefinition getConceptElementField(StringConcept elemenName)

getConceptElementField

public FieldDefinition getConceptElementField(String elementName)
Overrides:
getConceptElementField in class Concept

getConceptElements

public SeriesConcept getConceptElements()
Overrides:
getConceptElements in class Concept

clone

public Object clone()
Overrides:
clone in class JavaConcept

extractNavName

protected StringConcept extractNavName(Concept concept)

loadContent

public void loadContent(Concept from)
Overrides:
loadContent in class Concept

selectSIMEXP

public SeriesConcept selectSIMEXP(String expr)

searchDeeperForPath

public SeriesConcept searchDeeperForPath(SeriesConcept holder,
                                         String path)
Overrides:
searchDeeperForPath in class Concept

subElementHasPath

public LogicalConcept subElementHasPath(String elementName,
                                        String subPath)
Description copied from class: Concept
Returns if an element of this concept has the subpath specified as parameter

Overrides:
subElementHasPath in class Concept
Parameters:
elementName - the name of the element
subPath - the subpath to be looked for
Returns:
true if it has it false otherway

areThereMoreElemenents

public boolean areThereMoreElemenents(String path)
Overrides:
areThereMoreElemenents in class Concept

getMeAllElements

public Vector getMeAllElements(String path)
Overrides:
getMeAllElements in class Concept


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