ilog.views.maps.format
Class IlvDefaultFeatureFilter

java.lang.Object
  extended by ilog.views.maps.datasource.IlvHierarchicalDataSource.CriterionFilter
      extended by ilog.views.maps.datasource.IlvHierarchicalDataSource.SingleAttributeFilter
          extended by ilog.views.maps.format.IlvDefaultFeatureFilter
All Implemented Interfaces:
IlvPersistentObject
Direct Known Subclasses:
IlvDXFDataSource.DXFGraphicCriterionFilter

public class IlvDefaultFeatureFilter
extends IlvHierarchicalDataSource.SingleAttributeFilter

A specialized criterion filter that returns the value of a feature attribute according to the property name.

Since:
JViews 8.0

Constructor Summary
IlvDefaultFeatureFilter(IlvInputStream stream)
          Constructs a IlvDefaultFeatureFilter from an input stream.
IlvDefaultFeatureFilter(String propertyName, IlvDefaultTilableDataSource source)
          Public constructor
 
Method Summary
 IlvDefaultTilableDataSource getSource()
          Returns the IlvDefaultTilableDataSource object to which this filter has been added.
 Object getValue(IlvMapFeature feature)
          Returns a value for the specified map feature.
 void setSource(IlvDefaultTilableDataSource source)
          Sets the IlvDefaultTilableDataSource to which this filter is added.
 void write(IlvOutputStream stream)
          Writes this IlvDefaultFeatureFilter 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

IlvDefaultFeatureFilter

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

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

IlvDefaultFeatureFilter

public IlvDefaultFeatureFilter(String propertyName,
                               IlvDefaultTilableDataSource source)
Public constructor

Parameters:
propertyName - name of the object property used to filter features.
source - The IlvS57DataSource to which this filter is added. of the value must be returned.
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this IlvDefaultFeatureFilter 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(IlvDefaultTilableDataSource source)
Sets the IlvDefaultTilableDataSource to which this filter is added.

Parameters:
source - the IlvDefaultTilableDataSource.

getSource

public IlvDefaultTilableDataSource getSource()
Returns the IlvDefaultTilableDataSource object to which this filter has been added.

Returns:
The IlvDefaultTilableDataSource object this filter has been added.
Since:
JViews 8.1


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