BrightSide Workbench Full Report + Source Code
org.turro.elephant.web.context.WebLocaleResource Class Reference

Public Member Functions

File resourceForLang (String lang)
 
String resourceNameForLang (String lang)
 
WebResource addWebResource (String lang, WebResource resource)
 
WebResource getWebResource (String lang)
 
Set< String > getLangs ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 30 of file WebLocaleResource.java.

Member Function Documentation

◆ addWebResource()

WebResource org.turro.elephant.web.context.WebLocaleResource.addWebResource ( String  lang,
WebResource  resource 
)

Definition at line 53 of file WebLocaleResource.java.

53  {
54  resources.putIfAbsent(lang, resource);
55  return resources.get(lang);
56  }

◆ getLangs()

Set<String> org.turro.elephant.web.context.WebLocaleResource.getLangs ( )

Definition at line 62 of file WebLocaleResource.java.

62  {
63  return resources.keySet();
64  }

◆ getWebResource()

WebResource org.turro.elephant.web.context.WebLocaleResource.getWebResource ( String  lang)

Definition at line 58 of file WebLocaleResource.java.

58  {
59  return resources.get(lang);
60  }

◆ resourceForLang()

File org.turro.elephant.web.context.WebLocaleResource.resourceForLang ( String  lang)

Definition at line 35 of file WebLocaleResource.java.

35  {
36  WebResource wr = resources.get(lang);
37  if(wr != null) {
38  return wr.getResource();
39  } else {
40  return null;
41  }
42  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resourceNameForLang()

String org.turro.elephant.web.context.WebLocaleResource.resourceNameForLang ( String  lang)

Definition at line 44 of file WebLocaleResource.java.

44  {
45  File resource = resourceForLang(lang);
46  if(resource != null) {
47  return resource.getName();
48  } else {
49  return null;
50  }
51  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: