public interface HeaderBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATASET_AGENCY |
static java.lang.String |
DSD_AGENCY_REF |
static java.lang.String |
DSD_REF |
Modifier and Type | Method and Description |
---|---|
void |
addName(TextTypeWrapper name)
Adds a name to the list
|
void |
addReceiver(PartyBean receiver)
Adds a receiver to the list of receivers
|
void |
addSource(TextTypeWrapper source)
Adds a source to the list of sources
|
void |
addStructure(DatasetStructureReferenceBean ref)
Adds a dataset structure reference to the list
|
DATASET_ACTION |
getAction()
Gets the action for the message
|
java.lang.String |
getAdditionalAttribute(java.lang.String headerField)
Returns the header value for a given field.
|
java.util.Map<java.lang.String,java.lang.String> |
getAdditionalAttributes()
Returns a map of any additional attributes that are stored in the header - the key is the field, such as Header.DSD_REF, the value is the value of that field
|
StructureReferenceBean |
getDataProviderReference()
Returns the data provider reference
|
java.lang.String |
getDatasetId()
Gets a dataset id for the message
|
java.util.Date |
getEmbargoDate()
Returns the embargo date for the message
|
java.util.Date |
getExtracted()
Returns the extracted date for the message
|
java.lang.String |
getId()
Gets the id of the header
|
java.util.List<TextTypeWrapper> |
getName()
Returns the name, or an empty list if none are defined
|
java.util.Date |
getPrepared()
Returns the prepared date for the message
|
java.util.List<PartyBean> |
getReceiver()
Returns the list of receivers or an empty list if none are defined
|
java.util.Date |
getReportingBegin()
Returns the reporting begin date
|
java.util.Date |
getReportingEnd()
Returns the reporting end date
|
PartyBean |
getSender()
Returns the sender
|
java.util.List<TextTypeWrapper> |
getSource()
Returns the list of sources, or an empty list if none are defined
|
DatasetStructureReferenceBean |
getStructureById(java.lang.String structureId)
Returns the structure for the given id
|
java.util.List<DatasetStructureReferenceBean> |
getStructures()
Returns all data structure references
|
boolean |
hasAdditionalAttribute(java.lang.String headerField)
Returns true if this Header instance has a value stored for this property in its additional attributes @See getAdditionalAttributes()
|
boolean |
isTest()
Returns true if this is a test message
|
void |
setAction(DATASET_ACTION action)
Sets the action for the message
|
void |
setDataProviderReference(StructureReferenceBean dataProvider)
Sets the data provider reference
|
void |
setDatasetId(java.lang.String datasetId)
Sets a dataset id for the message
|
void |
setEmbargoDate(java.util.Date embargoDate)
Sets the embargo date for the message
|
void |
setId(java.lang.String id)
Sets the id of the message, can not be null
|
void |
setReportingBegin(java.util.Date date)
Sets the reporting being date
|
void |
setReportingEnd(java.util.Date date)
Sets the reporting end date
|
void |
setSender(PartyBean party)
Sets the sender (can not be null)
|
void |
setTest(boolean test)
True if this is a test message
|
static final java.lang.String DSD_REF
static final java.lang.String DSD_AGENCY_REF
static final java.lang.String DATASET_AGENCY
boolean hasAdditionalAttribute(java.lang.String headerField)
headerField
- java.lang.String getAdditionalAttribute(java.lang.String headerField)
headerField
- java.util.Map<java.lang.String,java.lang.String> getAdditionalAttributes()
StructureReferenceBean getDataProviderReference()
void setDataProviderReference(StructureReferenceBean dataProvider)
dataProvider
- DATASET_ACTION getAction()
void setAction(DATASET_ACTION action)
action
- java.lang.String getId()
void setId(java.lang.String id)
id
- java.lang.String getDatasetId()
void setDatasetId(java.lang.String datasetId)
datasetId
- java.util.Date getEmbargoDate()
void setEmbargoDate(java.util.Date embargoDate)
embargoDate
- java.util.Date getExtracted()
java.util.Date getPrepared()
java.util.List<TextTypeWrapper> getName()
void addName(TextTypeWrapper name)
name
- java.util.List<PartyBean> getReceiver()
void addReceiver(PartyBean receiver)
receiver
- java.util.Date getReportingBegin()
void setReportingBegin(java.util.Date date)
date
- java.util.Date getReportingEnd()
void setReportingEnd(java.util.Date date)
date
- java.util.List<TextTypeWrapper> getSource()
void addSource(TextTypeWrapper source)
source
- PartyBean getSender()
void setSender(PartyBean party)
party
- boolean isTest()
void setTest(boolean test)
test
- DatasetStructureReferenceBean getStructureById(java.lang.String structureId)
structureId
- java.util.List<DatasetStructureReferenceBean> getStructures()
void addStructure(DatasetStructureReferenceBean ref)