@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class TaskProperty extends java.lang.Object implements java.io.Serializable
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Constructor and Description |
---|
TaskProperty(java.lang.String attributeName,
java.lang.String displayName,
java.lang.String description,
java.lang.Class<?> dataType,
boolean required,
boolean multiValued,
boolean advanced)
Creates a new task property with the provided information.
|
TaskProperty(java.lang.String attributeName,
java.lang.String displayName,
java.lang.String description,
java.lang.Class<?> dataType,
boolean required,
boolean multiValued,
boolean advanced,
java.lang.Object[] allowedValues)
Creates a new task property with the provided information.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getAllowedValues()
Retrieves the set of values that may be used for this task property.
|
java.lang.String |
getAttributeName()
Retrieves the name of the LDAP attribute associated with this task
property.
|
java.lang.Class<?> |
getDataType()
Retrieves the data type for this task property, which represents the
expected data type for the value(s) of this property.
|
java.lang.String |
getDescription()
Retrieves the human-readable description for this task property.
|
java.lang.String |
getDisplayName()
Retrieves the human-readable display name for this task property.
|
boolean |
isAdvanced()
Indicates whether this task property is considered advanced.
|
boolean |
isMultiValued()
Indicates whether this task property is allowed to have multiple values.
|
boolean |
isRequired()
Indicates whether this task property is required to be provided in order to
schedule a task.
|
java.lang.String |
toString()
Retrieves a string representation of this task property.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this task property to the provided
buffer.
|
public TaskProperty(@NotNull java.lang.String attributeName, @NotNull java.lang.String displayName, @NotNull java.lang.String description, @NotNull java.lang.Class<?> dataType, boolean required, boolean multiValued, boolean advanced)
attributeName
- The name of the LDAP attribute associated with this
task property. It must not be null
.displayName
- The human-readable display name for this task
property. It must not be null
.description
- The human-readable description for this task
property. It must not be null
.dataType
- A class representing the data type for this
property. Allowed data type classes include:
Boolean
, Date
, Long
, and
String
. It must not be null
.required
- Indicates whether this property must be provided
when scheduling a task.multiValued
- Indicates whether this property is allowed to have
multiple values.advanced
- Indicates whether this property may be considered
advanced and doesn't necessarily need to be
presented to the user. Advanced properties must not
be required.public TaskProperty(@NotNull java.lang.String attributeName, @NotNull java.lang.String displayName, @NotNull java.lang.String description, @NotNull java.lang.Class<?> dataType, boolean required, boolean multiValued, boolean advanced, @Nullable java.lang.Object[] allowedValues)
attributeName
- The name of the LDAP attribute associated with this
task property. It must not be null
.displayName
- The human-readable display name for this task
property. It must not be null
.description
- The human-readable description for this task
property. It must not be null
.dataType
- A class representing the data type for this
property. Allowed data type classes include:
Boolean
, Date
, Long
, and
String
. It must not be null
.required
- Indicates whether this property must be provided
when scheduling a task.multiValued
- Indicates whether this property is allowed to have
multiple values.advanced
- Indicates whether this property may be considered
advanced and doesn't necessarily need to be
presented to the user. Advanced properties must not
be required.allowedValues
- The set of allowed values for this task property.
It may be null
if there is not a predefined
set of acceptable values. If it is provided, then
all values must be objects of the class specified as
the data type.@NotNull public java.lang.String getAttributeName()
@NotNull public java.lang.String getDisplayName()
@NotNull public java.lang.String getDescription()
@NotNull public java.lang.Class<?> getDataType()
Boolean
, Date
, Long
, and String
.public boolean isRequired()
true
if this task property is required, or false
if it is not.public boolean isMultiValued()
true
if this task property is allowed to have multiple
values, or false
if it may only have a single value.public boolean isAdvanced()
true
if this task property is considered advanced, or
false
if not.@Nullable public java.lang.Object[] getAllowedValues()
null
if there is not a predefined set of allowed values.@NotNull public java.lang.String toString()
toString
in class java.lang.Object