Package network.oxalis.sniffer
Class PeppolStandardBusinessHeader
- java.lang.Object
-
- network.oxalis.sniffer.PeppolStandardBusinessHeader
-
public class PeppolStandardBusinessHeader extends Object
Our representation of the SBDH (Standard Business Document Header), which makes us independent of the StandardBusinessDocumentHeader generated by JAXB. Furthermore the UN/CEFACT SBDH is kind of awkward to use as some of the elements of interest to us, are split into several fields.- Author:
- steinar, thore
-
-
Constructor Summary
Constructors Constructor Description PeppolStandardBusinessHeader()Empty constructor, no defaults - all must be supplied by userPeppolStandardBusinessHeader(PeppolStandardBusinessHeader peppolStandardBusinessHeader)Copy constructorPeppolStandardBusinessHeader(network.oxalis.vefa.peppol.common.model.Header header)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static PeppolStandardBusinessHeadercreatePeppolStandardBusinessHeaderWithNewDate()Set the time to current and makes a random TransmissionIdentifier as defaultDategetCreationDateAndTime()network.oxalis.vefa.peppol.common.model.DocumentTypeIdentifiergetDocumentTypeIdentifier()InstanceIdgetInstanceId()network.oxalis.vefa.peppol.common.model.ProcessIdentifiergetProfileTypeIdentifier()network.oxalis.vefa.peppol.common.model.ParticipantIdentifiergetRecipientId()network.oxalis.vefa.peppol.common.model.ParticipantIdentifiergetSenderId()booleanisComplete()Do we have enough transport details to send the message?List<String>listMissingProperties()Returns a list of property names that are still missing.voidsetCreationDateAndTime(Date creationDateAndTime)voidsetDocumentTypeIdentifier(PeppolDocumentTypeId documentTypeIdentifier)Deprecated.voidsetDocumentTypeIdentifier(network.oxalis.vefa.peppol.common.model.DocumentTypeIdentifier documentTypeIdentifier)voidsetInstanceId(InstanceId instanceId)voidsetProfileTypeIdentifier(network.oxalis.vefa.peppol.common.model.ProcessIdentifier processIdentifier)voidsetRecipientId(network.oxalis.vefa.peppol.common.model.ParticipantIdentifier recipientId)voidsetSenderId(network.oxalis.vefa.peppol.common.model.ParticipantIdentifier senderId)network.oxalis.vefa.peppol.common.model.HeadertoVefa()
-
-
-
Constructor Detail
-
PeppolStandardBusinessHeader
public PeppolStandardBusinessHeader()
Empty constructor, no defaults - all must be supplied by user
-
PeppolStandardBusinessHeader
public PeppolStandardBusinessHeader(network.oxalis.vefa.peppol.common.model.Header header)
-
PeppolStandardBusinessHeader
public PeppolStandardBusinessHeader(PeppolStandardBusinessHeader peppolStandardBusinessHeader)
Copy constructor
-
-
Method Detail
-
createPeppolStandardBusinessHeaderWithNewDate
public static PeppolStandardBusinessHeader createPeppolStandardBusinessHeaderWithNewDate()
Set the time to current and makes a random TransmissionIdentifier as default
-
isComplete
public boolean isComplete()
Do we have enough transport details to send the message?- Returns:
- true if transport details are complete.
-
listMissingProperties
public List<String> listMissingProperties()
Returns a list of property names that are still missing.- Returns:
- empty list if headers are complete
-
setRecipientId
public void setRecipientId(network.oxalis.vefa.peppol.common.model.ParticipantIdentifier recipientId)
-
getRecipientId
public network.oxalis.vefa.peppol.common.model.ParticipantIdentifier getRecipientId()
-
setSenderId
public void setSenderId(network.oxalis.vefa.peppol.common.model.ParticipantIdentifier senderId)
-
getSenderId
public network.oxalis.vefa.peppol.common.model.ParticipantIdentifier getSenderId()
-
setInstanceId
public void setInstanceId(InstanceId instanceId)
-
getInstanceId
public InstanceId getInstanceId()
-
setCreationDateAndTime
public void setCreationDateAndTime(Date creationDateAndTime)
-
getCreationDateAndTime
public Date getCreationDateAndTime()
-
setDocumentTypeIdentifier
@Deprecated public void setDocumentTypeIdentifier(PeppolDocumentTypeId documentTypeIdentifier)
Deprecated.
-
setDocumentTypeIdentifier
public void setDocumentTypeIdentifier(network.oxalis.vefa.peppol.common.model.DocumentTypeIdentifier documentTypeIdentifier)
-
getDocumentTypeIdentifier
public network.oxalis.vefa.peppol.common.model.DocumentTypeIdentifier getDocumentTypeIdentifier()
-
setProfileTypeIdentifier
public void setProfileTypeIdentifier(network.oxalis.vefa.peppol.common.model.ProcessIdentifier processIdentifier)
-
getProfileTypeIdentifier
public network.oxalis.vefa.peppol.common.model.ProcessIdentifier getProfileTypeIdentifier()
-
toVefa
public network.oxalis.vefa.peppol.common.model.Header toVefa()
-
-