public class GuideStyleMigrationUtils
extends java.lang.Object
Constructor and Description |
---|
GuideStyleMigrationUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getIDBasedSelector(java.util.Map<java.lang.String,java.lang.String> selectorMap,
java.lang.String selectorKey) |
static java.util.Map |
getSelectorIDMap(java.lang.String componentType,
ResourceResolver resolver,
ResourceMergerService resourceMergerService,
java.lang.String configNodeName) |
static java.util.Map |
getSelectorMap(java.lang.String componentType,
ResourceResolver resolver,
ResourceMergerService resourceMergerService,
java.lang.String configNodeName) |
static java.util.Map<java.lang.String,java.lang.String> |
getSelectorResourceMap(Resource styleConfig,
java.util.Map map) |
static java.util.Map<java.lang.String,java.lang.String> |
getSelectorResourceMap(Resource styleConfig,
java.util.Map map,
java.lang.String pathPrefix) |
static java.util.Map |
getStatePropertiesMap(java.lang.String breakpointName,
java.lang.String stateName,
JSONObject stateJSON)
Save the theme information for the state.
|
static void |
migrateBreakpointJson(JSONObject styleJSON,
Resource styleResource,
java.lang.String componentResourceType,
ResourceMergerService resourceMergerService) |
public static java.util.Map<java.lang.String,java.lang.String> getSelectorResourceMap(Resource styleConfig, java.util.Map map, java.lang.String pathPrefix)
public static java.util.Map<java.lang.String,java.lang.String> getSelectorResourceMap(Resource styleConfig, java.util.Map map)
public static void migrateBreakpointJson(JSONObject styleJSON, Resource styleResource, java.lang.String componentResourceType, ResourceMergerService resourceMergerService) throws PersistenceException, RepositoryException, JSONException
public static java.lang.String getIDBasedSelector(java.util.Map<java.lang.String,java.lang.String> selectorMap, java.lang.String selectorKey)
public static java.util.Map getStatePropertiesMap(java.lang.String breakpointName, java.lang.String stateName, JSONObject stateJSON) throws RepositoryException, JSONException
breakpointName
- state name for which the theme definition is to be savedstateName
- state name for which the theme definition is to be savedstateJSON
- theme definition for the stateRepositoryException
JSONException
public static java.util.Map getSelectorMap(java.lang.String componentType, ResourceResolver resolver, ResourceMergerService resourceMergerService, java.lang.String configNodeName)
public static java.util.Map getSelectorIDMap(java.lang.String componentType, ResourceResolver resolver, ResourceMergerService resourceMergerService, java.lang.String configNodeName)
Copyright © 2010 - 2020 Adobe. All Rights Reserved