ilog.views.maps.datasource
Class IlvTigerDataSource.CFCCFilter

java.lang.Object
  extended by ilog.views.maps.datasource.IlvHierarchicalDataSource.CriterionFilter
      extended by ilog.views.maps.datasource.IlvHierarchicalDataSource.SingleAttributeFilter
          extended by ilog.views.maps.datasource.IlvTigerDataSource.CFCCFilter
All Implemented Interfaces:
IlvPersistentObject
Enclosing class:
IlvTigerDataSource

public static class IlvTigerDataSource.CFCCFilter
extends IlvHierarchicalDataSource.SingleAttributeFilter

A specialized criterion filter that returns the value of the CFCC attribute of a map feature.

Since:
JViews 7.5

Constructor Summary
IlvTigerDataSource.CFCCFilter(IlvInputStream stream)
          Constructs a CFCCFilter from an input stream.
IlvTigerDataSource.CFCCFilter(IlvTigerDataSource source, boolean parseMajorOnly)
          Public constructor
 
Method Summary
 Object getValue(IlvMapFeature feature)
          Returns a value for the specified map feature.
 void setSource(IlvTigerDataSource source)
          Sets the IlvTigerDataSource to which this filter is added.
 void write(IlvOutputStream stream)
          Writes this CFCCFilter to an IlvOutputStream.
 
Methods inherited from class ilog.views.maps.datasource.IlvHierarchicalDataSource.SingleAttributeFilter
getAttributeDescription, getAttributeName, getCriterionDescription, setAttributeDescription, setAttributeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvTigerDataSource.CFCCFilter

public IlvTigerDataSource.CFCCFilter(IlvInputStream stream)
                              throws IlvReadFileException
Constructs a CFCCFilter from an input stream.

Parameters:
stream - the stream to read from.
Throws:
IlvReadFileException - exception thrown if an error was encountered when deserializing this object.

IlvTigerDataSource.CFCCFilter

public IlvTigerDataSource.CFCCFilter(IlvTigerDataSource source,
                                     boolean parseMajorOnly)
Public constructor

Parameters:
source - The IlvTigerDataSource to which this filter is added.
parseMajorOnly - Boolean to indicate that only a substring (representing the category) of the value must be returned.
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this CFCCFilter to an IlvOutputStream.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvHierarchicalDataSource.SingleAttributeFilter
Parameters:
stream - The stream to write to.
Throws:
IOException

getValue

public Object getValue(IlvMapFeature feature)
Returns a value for the specified map feature. It returns the value of the CFCC attribute, if any, null otherwise.

Overrides:
getValue in class IlvHierarchicalDataSource.SingleAttributeFilter
Parameters:
feature - The specified map feature.
Returns:
The value for the specified map feature.

setSource

public void setSource(IlvTigerDataSource source)
Sets the IlvTigerDataSource to which this filter is added.

Parameters:
source - the IlvTigerDataSource.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.