org.jasig.portal.layout.dlm
Class FragmentDefinition
java.lang.Object
org.jasig.portal.layout.dlm.Evaluator
org.jasig.portal.layout.dlm.FragmentDefinition
public class FragmentDefinition
- extends Evaluator
- Since:
- uPortal 2.5
- Version:
- $Revision: 19776 $ $Date: 2010-01-14 16:17:21 -0600 (Thu, 14 Jan 2010) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAMESPACE_URI
public static final String NAMESPACE_URI
- See Also:
- Constant Field Values
NAMESPACE
public static final org.dom4j.Namespace NAMESPACE
FragmentDefinition
public FragmentDefinition()
- No-arg constructor required by JPA/Hibernate.
FragmentDefinition
protected FragmentDefinition(String name)
FragmentDefinition
public FragmentDefinition(Element e)
- This constructor is passed a dlm:fragment element from which this
FragmentDefinition instance gathers its configuration information.
- Parameters:
e - An Element representing a single in dlm.xml.
- Throws:
Exception
loadFromEelement
public void loadFromEelement(Element e)
getName
public String getName()
getOwnerId
public String getOwnerId()
getPrecedence
public double getPrecedence()
getDefaultLayoutOwnerId
public static String getDefaultLayoutOwnerId()
getEvaluatorCount
public int getEvaluatorCount()
getIndex
public int getIndex()
setIndex
public void setIndex(int index)
isNoAudienceIncluded
public boolean isNoAudienceIncluded()
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.