EVolve.data
Class DataFilter

java.lang.Object
  |
  +--EVolve.data.DataFilter

public class DataFilter
extends java.lang.Object


Constructor Summary
DataFilter(java.lang.String name, int fieldIndex, ReferenceLink referenceLink, java.lang.String description, java.lang.String[] property)
          Creates a data filter.
 
Method Summary
 int getData(Element element)
          Gets the data from the element.
 java.lang.String getDescription()
          Gets the description of the filter.
 java.lang.String getName()
          Gets the name of the filter.
 java.lang.String[] getProperty()
           
 int getTargetType()
          Gets the type of the refenrence link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFilter

public DataFilter(java.lang.String name,
                  int fieldIndex,
                  ReferenceLink referenceLink,
                  java.lang.String description,
                  java.lang.String[] property)
Creates a data filter.

Parameters:
name - name of the filter
fieldIndex - index of the field that the filter needs to get
referenceLink - reference link, null if the field is a value
Method Detail

getName

public java.lang.String getName()
Gets the name of the filter.

Returns:
name of the filter

getTargetType

public int getTargetType()
Gets the type of the refenrence link.

Returns:
type of the refenrence link, -1 if the field is a value

getData

public int getData(Element element)
Gets the data from the element.

Returns:
id of the entity if the field is a reference, or the value if the field is a value

getDescription

public java.lang.String getDescription()
Gets the description of the filter.

Returns:
description of the filter

getProperty

public java.lang.String[] getProperty()