org.cruxframework.crux.core.declarativeui
Class DeclarativeUIScreenResolver

java.lang.Object
  extended by org.cruxframework.crux.core.declarativeui.DeclarativeUIScreenResolver
All Implemented Interfaces:
ScreenResourceResolver

public class DeclarativeUIScreenResolver
extends Object
implements ScreenResourceResolver

Author:
Thiago da Rosa de Bustamante

Constructor Summary
DeclarativeUIScreenResolver()
           
 
Method Summary
 Set<String> getAllAppModules()
          List all modules that have at least one crux.xml page (and needs to be compiled)
 Set<String> getAllScreenIDs(String module)
          List all Crux screen IDs
 Document getRootView(String screenId, String device)
          Gets the Document representing the root view for a given screenId
 Document getRootView(String relativeScreenId, String moduleId, String device)
          Gets the Document representing the root view for a given screenId
 InputStream getScreenResource(String screenId)
          Gets the inputStream for a given screenId
 InputStream getScreenResource(String screenId, String module)
          Gets the inputStream for a given screenId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeclarativeUIScreenResolver

public DeclarativeUIScreenResolver()
Method Detail

getAllAppModules

public Set<String> getAllAppModules()
Description copied from interface: ScreenResourceResolver
List all modules that have at least one crux.xml page (and needs to be compiled)

Specified by:
getAllAppModules in interface ScreenResourceResolver
Returns:

getAllScreenIDs

public Set<String> getAllScreenIDs(String module)
                            throws ScreenConfigException
Description copied from interface: ScreenResourceResolver
List all Crux screen IDs

Specified by:
getAllScreenIDs in interface ScreenResourceResolver
Returns:
Throws:
ScreenConfigException

getRootView

public Document getRootView(String relativeScreenId,
                            String moduleId,
                            String device)
                     throws CruxGeneratorException
Description copied from interface: ScreenResourceResolver
Gets the Document representing the root view for a given screenId

Specified by:
getRootView in interface ScreenResourceResolver
Returns:
Throws:
CruxGeneratorException

getRootView

public Document getRootView(String screenId,
                            String device)
                     throws CruxGeneratorException
Description copied from interface: ScreenResourceResolver
Gets the Document representing the root view for a given screenId

Specified by:
getRootView in interface ScreenResourceResolver
Returns:
Throws:
CruxGeneratorException

getScreenResource

public InputStream getScreenResource(String screenId)
                              throws CruxGeneratorException
Description copied from interface: ScreenResourceResolver
Gets the inputStream for a given screenId

Specified by:
getScreenResource in interface ScreenResourceResolver
Returns:
Throws:
CruxGeneratorException

getScreenResource

public InputStream getScreenResource(String screenId,
                                     String module)
                              throws CruxGeneratorException
Description copied from interface: ScreenResourceResolver
Gets the inputStream for a given screenId

Specified by:
getScreenResource in interface ScreenResourceResolver
Returns:
Throws:
CruxGeneratorException


Copyright © 2014. All rights reserved.