java.lang.Object |
↳ |
com.microstrategy.web.transform.AbstractLayoutSource |
Known Direct Subclasses
LayoutSourceFile |
The LayoutSourceFile implements the LayoutSource interface
by providing a way to associate layout definitions with disk files. |
LayoutSourceString |
The LayoutSourceFile implements the LayoutSource interface
by providing using the "location" to be the actual layout definition. |
|
Known Indirect Subclasses
|
Class Overview
This abstract base class manages caching of Layout definitions and provides
a simple implementation of LayoutParser.MessageListener
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.microstrategy.web.transform.LayoutSource
|
Public Constructors
public
AbstractLayoutSource
()
Protected Methods
protected
void
checkNullObject
(Object o, String msg)
A utility method to check whether an object is null.
IllegalArgumentException is thrown if the object is null.
Parameters
o |
the object to check |
msg |
the error message used to report error
|
Returns a layout definition from cache based on the cache hint.
Throws
CacheException
| thrown if there is any error retrieving the object
from cache or loading the object into cache |
protected
abstract
String
getLayoutString
(String location)
Returns the string representation of a layout definition. The layout cache
uses this method to load the layout definition string and then delegates
to the layout parser to parse it. The parsed layou definition is cached.
Parameters
location |
the layout location, defined in the StyleCatalog XML file. |
Returns
- the string representation of a layout definition.