public class FieldDefinition extends Object implements Serializable
Constructor and Description |
---|
FieldDefinition(CronFieldName fieldName,
FieldConstraints constraints)
Mandatory field Constructor.
|
FieldDefinition(CronFieldName fieldName,
FieldConstraints constraints,
boolean optional)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Comparator<FieldDefinition> |
createFieldDefinitionComparator()
Creates a field definition comparator.
|
FieldConstraints |
getConstraints()
Get field constraints.
|
CronFieldName |
getFieldName()
Retrieve field name.
|
boolean |
isOptional()
Get optional tag.
|
public FieldDefinition(CronFieldName fieldName, FieldConstraints constraints)
fieldName
- - CronFieldName; name of the field
if null, a NullPointerException will be raised.constraints
- - FieldConstraints, constraints;
if null, a NullPointerException will be raised.public FieldDefinition(CronFieldName fieldName, FieldConstraints constraints, boolean optional)
fieldName
- - CronFieldName; name of the field
if null, a NullPointerException will be raised.constraints
- - FieldConstraints, constraints;
if null, a NullPointerException will be raised.optional
- - if false
the field is mandatory, optional otherwise.public CronFieldName getFieldName()
public FieldConstraints getConstraints()
public boolean isOptional()
public static Comparator<FieldDefinition> createFieldDefinitionComparator()
Copyright © 2020 JBoss by Red Hat. All rights reserved.