Class DataFormat
- java.lang.Object
-
- com.boomi.connector.api.annotation.DataFormat
-
- All Implemented Interfaces:
Serializable
public class DataFormat extends Object implements Serializable
Specification for data formatting of the annotated field.Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="dataType" use="required" type="{http://www.boomi.com/connector/annotation}DataType" /> <attribute name="format" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DataType
dataType
static DataFormat
EMPTY_INSTANCE
protected String
format
-
Constructor Summary
Constructors Constructor Description DataFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFormat
copy()
Deep copies the fields of the this model into a new instance of this class and returns it.DataFormat
copy(boolean isDeep)
Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.protected DataFormat
copy(DataFormat nobj, boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance and returns it.boolean
equals(Object o)
DataType
getDataType()
Indicates the data type of this element/attributeString
getFormat()
Indicates the format of this data element/attributeint
hashCode()
void
setDataType(DataType value)
Sets the value of the dataType property.void
setFormat(String value)
Sets the value of the format property.String
toString()
DataFormat
withDataType(DataType newValue)
Sets the dataType property to the given newValue and returns this instance.DataFormat
withFormat(String newValue)
Sets the format property to the given newValue and returns this instance.
-
-
-
Field Detail
-
dataType
protected DataType dataType
-
format
protected String format
-
EMPTY_INSTANCE
public static final DataFormat EMPTY_INSTANCE
-
-
Method Detail
-
getDataType
public DataType getDataType()
Indicates the data type of this element/attribute- Returns:
- possible object is
DataType
-
setDataType
public void setDataType(DataType value)
Sets the value of the dataType property.- Parameters:
value
- allowed object isDataType
-
getFormat
public String getFormat()
Indicates the format of this data element/attribute- Returns:
- possible object is
String
-
setFormat
public void setFormat(String value)
Sets the value of the format property.- Parameters:
value
- allowed object isString
-
copy
public DataFormat copy()
Deep copies the fields of the this model into a new instance of this class and returns it.
-
copy
public DataFormat copy(boolean isDeep)
Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.
-
copy
protected DataFormat copy(DataFormat nobj, boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance and returns it.
-
withDataType
public DataFormat withDataType(DataType newValue)
Sets the dataType property to the given newValue and returns this instance.
-
withFormat
public DataFormat withFormat(String newValue)
Sets the format property to the given newValue and returns this instance.
-
-