public class Name extends java.lang.Object implements IName
Modifier | Constructor and Description |
---|---|
protected |
Name(java.lang.String name)
Creates a new name instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString()
Returns the string representation of the implementing object.
|
static Name |
create(IStringConstant name)
Creates a new name instance.
|
static Name |
create(java.lang.String name)
Creates a new name instance.
|
java.lang.String |
getName() |
java.lang.String |
toString() |
protected Name(java.lang.String name)
name
- The name value to use (must not be null).java.lang.IllegalArgumentException
- if the given string is null or empty or contains white space characters.public static Name create(java.lang.String name)
name
- The name value to use (must not be null).java.lang.IllegalArgumentException
- if the given name is null or empty or contains white space characters.public static Name create(IStringConstant name)
name
- The name value to use (must not be null).java.lang.IllegalArgumentException
- if the given name is null or empty or contains white space characters.public java.lang.String getName()
public java.lang.String asString()
IStringRepresentation
asString
in interface IStringRepresentation
public java.lang.String toString()
toString
in class java.lang.Object