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 java.lang.String |
ADDITIONAL_INFO
Additional Info
|
static java.lang.String |
CREATION_DATE
Mapping for the creation date: "creationDate"
|
static java.lang.String |
FILE_NAME
Mapping for the file name: "fileName"
|
static java.lang.String |
INSTANCE_TYPE
Mapping for the instance type: "instanceType"
|
static java.lang.String |
IS_IN_ERROR
Mapping for the is in error flag: "isInError"
|
static java.lang.String |
TAG_NAME
Mapping for the status model: "fileToBulkLoad"
|
| Constructor and Description |
|---|
FileToBulkLoad()
Builds an empty FileToBulkLoad.
|
FileToBulkLoad(java.lang.String fileName,
java.util.Date creationDate,
FileToBulkLoad.FromInstanceType instanceType,
boolean isInError,
java.lang.String additionalInfo)
Initializes a new
FileToBulkLoadModel instance with the
file information. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds string data to this model.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child tag to this model.
|
java.lang.String |
getAdditionalInfo()
Gets the additional information.
|
java.util.Date |
getCreationDate()
Gets the date of file creation.
|
java.lang.String |
getFileName()
Gets the file name.
|
FileToBulkLoad.FromInstanceType |
getFromInstanceType()
Gets the instance type from which the file was created.
|
java.lang.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(java.lang.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 java.lang.String TAG_NAME
public static final java.lang.String FILE_NAME
public static final java.lang.String CREATION_DATE
public static final java.lang.String INSTANCE_TYPE
public static final java.lang.String IS_IN_ERROR
public static final java.lang.String ADDITIONAL_INFO
public FileToBulkLoad()
public FileToBulkLoad(java.lang.String fileName,
java.util.Date creationDate,
FileToBulkLoad.FromInstanceType instanceType,
boolean isInError,
java.lang.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 java.lang.String getFileName()
public java.util.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 java.lang.String getAdditionalInfo()
public void setAdditionalInfo(java.lang.String additionalInfo)
additionalInfo - The additional informationpublic void setAttributes(XMLAttributes atts)
XMLAttributes.atts - The XMLAttributes containing the datapublic void addChild(java.lang.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 java.lang.String getTagName()
ITagNameProviderpublic void addCharacterData(java.lang.String cData)
This data is ignored for this model.
cData - The character data to add to the operation