LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info
Class LyFilterCriterion

java.lang.Object
  extended by leon.info.LyTag
      extended by leon.info.LyInfo
          extended by leon.info.LyFilterCriterion
All Implemented Interfaces:
java.lang.Cloneable, LyFilterElement, LyCommentInterface

public final class LyFilterCriterion
extends LyInfo
implements LyFilterElement

This class represents a filter criterion. It contains a filter element defined by a java class.

See Also:
LyFilter, LyFilterElement

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.info.LyTag
LyTag.Model
 
Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyFilterCriterion(java.lang.Class<?> javaClass)
          Constructor for a filter criterion with a Class that implements LyFilterElement.
LyFilterCriterion(LyFilterElement element)
          Constructor for a filter criterion with a given filter element.
LyFilterCriterion(java.lang.String id, java.lang.String javaName)
          Constructor for a filter criterion.
 
Method Summary
 LyFilterCriterion cloneFilterCriterion()
          Clone this filter criterion.
 java.lang.Class<?> getJavaClass()
          Gets java class corresponding to this filter criterion.
 java.lang.String getJavaName()
          Gets name of the java class corresponding to this filter criterion.
 java.lang.String getName()
          Returns a displayable string of this criterion.
 boolean match(LyValueSet values)
          Indicates whether the specified values matches the filter criterion.
 boolean match(java.lang.Object object)
          Indicates whether the specified object matches the filter criterion.
 void setJavaName(java.lang.String javaName)
          Sets java class name corresponding to this filter criterion.
 void writeXml(java.io.PrintWriter pw)
          Writes XML corresponding to this criterion element.
 
Methods inherited from class leon.info.LyInfo
getAlias, getApplication, getFile, getId, getInclude, isIncluded, isInternal, isInternal, isLoaded, isLocked, load, setApplication, setFile, toString
 
Methods inherited from class leon.info.LyTag
clone, getCommentsEnd, getCommentsStart, getEnvironment, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface leon.parser.LyCommentInterface
getCommentsEnd, getCommentsStart, setCommentsEnd, setCommentsStart
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyFilterCriterion

public LyFilterCriterion(java.lang.String id,
                         java.lang.String javaName)
Constructor for a filter criterion.

Parameters:
id - Id of the filter criterion.
javaName - Name of the java class corresponding to this filter criterion.

LyFilterCriterion

public LyFilterCriterion(java.lang.Class<?> javaClass)
Constructor for a filter criterion with a Class that implements LyFilterElement.

Parameters:
javaClass - Class that implements the LyFilterElement interface.

LyFilterCriterion

public LyFilterCriterion(LyFilterElement element)
Constructor for a filter criterion with a given filter element.

Parameters:
element - Filter element.
Method Detail

match

public boolean match(java.lang.Object object)
Indicates whether the specified object matches the filter criterion.

Specified by:
match in interface LyFilterElement
Parameters:
object - Object for which the filter criterion is checked.
Returns:
True if the objects matches criterion, false otherwise.

match

public boolean match(LyValueSet values)
Indicates whether the specified values matches the filter criterion.

Specified by:
match in interface LyFilterElement
Parameters:
values - List of values for which the filter criterion is checked.
Returns:
True if the values matches criterion, false otherwise.

writeXml

public void writeXml(java.io.PrintWriter pw)
Writes XML corresponding to this criterion element.

Specified by:
writeXml in interface LyFilterElement
Parameters:
pw - PrintWriter on which the XML is written.

getName

public java.lang.String getName()
Returns a displayable string of this criterion.

Specified by:
getName in interface LyFilterElement
Overrides:
getName in class LyInfo
Returns:
A displayable string representation of this criterion.

cloneFilterCriterion

public LyFilterCriterion cloneFilterCriterion()
Clone this filter criterion.


getJavaName

public java.lang.String getJavaName()
Gets name of the java class corresponding to this filter criterion.

Returns:
Name of the java class corresponding to this filter criterion.

getJavaClass

public java.lang.Class<?> getJavaClass()
Gets java class corresponding to this filter criterion.

Returns:
The java class corresponding to this filter criterion.

setJavaName

public void setJavaName(java.lang.String javaName)
Sets java class name corresponding to this filter criterion.

Parameters:
javaName - Name of the java class corresponding to this filter criterion.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com