◆ actionOf()
static String org.turro.elephant.web.actions.WebActionType.actionOf |
( |
String |
action | ) |
|
|
static |
Definition at line 60 of file WebActionType.java.
61 WebActionType type =
typeOf(action);
62 return type ==
WRONG ? null : removeImage(action).substring(type.getProtocol().length() + 1);
static WebActionType typeOf(String action)
◆ getProtocol()
String org.turro.elephant.web.actions.WebActionType.getProtocol |
( |
| ) |
|
◆ imageOf()
static String org.turro.elephant.web.actions.WebActionType.imageOf |
( |
String |
action | ) |
|
|
static |
Definition at line 65 of file WebActionType.java.
66 if(action.matches(
".+\\{[a-z \\-\\_\\.]+\\}")) {
67 return action.substring(action.lastIndexOf(
"{") + 1, action.length() - 1);
◆ typeOf()
static WebActionType org.turro.elephant.web.actions.WebActionType.typeOf |
( |
String |
action | ) |
|
|
static |
Definition at line 49 of file WebActionType.java.
50 if(!Strings.isBlank(action)) {
51 for(WebActionType type : WebActionType.values()) {
52 if(action.startsWith(type.getProtocol() +
":")) {
◆ ACTION
org.turro.elephant.web.actions.WebActionType.ACTION =("action") |
◆ MAIL
org.turro.elephant.web.actions.WebActionType.MAIL =("mailto") |
◆ NAVIGATE
org.turro.elephant.web.actions.WebActionType.NAVIGATE =("nav") |
◆ TAG
org.turro.elephant.web.actions.WebActionType.TAG =("tag") |
◆ TEL
org.turro.elephant.web.actions.WebActionType.TEL =("tel") |
◆ TGRAM
org.turro.elephant.web.actions.WebActionType.TGRAM =("tgram") |
◆ URL
org.turro.elephant.web.actions.WebActionType.URL =("url") |
◆ WHATS
org.turro.elephant.web.actions.WebActionType.WHATS =("whats") |
◆ WRONG
org.turro.elephant.web.actions.WebActionType.WRONG =("#") |
The documentation for this enum was generated from the following file: