public final class ReqIFHeader
extends java.lang.Object
REQ-IF-HEADER
element within a ReqIF file.
This header contains a number of child elements and takes the following form:
<REQ-IF-HEADER IDENTIFIER="...">
<COMMENT>...</COMMENT> xsd:string, optional
<CREATION-TIME>...</CREATION-TIME> xsd:dateTime, required
<REPOSITORY-ID>...</REPOSITORY-ID> xsd:string, optional
<REQ-IF-TOOL-ID>...</REQ-IF-TOOL-ID> xsd:string, required
<REQ-IF-VERSION>1.0</REQ-IF-VERSION> xsd:string, required
<SOURCE-TOOL-ID>...</SOURCE-TOOL-ID> xsd:string, required
<TITLE>...</TITLE> xsd:string, required
</REQ-IF-HEADER>
Constructor and Description |
---|
ReqIFHeader(ReqIFFile reqIFFile,
java.lang.String filename,
java.lang.String comment,
java.util.Date creationTime,
java.lang.String repositoryId,
java.lang.String reqIFToolId,
java.lang.String sourceToolId,
java.lang.String title,
java.lang.String reqIFIdentifier) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment()
Optional comment associated with the Exchange Document as a whole.
|
java.util.Date |
getCreationTime()
Gets the time of creation of the exchange XML document in the format of the XML Schema data type "dateTime" which
specifies the time format as CCYY-MM-DDThh:mm:ss with optional time zone indicator as a suffix ±hh:mm.
|
java.lang.String |
getCreationTimeText()
Gets the time of creation of the exchange XML document in the format of the XML Schema data type "dateTime" which
specifies the time format as CCYY-MM-DDThh:mm:ss with optional time zone indicator as a suffix ±hh:mm.
|
java.lang.String |
getIdentifier()
The ReqIF identifier (mandatory)
|
java.lang.String |
getRepositoryId()
Optional unique identifier of the repository containing the requirements that have been exported.
|
java.lang.String |
getReqIFToolId()
Identifier of the exporting ReqIF tool
|
java.lang.String |
getReqIFVersion()
ReqIF interchange format and protocol version.
|
java.lang.String |
getSourceToolId()
Identifier of the exporting requirements management tool (required)
|
java.lang.String |
getTitle()
Title of the Exchange Document.
|
void |
setComment(java.lang.String comment)
Sets the ReqIF comment to the supplied value.
|
void |
setCreationTime(java.util.Date creationTime)
Sets the time of creation of the exchange XML document in the format of the XML Schema data type "dateTime" which
specifies the time format as CCYY-MM-DDThh:mm:ss with optional time zone indicator as a suffix ±hh:mm.
|
void |
setCreationTimeText(java.lang.String creationTimeText)
Sets the time of creation of the exchange XML document in the format of the XML Schema data type "dateTime" which
specifies the time format as CCYY-MM-DDThh:mm:ss with optional time zone indicator as a suffix ±hh:mm.
|
void |
setCreationTimetoNow()
Sets the time of creation of the exchange XML document in the format of the XML Schema data type "dateTime" to
now.
|
void |
setIdentifier(java.lang.String reqIFIdentifier)
Sets the ReqIF identifier to the supplied value
|
void |
setRepositoryId(java.lang.String repositoryId)
Sets the Repository ID to the specified value
|
void |
setReqIFToolId(java.lang.String reqIFToolId)
Sets the ReqIF Tool Id.
|
void |
setSourceToolId(java.lang.String sourceToolId) |
void |
setTitle(java.lang.String title)
Sets the exchange document title.
|
public ReqIFHeader(ReqIFFile reqIFFile, java.lang.String filename, java.lang.String comment, java.util.Date creationTime, java.lang.String repositoryId, java.lang.String reqIFToolId, java.lang.String sourceToolId, java.lang.String title, java.lang.String reqIFIdentifier) throws InvalidIdentifierException, InvalidValueException
public java.lang.String getIdentifier()
public void setIdentifier(java.lang.String reqIFIdentifier) throws InvalidIdentifierException
reqIFIdentifier
- New ReqIF identifier conforming to xsd:IDInvalidIdentifierException
- if the identifier is null, blank or not conforming to XSD:ID rulespublic java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- the new comment to set, can be nullpublic java.lang.String getCreationTimeText()
public void setCreationTimeText(java.lang.String creationTimeText) throws InvalidDateTimeException
creationTimeText
- the new creation time to set, not nullInvalidDateTimeException
- if the supplied String value cannot be converted to a valid Calendar
public java.util.Date getCreationTime()
public void setCreationTime(java.util.Date creationTime)
creationTime
- the new Date
value to set for the creation time, not nullpublic void setCreationTimetoNow()
public java.lang.String getRepositoryId()
public void setRepositoryId(java.lang.String repositoryId)
repositoryId
- New Repository ID to setpublic java.lang.String getReqIFToolId()
public void setReqIFToolId(java.lang.String reqIFToolId) throws InvalidValueException
reqIFToolId
- the new ReqIF tool identifier to set, not nullInvalidValueException
- if the specified value is an empty Stringpublic java.lang.String getReqIFVersion()
public java.lang.String getSourceToolId()
public void setSourceToolId(java.lang.String sourceToolId) throws InvalidValueException
InvalidValueException
public java.lang.String getTitle()
public void setTitle(java.lang.String title) throws InvalidValueException
title
- the new exchange document title to set, not nullInvalidValueException
- if the specified value is an empty string