Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.media.mn8.concepts
Class SeriesConcept  view SeriesConcept download SeriesConcept.java

java.lang.Object
  extended byorg.media.mn8.Concept
      extended byorg.media.mn8.JavaConcept
          extended byorg.media.mn8.concepts.SeriesConcept
All Implemented Interfaces:
Series
Direct Known Subclasses:
AttributeSeries, ConstrainedSeries, TypedSeries

public class SeriesConcept
extends org.media.mn8.JavaConcept
implements Series

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

Field Summary
protected  java.util.Vector _contents
           
protected  LogicalConcept _hasNext
           
protected  LogicalConcept _hasPrevious
           
protected  IntegerConcept _index
           
protected  IntegerConcept _length
           
protected  java.util.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(java.lang.String value)
           
SeriesConcept(java.util.Vector values)
           
 
Method Summary
 void add(org.media.mn8.Concept newValue)
           
 void addSeries(SeriesConcept series)
           
 boolean areThereMoreElemenents(java.lang.String path)
           
 java.lang.Object clone()
          This method may be called to create a new copy of the Object.
 LogicalConcept contains(org.media.mn8.Concept key)
           
 org.media.mn8.Concept current()
           
 org.media.mn8.Concept elementAt(int position)
           
 org.media.mn8.Concept elementAt(IntegerConcept position)
           
 boolean equals(java.lang.Object obj)
          Determine whether this Object is semantically equal to another Object.
 LogicalConcept equals(SeriesConcept target)
           
protected  StringConcept extractNavName(org.media.mn8.Concept concept)
           
 org.media.mn8.ConceptDefinition getConceptDefinition()
           
 org.media.mn8.Concept getConceptElement(StringConcept name)
           
 org.media.mn8.FieldDefinition getConceptElementField(java.lang.String elementName)
           
 org.media.mn8.FieldDefinition getConceptElementField(StringConcept elemenName)
           
 SeriesConcept getConceptElementFields()
           
 SeriesConcept getConceptElements()
           
 long getIndex()
           
 int getLength()
           
 java.util.Vector getMeAllElements(java.lang.String path)
           
 java.util.Vector getValue()
           
 java.util.Vector getVector()
           
 boolean hasConceptElement(java.lang.String name)
           
 LogicalConcept hasConceptElement(StringConcept name)
           
 boolean hasNext()
           
 LogicalConcept hasPath(java.lang.String fullpath)
          Returns true if the concept has the specified path or not.
 boolean hasPrevious()
           
 IntegerConcept indexOf(org.media.mn8.Concept key)
           
 void insert(org.media.mn8.Concept newValue)
           
 void insert(IntegerConcept position, org.media.mn8.Concept newValue)
           
 void loadContent(org.media.mn8.Concept from)
           
 org.media.mn8.Concept next()
           
 org.media.mn8.Concept previous()
           
 org.media.mn8.Concept remove()
           
 org.media.mn8.Concept remove(IntegerConcept ind)
           
 SeriesConcept searchDeeperForPath(SeriesConcept holder, java.lang.String path)
           
 SeriesConcept selectSIMEXP(java.lang.String expr)
           
 void setIndex(IntegerConcept where)
           
 void setIndex(long idx)
           
 void setValue(IntegerConcept ind, org.media.mn8.Concept value)
           
 void setValue(java.util.Vector contents)
           
 void setVector(java.util.Vector contents)
           
 void sort(org.media.mn8.Concept sorter)
           
 LogicalConcept subElementHasPath(java.lang.String elementName, java.lang.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 java.util.Vector _contents

_navCache

protected java.util.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(java.util.Vector values)

SeriesConcept

public SeriesConcept(java.lang.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(org.media.mn8.Concept newValue)
Specified by:
add in interface Series

addSeries

public void addSeries(SeriesConcept series)

contains

public LogicalConcept contains(org.media.mn8.Concept key)

indexOf

public IntegerConcept indexOf(org.media.mn8.Concept key)

setValue

public void setValue(IntegerConcept ind,
                     org.media.mn8.Concept value)

remove

public org.media.mn8.Concept remove()
Specified by:
remove in interface Series

remove

public org.media.mn8.Concept remove(IntegerConcept ind)

next

public org.media.mn8.Concept next()
Specified by:
next in interface Series

current

public org.media.mn8.Concept current()
Specified by:
current in interface Series

previous

public org.media.mn8.Concept previous()
Specified by:
previous in interface Series

insert

public void insert(org.media.mn8.Concept newValue)
Specified by:
insert in interface Series

insert

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

sort

public void sort(org.media.mn8.Concept sorter)
Specified by:
sort in interface Series

toTXT

public StringConcept toTXT()

toXML

public StringConcept toXML()

getVector

public java.util.Vector getVector()

setVector

public void setVector(java.util.Vector contents)

getValue

public java.util.Vector getValue()

setValue

public void setValue(java.util.Vector contents)

getConceptDefinition

public org.media.mn8.ConceptDefinition getConceptDefinition()

hasNext

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

hasPrevious

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

elementAt

public org.media.mn8.Concept elementAt(IntegerConcept position)

elementAt

public org.media.mn8.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(java.lang.Object obj)
Description copied from class: java.lang.Object
Determine whether this Object is semantically equal to another Object.

There are some fairly strict requirements on this method which subclasses must follow:

  • It must be transitive. If a.equals(b) and b.equals(c), then a.equals(c) must be true as well.
  • It must be symmetric. a.equals(b) and b.equals(a) must have the same value.
  • It must be reflexive. a.equals(a) must always be true.
  • It must be consistent. Whichever value a.equals(b) returns on the first invocation must be the value returned on all later invocations.
  • a.equals(null) must be false.
  • It must be consistent with hashCode(). That is, a.equals(b) must imply a.hashCode() == b.hashCode(). The reverse is not true; two objects that are not equal may have the same hashcode, but that has the potential to harm hashing performance.

This is typically overridden to throw a java.lang.ClassCastException if the argument is not comparable to the class performing the comparison, but that is not a requirement. It is legal for a.equals(b) to be true even though a.getClass() != b.getClass(). Also, it is typical to never cause a java.lang.NullPointerException.

In general, the Collections API (java.util) use the equals method rather than the == operator to compare objects. However, java.util.IdentityHashMap is an exception to this rule, for its own good reasons.

The default implementation returns this == o.


equals

public LogicalConcept equals(SeriesConcept target)

updateNavigationFans

protected void updateNavigationFans()

getConceptElement

public org.media.mn8.Concept getConceptElement(StringConcept name)

hasConceptElement

public LogicalConcept hasConceptElement(StringConcept name)

hasPath

public LogicalConcept hasPath(java.lang.String fullpath)
Description copied from class: org.media.mn8.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)?.


hasConceptElement

public boolean hasConceptElement(java.lang.String name)

getConceptElementFields

public SeriesConcept getConceptElementFields()

getConceptElementField

public org.media.mn8.FieldDefinition getConceptElementField(StringConcept elemenName)

getConceptElementField

public org.media.mn8.FieldDefinition getConceptElementField(java.lang.String elementName)

getConceptElements

public SeriesConcept getConceptElements()

clone

public java.lang.Object clone()
Description copied from class: java.lang.Object
This method may be called to create a new copy of the Object. The typical behavior is as follows:
  • o == o.clone() is false
  • o.getClass() == o.clone().getClass() is true
  • o.equals(o) is true

However, these are not strict requirements, and may be violated if necessary. Of the three requirements, the last is the most commonly violated, particularly if the subclass does not override Object.equals(Object)>Object.equals(Object) 55 .

If the Object you call clone() on does not implement java.lang.Cloneable (which is a placeholder interface), then a CloneNotSupportedException is thrown. Notice that Object does not implement Cloneable; this method exists as a convenience for subclasses that do.

Object's implementation of clone allocates space for the new Object using the correct class, without calling any constructors, and then fills in all of the new field values with the old field values. Thus, it is a shallow copy. However, subclasses are permitted to make a deep copy.

All array types implement Cloneable, and override this method as follows (it should never fail):

 public Object clone()
 {
   try
     {
       super.clone();
     }
   catch (CloneNotSupportedException e)
     {
       throw new InternalError(e.getMessage());
     }
 }
 


extractNavName

protected StringConcept extractNavName(org.media.mn8.Concept concept)

loadContent

public void loadContent(org.media.mn8.Concept from)

selectSIMEXP

public SeriesConcept selectSIMEXP(java.lang.String expr)

searchDeeperForPath

public SeriesConcept searchDeeperForPath(SeriesConcept holder,
                                         java.lang.String path)

subElementHasPath

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


areThereMoreElemenents

public boolean areThereMoreElemenents(java.lang.String path)

getMeAllElements

public java.util.Vector getMeAllElements(java.lang.String path)