public class FileToBulkLoad extends HCIModelAdapter
Java class represents a file that was fetched by a rater instance and that is ready to be bulk loaded to another system.The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="fileToBulkLoad">
<xs:complexType>
<xs:attribute name="fileName" type="xs:string" use="required"/>
<xs:attribute name="creationDate" type="xs:dateTime" use="required"/>
<xs:attribute name="instanceType" type="FromInstanceType" use="required"/>
<xs:attribute name="inError" type="xs:boolean" use="required"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="FromInstanceType">
<xs:restriction base="xs:string">
<xs:enumeration value="rater"/>
<xs:enumeration value="bulkLoader"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Class and Description |
|---|---|
static class |
FileToBulkLoad.FromInstanceType
This
enumeration lists all the instance types from which the file is created (rater, bulkloader). |
| Modifier and Type | Field and Description |
|---|---|
static String |
ADDITIONAL_INFO
Additional Info
|
static String |
CREATION_DATE
Mapping for the creation date: "creationDate"
|
static String |
FILE_NAME
Mapping for the file name: "fileName"
|
static String |
INSTANCE_TYPE
Mapping for the instance type: "instanceType"
|
static String |
IS_IN_ERROR
Mapping for the is in error flag: "isInError"
|
static String |
TAG_NAME
Mapping for the status model: "fileToBulkLoad"
|
| Constructor and Description |
|---|
FileToBulkLoad()
Builds an empty FileToBulkLoad.
|
FileToBulkLoad(String fileName,
Date creationDate,
FileToBulkLoad.FromInstanceType instanceType,
boolean isInError,
String additionalInfo)
Initializes a new
FileToBulkLoadModel instance with the
file information. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds string data to this model.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child tag to this model.
|
String |
getAdditionalInfo()
Gets the additional information.
|
Date |
getCreationDate()
Gets the date of file creation.
|
String |
getFileName()
Gets the file name.
|
FileToBulkLoad.FromInstanceType |
getFromInstanceType()
Gets the instance type from which the file was created.
|
String |
getTagName()
Gets the XML tag name of the HCI model.
|
boolean |
isInError()
Returns if the file is in error.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAdditionalInfo(String additionalInfo)
Sets the additional information.
|
void |
setAttributes(XMLAttributes atts)
Sets the operation attributes from the
XMLAttributes. |
void |
setInError(boolean inError)
Sets if the file is in error or not.
|
marshalpublic static final String TAG_NAME
public static final String FILE_NAME
public static final String CREATION_DATE
public static final String INSTANCE_TYPE
public static final String IS_IN_ERROR
public static final String ADDITIONAL_INFO
public FileToBulkLoad()
public FileToBulkLoad(String fileName, Date creationDate, FileToBulkLoad.FromInstanceType instanceType, boolean isInError, String additionalInfo)
FileToBulkLoadModel instance with the
file information.fileName - The name of the filecreationDate - The date when the file was createdinstanceType - The type of the instance which created the fileisInError - A flag indicating if the file is in error or notadditionalInfo - The additional informationpublic String getFileName()
public Date getCreationDate()
public FileToBulkLoad.FromInstanceType getFromInstanceType()
public void setInError(boolean inError)
inError - true if the file is in error, false otherwisepublic boolean isInError()
true if the file is in error, false otherwisepublic String getAdditionalInfo()
public void setAdditionalInfo(String additionalInfo)
additionalInfo - The additional informationpublic void setAttributes(XMLAttributes atts)
XMLAttributes.atts - The XMLAttributes containing the datapublic void addChild(String tagName, XMLMarshallable child)
This tag is ignored for this model.
tagName - The name of the tagchild - The XMLMarshallable child to addpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the child objects intopublic String getTagName()
ITagNameProviderpublic void addCharacterData(String cData)
This data is ignored for this model.
cData - The character data to add to the operation