org.eclipse.internal.xpand2
Class XpandUtil

java.lang.Object
  extended by 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) *

Field Summary
static String NS_DELIM
           
static String TEMPLATE_EXTENSION
           
 
Constructor Summary
XpandUtil()
           
 
Method Summary
static String getJavaResourceName(String fqn)
           
static String getLastSegment(String fqn)
          Returns the last segment of a qualified name.
static String withoutLastSegment(String fqn)
          Returns the name without its last segment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

XpandUtil

public XpandUtil()
Method Detail

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.