public abstract class NameProperty
extends java.lang.Object
| Constructor and Description |
|---|
NameProperty() |
| Modifier and Type | Method and Description |
|---|---|
static NameProperty |
fromBean()
Retrieve a new name property around a simple field, forming a Java bean.
|
static NameProperty |
fromStringIndex(java.lang.Class<?> baseClass,
java.lang.Object target,
int index)
Retrieve a name property that delegates all read and write operations to a field of the given target.
|
abstract java.lang.String |
getName()
Retrieve the name.
|
static boolean |
hasStringIndex(java.lang.Class<?> baseClass,
int index)
Determine if a string of the given index exists in the base class.
|
abstract void |
setName(java.lang.String name)
Set the name.
|
public abstract java.lang.String getName()
public abstract void setName(java.lang.String name)
name - - the new value of the name.public static boolean hasStringIndex(java.lang.Class<?> baseClass,
int index)
baseClass - - the base class.index - - the index to check.public static NameProperty fromStringIndex(java.lang.Class<?> baseClass, java.lang.Object target, int index)
baseClass - - the base class.target - - the targetindex - - the index of the field.public static NameProperty fromBean()