FileDocCategorySizeDatePackage
NameBase.javaAPI DocJava SE 5 API1392Fri Aug 26 14:54:30 BST 2005com.sun.corba.se.impl.orbutil.fsm

NameBase

public class NameBase extends Object

Fields Summary
private String
name
private String
toStringName
Constructors Summary
public NameBase(String name)

 
	this.name = name ;
	toStringName = getPreferredClassName() + "[" + name + "]" ;
    
Methods Summary
private java.lang.StringgetClassName()

	String fqn = this.getClass().getName() ;
	StringTokenizer st = new StringTokenizer( fqn, "." ) ;
	String token = st.nextToken() ;
	while (st.hasMoreTokens())
	    token = st.nextToken() ;
	return token ;
    
public java.lang.StringgetName()

	return name ;
    
private java.lang.StringgetPreferredClassName()

	if (this instanceof Action)
	    return "Action" ;
	if (this instanceof State)
	    return "State" ;
	if (this instanceof Guard)
	    return "Guard" ;
	if (this instanceof Input)
	    return "Input" ;
	return getClassName() ;
    
public java.lang.StringtoString()

	return toStringName ;