Class TSNameSet

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.String>
          extended by TSNameSet
All Implemented Interfaces:
java.io.FilenameFilter, java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String>
Direct Known Subclasses:
TSCopySet

 class TSNameSet
extends java.util.HashMap<java.lang.String,java.lang.String>
implements java.io.FilenameFilter

.

======================================================================
 Class TSNameSet -- controls set of names
 This class implements a 'Set' of names. Lower case characters are
  used to ensure uniqueness. The names themselves are NOT changed.
 This class differs from a normal 'Set', that notation of the names
  is NOT considered.
 This class also may be used as a 'FilenameFilter'. So, the results
  of a file-search may be filtered by the names included in this set.
 ##TSNameSet (Eyecatcher)
======================================================================
 


Field Summary
private  boolean Dir
           
protected static java.lang.String IdStr
           
private  java.lang.String suffix
           
 
Constructor Summary
protected TSNameSet()
          .
protected TSNameSet(boolean d, java.lang.String s)
          .
 
Method Summary
 boolean accept(java.io.File prt, java.lang.String name)
          .
protected  boolean add(java.lang.String nS)
          .
protected  boolean contains(java.lang.String nS)
          .
protected  java.util.Iterator<java.lang.String> keyIterator(boolean nos)
          .
protected  void setFilter(boolean d, java.lang.String s)
          .
protected  java.util.Iterator<java.lang.String> XXXiterator()
          .
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

IdStr

protected static final java.lang.String IdStr
See Also:
Constant Field Values

Dir

private boolean Dir

suffix

private java.lang.String suffix
Constructor Detail

TSNameSet

protected TSNameSet()
.
=====================================================================
 Constructor: (1) create Default-Entry
=====================================================================
  


TSNameSet

protected TSNameSet(boolean d,
                    java.lang.String s)
.
=====================================================================
 Constructor: (2) create Standard-Entry
=====================================================================
  

Method Detail

accept

public final boolean accept(java.io.File prt,
                            java.lang.String name)
.
=====================================================================
 Method "accept"
 Check filename and select it as valid or not
 Attention: Method is requested by interface 'FilenameFilter'
 ##accept.TSNameSet (Eyecatcher)
=====================================================================
  

Specified by:
accept in interface java.io.FilenameFilter

add

protected final boolean add(java.lang.String nS)
.
=====================================================================
 Method "add"
 Add an Name-Entry to the namelist
 ##add.TSNameSet (Eyecatcher)
=====================================================================
  


contains

protected final boolean contains(java.lang.String nS)
.
=====================================================================
 Method "contains"
 Checks if a value is present in the namelist using its key
 ##contains.TSNameSet (Eyecatcher)
=====================================================================
  


XXXiterator

protected final java.util.Iterator<java.lang.String> XXXiterator()
.
=====================================================================
 Method "iterator"
 Returns an iterator for all values of the namelist.
 Because 'values()' returns a 'view', 'remove()' is still valid.
 --- Method is NOT referenced until now. (marked by 'XXX...') ---
 ##iterator.TSNameSet (Eyecatcher)
=====================================================================
  


keyIterator

protected final java.util.Iterator<java.lang.String> keyIterator(boolean nos)
.
=====================================================================
 Method "keyIterator"
 Returns an iterator for all keys of the namelist.
 Because 'keySet()' returns a 'view', 'remove()' is still valid.
 Attention: If 'sort' is requested (nos==false), the view-attribute
            is no longer valid.
 ##keyIterator.TSNameSet (Eyecatcher)
=====================================================================
  


setFilter

protected final void setFilter(boolean d,
                               java.lang.String s)
.
=====================================================================
 Method "setFilter"
 Modifies or activates the FilenameFilter-function.
 This method establishes a new directory-flag and a suffix for the
   filename. If 's==null' the suffix-value is invalidated.
 ##setFilter.TSNameSet (Eyecatcher)
=====================================================================