Modifier and Type | Class and Description |
---|---|
static class |
ModifyPropertyTemplateError.Tag
Discriminating tag type for
ModifyPropertyTemplateError . |
Modifier and Type | Field and Description |
---|---|
static ModifyPropertyTemplateError |
CONFLICTING_PROPERTY_NAMES
A property field name already exists in the template.
|
static ModifyPropertyTemplateError |
OTHER
An unspecified error.
|
static ModifyPropertyTemplateError |
RESTRICTED_CONTENT
You do not have the permissions to modify this property template.
|
static ModifyPropertyTemplateError |
TEMPLATE_ATTRIBUTE_TOO_LARGE
The template name, description or field names is too large.
|
static ModifyPropertyTemplateError |
TOO_MANY_PROPERTIES
There are too many properties in the changed template.
|
static ModifyPropertyTemplateError |
TOO_MANY_TEMPLATES
There are too many templates for the team.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getTemplateNotFoundValue()
Property template does not exist for given identifier.
|
int |
hashCode() |
boolean |
isConflictingPropertyNames()
Returns
true if this instance has the tag ModifyPropertyTemplateError.Tag.CONFLICTING_PROPERTY_NAMES , false otherwise. |
boolean |
isOther()
|
boolean |
isRestrictedContent()
Returns
true if this instance has the tag ModifyPropertyTemplateError.Tag.RESTRICTED_CONTENT , false otherwise. |
boolean |
isTemplateAttributeTooLarge()
Returns
true if this instance has the tag ModifyPropertyTemplateError.Tag.TEMPLATE_ATTRIBUTE_TOO_LARGE , false otherwise. |
boolean |
isTemplateNotFound()
Returns
true if this instance has the tag ModifyPropertyTemplateError.Tag.TEMPLATE_NOT_FOUND , false otherwise. |
boolean |
isTooManyProperties()
Returns
true if this instance has the tag ModifyPropertyTemplateError.Tag.TOO_MANY_PROPERTIES , false otherwise. |
boolean |
isTooManyTemplates()
Returns
true if this instance has the tag ModifyPropertyTemplateError.Tag.TOO_MANY_TEMPLATES , false otherwise. |
ModifyPropertyTemplateError.Tag |
tag()
Returns the tag for this instance.
|
static ModifyPropertyTemplateError |
templateNotFound(String value)
Returns an instance of
ModifyPropertyTemplateError that has its
tag set to ModifyPropertyTemplateError.Tag.TEMPLATE_NOT_FOUND . |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final ModifyPropertyTemplateError RESTRICTED_CONTENT
public static final ModifyPropertyTemplateError OTHER
public static final ModifyPropertyTemplateError CONFLICTING_PROPERTY_NAMES
public static final ModifyPropertyTemplateError TOO_MANY_PROPERTIES
public static final ModifyPropertyTemplateError TOO_MANY_TEMPLATES
public static final ModifyPropertyTemplateError TEMPLATE_ATTRIBUTE_TOO_LARGE
public ModifyPropertyTemplateError.Tag tag()
This class is a tagged union. Tagged unions instances are always
associated to a specific tag. This means only one of the isXyz()
methods will return true
. Callers are recommended to use the tag
value in a switch
statement to properly handle the different
values for this ModifyPropertyTemplateError
.
public boolean isTemplateNotFound()
true
if this instance has the tag ModifyPropertyTemplateError.Tag.TEMPLATE_NOT_FOUND
, false
otherwise.true
if this instance is tagged as ModifyPropertyTemplateError.Tag.TEMPLATE_NOT_FOUND
, false
otherwise.public static ModifyPropertyTemplateError templateNotFound(String value)
ModifyPropertyTemplateError
that has its
tag set to ModifyPropertyTemplateError.Tag.TEMPLATE_NOT_FOUND
.
Property template does not exist for given identifier.
value
- value to assign to this instance.ModifyPropertyTemplateError
with its tag set
to ModifyPropertyTemplateError.Tag.TEMPLATE_NOT_FOUND
.IllegalArgumentException
- if value
is shorter than 1,
does not match pattern "(/|ptid:).*
", or is null
.public String getTemplateNotFoundValue()
This instance must be tagged as ModifyPropertyTemplateError.Tag.TEMPLATE_NOT_FOUND
.
templateNotFound(java.lang.String)
value
associated with this instance if isTemplateNotFound()
is
true
.IllegalStateException
- If isTemplateNotFound()
is false
.public boolean isRestrictedContent()
true
if this instance has the tag ModifyPropertyTemplateError.Tag.RESTRICTED_CONTENT
, false
otherwise.true
if this instance is tagged as ModifyPropertyTemplateError.Tag.RESTRICTED_CONTENT
, false
otherwise.public boolean isOther()
true
if this instance is tagged as ModifyPropertyTemplateError.Tag.OTHER
,
false
otherwise.public boolean isConflictingPropertyNames()
true
if this instance has the tag ModifyPropertyTemplateError.Tag.CONFLICTING_PROPERTY_NAMES
, false
otherwise.true
if this instance is tagged as ModifyPropertyTemplateError.Tag.CONFLICTING_PROPERTY_NAMES
, false
otherwise.public boolean isTooManyProperties()
true
if this instance has the tag ModifyPropertyTemplateError.Tag.TOO_MANY_PROPERTIES
, false
otherwise.true
if this instance is tagged as ModifyPropertyTemplateError.Tag.TOO_MANY_PROPERTIES
, false
otherwise.public boolean isTooManyTemplates()
true
if this instance has the tag ModifyPropertyTemplateError.Tag.TOO_MANY_TEMPLATES
, false
otherwise.true
if this instance is tagged as ModifyPropertyTemplateError.Tag.TOO_MANY_TEMPLATES
, false
otherwise.public boolean isTemplateAttributeTooLarge()
true
if this instance has the tag ModifyPropertyTemplateError.Tag.TEMPLATE_ATTRIBUTE_TOO_LARGE
, false
otherwise.true
if this instance is tagged as ModifyPropertyTemplateError.Tag.TEMPLATE_ATTRIBUTE_TOO_LARGE
, false
otherwise.public String toStringMultiline()
The returned String may contain newlines.