org.jasig.portal.layout.dlm.providers
Class AttributeEvaluator

java.lang.Object
  extended by org.jasig.portal.layout.dlm.Evaluator
      extended by org.jasig.portal.layout.dlm.providers.AttributeEvaluator

public class AttributeEvaluator
extends Evaluator

Since:
uPortal 2.5
Version:
$Revision: 19776 $ $Date: 2010-01-14 16:17:21 -0600 (Thu, 14 Jan 2010) $

Field Summary
static int CONTAINS
           
static int ENDS_WITH
           
static int EQUALS
           
static int EXISTS
           
protected  int mode
           
protected  String name
           
static String RCS_ID
           
static int STARTS_WITH
           
protected  String value
           
 
Fields inherited from class org.jasig.portal.layout.dlm.Evaluator
NAMESPACE_URI
 
Constructor Summary
AttributeEvaluator()
          Zero-arg constructor required by JPA.
AttributeEvaluator(String name, String mode, String value)
           
 
Method Summary
 Class<? extends EvaluatorFactory> getFactoryClass()
           
 boolean isApplicable(IPerson p)
           
 void toElement(org.dom4j.Element parent)
          Serializes this Evaluator into the same XML format supported by dlm.xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final String RCS_ID
See Also:
Constant Field Values

CONTAINS

public static final int CONTAINS
See Also:
Constant Field Values

EQUALS

public static final int EQUALS
See Also:
Constant Field Values

STARTS_WITH

public static final int STARTS_WITH
See Also:
Constant Field Values

ENDS_WITH

public static final int ENDS_WITH
See Also:
Constant Field Values

EXISTS

public static final int EXISTS
See Also:
Constant Field Values

mode

protected int mode

name

protected String name

value

protected String value
Constructor Detail

AttributeEvaluator

public AttributeEvaluator()
Zero-arg constructor required by JPA. Other Java code should not use it.


AttributeEvaluator

public AttributeEvaluator(String name,
                          String mode,
                          String value)
Method Detail

isApplicable

public boolean isApplicable(IPerson p)
Specified by:
isApplicable in class Evaluator

toElement

public void toElement(org.dom4j.Element parent)
Description copied from class: Evaluator
Serializes this Evaluator into the same XML format supported by dlm.xml. NOTE: this method will only yield usable XML if invoked on an instance of FragmentDefinition; all other subclasses will return only XML fragments.

Specified by:
toElement in class Evaluator
Parameters:
parent - The XML structure (starting with <dlm:fragment>) so far

getFactoryClass

public Class<? extends EvaluatorFactory> getFactoryClass()
Specified by:
getFactoryClass in class Evaluator


Copyright © 2010 Jasig. All Rights Reserved.