com.arsdigita.kernel
Class StyleAssociation

java.lang.Object
  extended bycom.arsdigita.kernel.StyleAssociation

public class StyleAssociation
extends Object


Field Summary
static String versionId
           
 
Method Summary
static Stylesheet getStylesheet(Object style, Locale locale, String outputType)
          Gets the first stylesheet (best match) associated with this object.
static Stylesheet[] getStylesheets(Object style, Locale locale, String outputType)
          Gets an array with all applicable stylesheets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

getStylesheets

public static Stylesheet[] getStylesheets(Object style,
                                          Locale locale,
                                          String outputType)
Gets an array with all applicable stylesheets.

Parameters:
style - a DataAssociation that is the result from get("defaultStylesheet")
locale - the locale of the request
outputType - the desired type of output (HTML, WML, XML, and so on)
Returns:
an array with all applicable stylesheets.

getStylesheet

public static Stylesheet getStylesheet(Object style,
                                       Locale locale,
                                       String outputType)
Gets the first stylesheet (best match) associated with this object.

Parameters:
style - a DataAssociation that is the result from get("defaultStylesheet")
locale - the locale of the request
outputType - the desired type of output (HTML, WML, XML, and so on)
Returns:
the first stylesheet associated with this object.


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC