public abstract class NameProperty extends 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(Class<?> baseClass,
Object target,
int index)
Retrieve a name property that delegates all read and write operations to a field of the given target.
|
abstract String |
getName()
Retrieve the name.
|
static boolean |
hasStringIndex(Class<?> baseClass,
int index)
Determine if a string of the given index exists in the base class.
|
abstract void |
setName(String name)
Set the name.
|
public abstract String getName()
public abstract void setName(String name)
name - - the new value of the name.public static boolean hasStringIndex(Class<?> baseClass, int index)
baseClass - - the base class.index - - the index to check.public static NameProperty fromStringIndex(Class<?> baseClass, Object target, int index)
baseClass - - the base class.target - - the targetindex - - the index of the field.public static NameProperty fromBean()
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.