com.adobe.flexbuilder.codemodel.indices
Interface IStyleAttributeIndex

All Superinterfaces:
IIndex

public interface IStyleAttributeIndex
extends IIndex

Index of all style properties in the project and its class and library paths (along with the [Style] metadata attributes that prompted their creation and which can tell us what the enumerated values are).


Field Summary
static java.lang.String ID
          The style property index ID
 
Method Summary
 java.lang.String cssifyName(java.lang.String name)
          Convert from styleProperty to style-property to make these names look CSS-y.
 IStyleTag getStyleMetaTag(java.lang.String property)
          Retrieve the style metadata attribute we used to learn about this style.
 java.lang.String[] getStyleProperties()
          Retrieve a list of all style properties in the project (based on all of the [Style()] metadata on all of the classes in the project)
 java.lang.String[] getStyleValues(java.lang.String property)
          Retrieve a list of values for the given property (based on the first [Style()] metadata that we find
 
Methods inherited from interface com.adobe.flexbuilder.codemodel.indices.IIndex
getIndexID
 

Field Detail

ID

public static final java.lang.String ID
The style property index ID

See Also:
Constant Field Values
Method Detail

getStyleProperties

public java.lang.String[] getStyleProperties()
Retrieve a list of all style properties in the project (based on all of the [Style()] metadata on all of the classes in the project)

Returns:
array of property names

getStyleValues

public java.lang.String[] getStyleValues(java.lang.String property)
Retrieve a list of values for the given property (based on the first [Style()] metadata that we find

Parameters:
property - style property (with dashes, not camel cased; use IStylePropertyIndex.cssifyName if you need to)
Returns:
array of value names for that property

getStyleMetaTag

public IStyleTag getStyleMetaTag(java.lang.String property)
Retrieve the style metadata attribute we used to learn about this style. Since there can (and will!) be many style attributes for each style, this just returns the first one in our map.

Parameters:
property - style property
Returns:
IMetaAttribute describing the style property

cssifyName

public java.lang.String cssifyName(java.lang.String name)
Convert from styleProperty to style-property to make these names look CSS-y.

Parameters:
name - original camel case style name
Returns:
CSS-appropriate dashed style name