Package com.highdeal.admin.hci
Class FileToBulkLoad
java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.admin.hci.FileToBulkLoad
- All Implemented Interfaces:
ITagNameProvider,IXMLMarshallable,XMLMarshallable
This
Java class represents a file that was fetched by a rater instance and that is ready to be bulk loaded to another system.XML API for HCI
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>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThisenumerationlists all the instance types from which the file is created (rater, bulkloader). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAdditional Infostatic final StringMapping for the creation date: "creationDate"static final StringMapping for the file name: "fileName"static final StringMapping for the instance type: "instanceType"static final StringMapping for the is in error flag: "isInError"static final StringMapping for the status model: "fileToBulkLoad" -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an empty FileToBulkLoad.FileToBulkLoad(String fileName, Date creationDate, FileToBulkLoad.FromInstanceType instanceType, boolean isInError, String additionalInfo) Initializes a newFileToBulkLoadModelinstance with the file information. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds string data to this model.voidaddChild(String tagName, XMLMarshallable child) Adds a child tag to this model.Gets the additional information.Gets the date of file creation.Gets the file name.Gets the instance type from which the file was created.Gets the XML tag name of the HCI model.booleanReturns if the file is in error.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidmarshalChildren(XMLOutputter output) Gives an XML representation of the child objects of an object.voidsetAdditionalInfo(String additionalInfo) Sets the additional information.voidsetAttributes(XMLAttributes atts) Sets the operation attributes from theXMLAttributes.voidsetInError(boolean inError) Sets if the file is in error or not.Methods inherited from class com.highdeal.hci.HCIModelAdapter
marshal
-
Field Details
-
TAG_NAME
Mapping for the status model: "fileToBulkLoad"- See Also:
-
FILE_NAME
Mapping for the file name: "fileName"- See Also:
-
CREATION_DATE
Mapping for the creation date: "creationDate"- See Also:
-
INSTANCE_TYPE
Mapping for the instance type: "instanceType"- See Also:
-
IS_IN_ERROR
Mapping for the is in error flag: "isInError"- See Also:
-
ADDITIONAL_INFO
Additional Info- See Also:
-
-
Constructor Details
-
FileToBulkLoad
public FileToBulkLoad()Builds an empty FileToBulkLoad. -
FileToBulkLoad
public FileToBulkLoad(String fileName, Date creationDate, FileToBulkLoad.FromInstanceType instanceType, boolean isInError, String additionalInfo) Initializes a newFileToBulkLoadModelinstance with the file information.- Parameters:
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 information
-
-
Method Details
-
getFileName
Gets the file name.- Returns:
- The file name
-
getCreationDate
Gets the date of file creation.- Returns:
- The date of file creation
-
getFromInstanceType
Gets the instance type from which the file was created.- Returns:
- The instance type from which the file was created
-
setInError
public void setInError(boolean inError) Sets if the file is in error or not.- Parameters:
inError-trueif the file is in error,falseotherwise
-
isInError
public boolean isInError()Returns if the file is in error.- Returns:
trueif the file is in error,falseotherwise
-
getAdditionalInfo
Gets the additional information.- Returns:
- The additional information
-
setAdditionalInfo
Sets the additional information.- Parameters:
additionalInfo- The additional information
-
setAttributes
Sets the operation attributes from theXMLAttributes.- Parameters:
atts- TheXMLAttributescontaining the data
-
addChild
Adds a child tag to this model.This tag is ignored for this model.
- Parameters:
tagName- The name of the tagchild- TheXMLMarshallablechild to add
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Parameters:
output- TheXML outputto marshal the object attributes into
-
marshalChildren
Description copied from interface:IXMLMarshallableGives an XML representation of the child objects of an object.- Parameters:
output- TheXML outputto marshal the child objects into
-
getTagName
Description copied from interface:ITagNameProviderGets the XML tag name of the HCI model.- Returns:
- The XML tag name
-
addCharacterData
Adds string data to this model.This data is ignored for this model.
- Parameters:
cData- The character data to add to the operation
-