public final class AlternativeID
extends java.lang.Object
ALTERNATIVE-ID
XML element. This is intended for backwards
compatibility with older style identifiers in previous RIF standards.
It can be specified in any element that is a subclass of Identifiable
i.e., any element that contains
the @IDENTIFIABLE
attribute.
In cases where Identifiable::identifier
cannot be handled by a requirements authoring tool or ReqIF tool for any
reason, an AlternativeID
may be associated to provide a tool-consumable alternative identification. The value of
AlternativeID::identifier shall be globally unique.
ALTERNATIVE-ID
is an optional element but if provided, then the @IDENTIFIER
attribute must be specified.
Here is a sample of the XML layout specifically for SPEC-OBJECT
:
<SPEC-OBJECT IDENTIFIABLE="_1BD10296-9D4A-487C-937E-FB62E1423A67" LAST-CHANGE="2019-06-07T15:17:32Z">
<ALTERNATIVE-ID>
<ALTERNATIVE-ID IDENTIFIER="my_identifier"></ALTERNATIVE-ID>
</ALTERNATIVE-ID>
</SPEC-OBJECT>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIdentifier()
Gets the
ALTERNATIVE-ID element @IDENTIFIER XML attribute. |