public abstract class NamedObject
extends java.lang.Object
Constructor and Description |
---|
NamedObject(java.lang.String name)
Constructs a named object with the given initial name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the named object.
|
java.lang.String |
getQuotedName()
Returns the quoted name of the named object.
|
java.lang.String |
toString()
Overrides the java.lang.Object's toString method to return the named
object's name when given as parameter to a method that expects a string
to be passed.
|
public NamedObject(java.lang.String name)
name
- java.lang.String : The given initial name for the named objectpublic java.lang.String getName()
public java.lang.String getQuotedName()
public java.lang.String toString()
toString
in class java.lang.Object