org.eclipse.internal.xpand2
Class XpandUtil
java.lang.Object
org.eclipse.internal.xpand2.XpandUtil
public final class XpandUtil
- extends Object
Xpand utility class. Contains static helper methods and constants.
- Author:
- Sven Efftinge (http://www.efftinge.de) *
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NS_DELIM
public static final String NS_DELIM
- See Also:
- Constant Field Values
TEMPLATE_EXTENSION
public static final String TEMPLATE_EXTENSION
- See Also:
- Constant Field Values
XpandUtil
public XpandUtil()
getJavaResourceName
public static final String getJavaResourceName(String fqn)
withoutLastSegment
public static String withoutLastSegment(String fqn)
- Returns the name without its last segment.
- Parameters:
fqn - Qualified name (foo::bar).
- Returns:
- fqn without the last segment. Returns null if fqn is null
or the name does not contain a qualifier ('::').
getLastSegment
public static String getLastSegment(String fqn)
- Returns the last segment of a qualified name.
- Parameters:
fqn - Qualified name (foo::bar).
- Returns:
- The last segment of fqn. Returns null if fqn is null.
Returns fqn if the name does not contain a qualifier ('::').
Copyright © 2015. All rights reserved.