| java.lang.Object org.araneaframework.uilib.util.NameUtil
NameUtil | public class NameUtil (Code) | | This class is a general helper, which is used throughout UiLib to parse String s like
events and hierarchical names.
author: Jevgeni Kabanov (ekabanov at araneaframework dot org) |
Method Summary | |
public static String | getEventName(String eventActionParam) Returns the event name extracted from the action parameter of the
"Event" action. | public static String | getEventParam(String eventActionParam) Returns the event parameter extracted from the action parameter of the
"Event" action. | public static String | getFullName(String prefix, String name) Returns the fullname concatenated from the prefix
and the name . | public static String | getLongestPrefix(String fullName) Returns the full prefix of given full name. | public static String | getNamePrefix(String fullName) Returns the prefix of the full name (prefix is part before the first
dot, or the whole full name if it contains no dots).
Parameters: fullName - the full name. | public static String | getNameSuffix(String fullName) Returns suffix of the fullname(suffix is part after the first
dot, or an empty String if full name
contains no dots).
Parameters: fullName - full name. | public static String | getShortestSuffix(String fullName) Returns the shortest suffix of given full name. |
getEventName | public static String getEventName(String eventActionParam)(Code) | | Returns the event name extracted from the action parameter of the
"Event" action. It is the part in the action parameter before the first "$" .
Parameters: eventActionParam - the action parameter of the "Event" action the event name. |
getEventParam | public static String getEventParam(String eventActionParam)(Code) | | Returns the event parameter extracted from the action parameter of the
"Event" action. It is the part in the action parameter after the first "$" .
Parameters: eventActionParam - the action parameter of the "Event" action the event parameter. |
getFullName | public static String getFullName(String prefix, String name)(Code) | | Returns the fullname concatenated from the prefix
and the name . If prefix isn't empty, a dot
is added after it.
Parameters: prefix - the full name prefix. Parameters: name - the current name. full name. |
getLongestPrefix | public static String getLongestPrefix(String fullName)(Code) | | Returns the full prefix of given full name. That is, the part before
the last dot, or NULL when fullName is not nested).
Parameters: fullName - the full name. full prefix of the full name. since: 1.0.9 |
getNamePrefix | public static String getNamePrefix(String fullName)(Code) | | Returns the prefix of the full name (prefix is part before the first
dot, or the whole full name if it contains no dots).
Parameters: fullName - the full name. prefix of the full name. |
getNameSuffix | public static String getNameSuffix(String fullName)(Code) | | Returns suffix of the fullname(suffix is part after the first
dot, or an empty String if full name
contains no dots).
Parameters: fullName - full name. suffix of the full name. |
getShortestSuffix | public static String getShortestSuffix(String fullName)(Code) | | Returns the shortest suffix of given full name. That is, the part after
the last dot, or fullName when fullName is not nested).
Parameters: fullName - the full name. full prefix of the full name. since: 1.0.9 |
|
|