Package com.microstrategy.web.transform
Class StyleCatalogFactory
- java.lang.Object
 - 
- com.microstrategy.web.transform.StyleCatalogFactory
 
 
- 
public class StyleCatalogFactory extends java.lang.ObjectDeprecated.TheStyleCatalogFactoryis not used anymore by the application. To load a catalog, you may use directly theConfigurationFilesCacheThe StyleCatalog Factory class is a singleton that manages 2 top level objects: 1. A transform object. This is an object that implements the Transform interface. 2. A style catalog object, which manages a set of styles. This class must manage a single global instance of the style catalog. The StyleCatalogFactory is not used anymore by the application. MicroStrategy Web now uses a generic configuration files cache mechanism (ConfigurationFilesCacheand the style catalog is part of this cache. As before, the StyleCatalog can be accessed through theBeanContext(which will internally use the cache), or directly from the cache:
StyleCatalog sc = (StyleCatalog) ConfigurationFilesCache.getConfiguration(path, StyleCatalogImpl.class);wherepathis the location of your styleCatalog.xml- Since:
 - MicroStrategy Web 7.3.1 or earlier
 - See Also:
 ConfigurationFilesCache
 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedStyleCatalogFactory()Deprecated. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TransformsfindTransforms(java.lang.String packList)Deprecated.Returns a list of all transforms located in the specified packagesTransformsfindTransforms(java.lang.String packList, java.lang.String classPath)Deprecated.Returns a list ofall transforms located in the specified packages and in the specified class path.static StyleCatalogFactorygetInstance()Deprecated.TransformgetTransformByClass(java.lang.String transformName)Deprecated.Returns an instance of the Transform class.StyleCatalogloadCatalog(java.lang.String fileName)Deprecated.Loads the style catalog into memory from the file.StyleCatalogloadCatalog(org.w3c.dom.Document doc)Deprecated.Loads the style catalog into memory from the DOM Document.StyleCatalogloadCatalogFromXML(java.lang.String xml)Deprecated.Creates a style catalog object and loads it from the string xml specified.StyleCatalognewCatalog(java.lang.String fileName, boolean overwrite)Deprecated.Creates a new StyleCatalog object.voidsetSystemCatalog(StyleCatalog catalog)Deprecated.Please use methods likeloadCatalog(Document),loadCatalog(String),loadCatalog(String),newCatalog(String, boolean)instead to set up the style catalog. 
 - 
 
- 
- 
Method Detail
- 
newCatalog
public StyleCatalog newCatalog(java.lang.String fileName, boolean overwrite) throws java.lang.IllegalArgumentException, WebTransformException
Deprecated.Creates a new StyleCatalog object.- Parameters:
 fileName- the file name of the new style catalog.overwrite- whether it will overwirte the file if it already exists.- Returns:
 - the 
StyleCatalogobject created. - Throws:
 java.lang.IllegalArgumentException- thrown if the file name exists and it can't overwrite it.WebTransformException- thrown if the fileName is invalid.
 
- 
loadCatalog
public StyleCatalog loadCatalog(java.lang.String fileName) throws WebTransformException
Deprecated.Loads the style catalog into memory from the file. The XML is validated.- Parameters:
 fileName- the file that contains the style catalog information.- Returns:
 - the 
StyleCatalogobject. - Throws:
 WebTransformException
 
- 
loadCatalog
public StyleCatalog loadCatalog(org.w3c.dom.Document doc) throws WebTransformException
Deprecated.Loads the style catalog into memory from the DOM Document. Note that no validation is performed on the object model in this operation.- Parameters:
 doc- theDocumentnode that contains the style catalog information.- Returns:
 - the 
StyleCatalogobject. - Throws:
 WebTransformException
 
- 
loadCatalogFromXML
public StyleCatalog loadCatalogFromXML(java.lang.String xml) throws WebTransformException
Deprecated.Creates a style catalog object and loads it from the string xml specified. A DTD is automatically appended to the XML, and validated accordingly.- Parameters:
 xml- the xml string containing the style catalog information.- Returns:
 - the 
StyleCatalogobject created from the xml string. - Throws:
 WebTransformException- thrown if the string xml does not contain a valid format or is null.
 
- 
setSystemCatalog
public void setSystemCatalog(StyleCatalog catalog) throws java.lang.IllegalArgumentException
Deprecated.Please use methods likeloadCatalog(Document),loadCatalog(String),loadCatalog(String),newCatalog(String, boolean)instead to set up the style catalog.Sets the system style Catalog- Parameters:
 catalog- theStyleCatalogobject set as the system style catalog.- Throws:
 java.lang.IllegalArgumentException- thrown if the style catalog is null.
 
- 
getTransformByClass
public Transform getTransformByClass(java.lang.String transformName) throws WebTransformException
Deprecated.Returns an instance of the Transform class.- Parameters:
 transformName- the fully qualified class name of the transform.- Returns:
 - an instance of the 
Transformobject. - Throws:
 WebTransformException- thrown if there is an error getting a new instance of the transform.
 
- 
getInstance
public static StyleCatalogFactory getInstance()
Deprecated. 
- 
findTransforms
public Transforms findTransforms(java.lang.String packList)
Deprecated.Returns a list of all transforms located in the specified packages- Parameters:
 packList- a string countering semicolon separated list of Java packages where to look for transforms- Returns:
 - a 
Transformscollection containing all Transforms located in the specified packages 
 
- 
findTransforms
public Transforms findTransforms(java.lang.String packList, java.lang.String classPath)
Deprecated.Returns a list ofall transforms located in the specified packages and in the specified class path.- Parameters:
 packList- a string countering semicolon separeted list of Java packages where to look for transforms.classPath- a string containing the class path where to look for transforms.- Returns:
 - a 
Transformscollection containing all Transforms located in the specified packages and class path. 
 
 - 
 
 -