public class PropertyFieldTemplate
extends java.lang.Object
PropertyGroupTemplate
.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
description |
protected java.lang.String |
name |
protected PropertyType |
type |
Constructor and Description |
---|
PropertyFieldTemplate(java.lang.String name,
java.lang.String description,
PropertyType type)
Defines how a single property field may be structured.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
Description of the property field.
|
java.lang.String |
getName()
Key of the property field being described.
|
PropertyType |
getType()
Data type of the value of this property field.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String name
protected final java.lang.String description
protected final PropertyType type
public PropertyFieldTemplate(java.lang.String name, java.lang.String description, PropertyType type)
PropertyGroupTemplate
.name
- Key of the property field being described. Property field
keys can be up to 256 bytes. Must not be null
.description
- Description of the property field. Property field
descriptions can be up to 1024 bytes. Must not be null
.type
- Data type of the value of this property field. This type
will be enforced upon property creation and modifications. Must not
be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getName()
null
.public java.lang.String getDescription()
null
.public PropertyType getType()
null
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.