Class DomainDescription
- java.lang.Object
-
- com.esri.arcgisruntime.data.DomainDescription
-
- Direct Known Subclasses:
CodedValueDomainDescription
,RangeDomainDescription
public class DomainDescription extends java.lang.Object
An object that describes a domain to be created.- Since:
- 100.14.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Field.Type
getFieldType()
Gets the field type of the domain to be created.java.lang.String
getName()
Gets the name of the domain to be created.void
setFieldType(Field.Type fieldType)
Sets the field type of the domain to be created.void
setName(java.lang.String name)
Sets the name of the domain to be created.
-
-
-
Method Detail
-
getFieldType
public Field.Type getFieldType()
Gets the field type of the domain to be created.Specifies the field type of the domain. Valid field types are
Field.Type.SHORT
,Field.Type.INTEGER
,Field.Type.FLOAT
,Field.Type.DOUBLE
, andField.Type.DATE
. Additionally, forCodedValueDomainDescription
,Field.Type.TEXT
is valid.- Returns:
- the field type of the domain to be created
- Since:
- 100.14.0
-
setFieldType
public void setFieldType(Field.Type fieldType)
Sets the field type of the domain to be created.Specifies the field type of the domain. Valid field types are
Field.Type.SHORT
,Field.Type.INTEGER
,Field.Type.FLOAT
,Field.Type.DOUBLE
, andField.Type.DATE
. Additionally, forCodedValueDomainDescription
,Field.Type.TEXT
is valid.- Parameters:
fieldType
- the field type of the domain to be created- Throws:
java.lang.IllegalArgumentException
- if fieldType is null- Since:
- 100.14.0
-
getName
public java.lang.String getName()
Gets the name of the domain to be created.Specifies the name of the domain. The domain name must be non-empty, consist only of alphanumeric characters and underscores, and cannot start with a number or an underscore.
- Returns:
- the name of the domain to be created
- Since:
- 100.14.0
-
setName
public void setName(java.lang.String name)
Sets the name of the domain to be created.Specifies the name of the domain. The domain name must be non-empty, consist only of alphanumeric characters and underscores, and cannot start with a number or an underscore.
- Parameters:
name
- the name of the domain to be created- Throws:
java.lang.IllegalArgumentException
- if name is null- Since:
- 100.14.0
-
-