Class NameProperty
java.lang.Object
com.comphenix.protocol.wrappers.nbt.NameProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NamePropertyfromBean()Retrieve a new name property around a simple field, forming a Java bean.static NamePropertyfromStringIndex(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 StringgetName()Retrieve the name.static booleanhasStringIndex(Class<?> baseClass, int index) Determine if a string of the given index exists in the base class.abstract voidSet the name.
-
Constructor Details
-
NameProperty
public NameProperty()
-
-
Method Details
-
getName
Retrieve the name.- Returns:
- The name.
-
setName
Set the name.- Parameters:
name- - the new value of the name.
-
hasStringIndex
Determine if a string of the given index exists in the base class.- Parameters:
baseClass- - the base class.index- - the index to check.- Returns:
- TRUE if it does, FALSE otherwise.
-
fromStringIndex
Retrieve a name property that delegates all read and write operations to a field of the given target.- Parameters:
baseClass- - the base class.target- - the targetindex- - the index of the field.- Returns:
- The name property.
-
fromBean
Retrieve a new name property around a simple field, forming a Java bean.- Returns:
- The name property.
-