org.jasig.portal.layout.dlm
Class RootLocator

java.lang.Object
  extended by org.jasig.portal.layout.dlm.RootLocator

public class RootLocator
extends Object

Provides centralized tool for obtaining the root folder in a user layout or fragment layout. Uses a pre-compiled XPATH expression for increased performance.

Author:
mboyd

Constructor Summary
RootLocator()
           
 
Method Summary
static Element getRootElement(Document layout)
          Returns the folder having a type attribute containing the value specified by IUserLayout.ROOT_NODE_NAME or null if such a folder does not exist in the layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootLocator

public RootLocator()
Method Detail

getRootElement

public static Element getRootElement(Document layout)
Returns the folder having a type attribute containing the value specified by IUserLayout.ROOT_NODE_NAME or null if such a folder does not exist in the layout.

Parameters:
layout -
Returns:


Copyright © 2010 Jasig. All Rights Reserved.