Package com.nomagic.requirements.util
Class MDCustomizationForRequirements
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation
-
- com.nomagic.requirements.util.MDCustomizationForRequirements
-
@OpenApiAll public class MDCustomizationForRequirements extends ProfileImplementation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MDCustomizationForRequirements.NumberingStyleEnum
static class
MDCustomizationForRequirements.NumberOwnerStereotype
static class
MDCustomizationForRequirements.RequirementTableStereotype
static class
MDCustomizationForRequirements.RequirementTermsStereotype
static class
MDCustomizationForRequirements.VerificationStatusStereotype
-
Nested classes/interfaces inherited from class com.nomagic.profiles.ProfileImplementation
ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NUMBERINGSTYLE_DATATYPE
static java.lang.String
NUMBERINGSTYLE_NESTED_LITERAL
static java.lang.String
NUMBERINGSTYLE_NORMAL_LITERAL
static java.lang.String
NUMBEROWNER_NUMBERINGSTYLE_PROPERTY
Deprecated.use NumberOwnerStereotype.NUMBERINGSTYLEstatic java.lang.String
NUMBEROWNER_PREFIX_PROPERTY
Deprecated.use NumberOwnerStereotype.PREFIXstatic java.lang.String
NUMBEROWNER_SEPARATOR_PROPERTY
Deprecated.use NumberOwnerStereotype.SEPARATORstatic java.lang.String
NUMBEROWNER_STEREOTYPE
Deprecated.use NumberOwnerStereotype.STEREOTYPE_NAMEstatic java.lang.String
PROFILE_NAME
static java.lang.String
PROFILE_URI
static java.lang.String
REQNUMBER_DATATYPE
static java.lang.String
REQUIREMENTTABLE_COLUMNSWIDTH_PROPERTY
Deprecated.use RequirementTableStereotype.COLUMNSWIDTHstatic java.lang.String
REQUIREMENTTABLE_CONTEXT_PROPERTY
Deprecated.use RequirementTableStereotype.CONTEXTstatic java.lang.String
REQUIREMENTTABLE_CUSTOMCOLUMNELEMENTS_PROPERTY
Deprecated.use RequirementTableStereotype.CUSTOMCOLUMNELEMENTSstatic java.lang.String
REQUIREMENTTABLE_SHOWCOLUMNS_PROPERTY
Deprecated.use RequirementTableStereotype.SHOWCOLUMNSstatic java.lang.String
REQUIREMENTTABLE_SHOWCONTEXT_PROPERTY
Deprecated.use RequirementTableStereotype.SHOWCONTEXTstatic java.lang.String
REQUIREMENTTABLE_SHOWCUSTOMCOLUMNS_PROPERTY
Deprecated.use RequirementTableStereotype.SHOWCUSTOMCOLUMNSstatic java.lang.String
REQUIREMENTTABLE_STEREOTYPE
Deprecated.use RequirementTableStereotype.STEREOTYPE_NAMEstatic java.lang.String
REQUIREMENTTERMS_STEREOTYPE
Deprecated.use RequirementTermsStereotype.STEREOTYPE_NAMEstatic java.lang.String
VERIFICATIONSTATUS_CONSTRAINT_PROPERTY
Deprecated.use VerificationStatusStereotype.CONSTRAINTstatic java.lang.String
VERIFICATIONSTATUS_MARGIN_PROPERTY
Deprecated.use VerificationStatusStereotype.MARGINstatic java.lang.String
VERIFICATIONSTATUS_REQUIREMENT_PROPERTY
Deprecated.use VerificationStatusStereotype.REQUIREMENTstatic java.lang.String
VERIFICATIONSTATUS_STATUS_PROPERTY
Deprecated.use VerificationStatusStereotype.STATUSstatic java.lang.String
VERIFICATIONSTATUS_STEREOTYPE
Deprecated.use VerificationStatusStereotype.STEREOTYPE_NAMEstatic java.lang.String
VERIFICATIONSTATUS_TIMESTAMP_PROPERTY
Deprecated.use VerificationStatusStereotype.TIMESTAMP
-
Constructor Summary
Constructors Constructor Description MDCustomizationForRequirements(com.nomagic.profiles.ProfileCache cache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.util.Collection<com.nomagic.profiles.ProfileImplementation.ProfileElementWrapper>
generatedGetAllElementWrappers()
protected java.util.Collection<Stereotype>
generatedGetAllStereotypes()
static MDCustomizationForRequirements
getInstance(BaseElement baseElement)
static MDCustomizationForRequirements
getInstanceByProject(com.nomagic.uml2.project.ElementProject project)
Enumeration
getNumberingStyle()
Stereotype
getNumberOwner()
Deprecated.use getInstance(element).numberOwner().getStereotype()DataType
getReqNumber()
Stereotype
getRequirementTable()
Deprecated.use getInstance(element).requirementTable().getStereotype()Stereotype
getRequirementTerms()
Deprecated.use getInstance(element).requirementTerms().getStereotype()Stereotype
getVerificationStatus()
Deprecated.use getInstance(element).verificationStatus().getStereotype()static boolean
isNumberOwner(Element element)
Deprecated.use NumberOwnerStereotype.isInstance(element)static boolean
isRequirementTable(Element element)
Deprecated.use RequirementTableStereotype.isInstance(element)static boolean
isRequirementTerms(Element element)
Deprecated.use RequirementTermsStereotype.isInstance(element)static boolean
isVerificationStatus(Element element)
Deprecated.use VerificationStatusStereotype.isInstance(element)MDCustomizationForRequirements.NumberOwnerStereotype
numberOwner()
MDCustomizationForRequirements.RequirementTableStereotype
requirementTable()
MDCustomizationForRequirements.RequirementTermsStereotype
requirementTerms()
MDCustomizationForRequirements.VerificationStatusStereotype
verificationStatus()
-
-
-
Field Detail
-
PROFILE_URI
public static final java.lang.String PROFILE_URI
- See Also:
- Constant Field Values
-
PROFILE_NAME
public static final java.lang.String PROFILE_NAME
- See Also:
- Constant Field Values
-
REQNUMBER_DATATYPE
public static final java.lang.String REQNUMBER_DATATYPE
- See Also:
- Constant Field Values
-
NUMBERINGSTYLE_DATATYPE
public static final java.lang.String NUMBERINGSTYLE_DATATYPE
- See Also:
- Constant Field Values
-
NUMBERINGSTYLE_NESTED_LITERAL
public static final java.lang.String NUMBERINGSTYLE_NESTED_LITERAL
- See Also:
- Constant Field Values
-
NUMBERINGSTYLE_NORMAL_LITERAL
public static final java.lang.String NUMBERINGSTYLE_NORMAL_LITERAL
- See Also:
- Constant Field Values
-
REQUIREMENTTABLE_STEREOTYPE
@Deprecated public static final java.lang.String REQUIREMENTTABLE_STEREOTYPE
Deprecated.use RequirementTableStereotype.STEREOTYPE_NAME- See Also:
- Constant Field Values
-
REQUIREMENTTABLE_COLUMNSWIDTH_PROPERTY
@Deprecated public static final java.lang.String REQUIREMENTTABLE_COLUMNSWIDTH_PROPERTY
Deprecated.use RequirementTableStereotype.COLUMNSWIDTH- See Also:
- Constant Field Values
-
REQUIREMENTTABLE_CONTEXT_PROPERTY
@Deprecated public static final java.lang.String REQUIREMENTTABLE_CONTEXT_PROPERTY
Deprecated.use RequirementTableStereotype.CONTEXTSpecify a Block or an Instance for the context-specific analysis of the Requirements verification using the Bounds, Property, Margin, and Value columns.- See Also:
- Constant Field Values
-
REQUIREMENTTABLE_CUSTOMCOLUMNELEMENTS_PROPERTY
@Deprecated public static final java.lang.String REQUIREMENTTABLE_CUSTOMCOLUMNELEMENTS_PROPERTY
Deprecated.use RequirementTableStereotype.CUSTOMCOLUMNELEMENTS- See Also:
- Constant Field Values
-
REQUIREMENTTABLE_SHOWCOLUMNS_PROPERTY
@Deprecated public static final java.lang.String REQUIREMENTTABLE_SHOWCOLUMNS_PROPERTY
Deprecated.use RequirementTableStereotype.SHOWCOLUMNS- See Also:
- Constant Field Values
-
REQUIREMENTTABLE_SHOWCONTEXT_PROPERTY
@Deprecated public static final java.lang.String REQUIREMENTTABLE_SHOWCONTEXT_PROPERTY
Deprecated.use RequirementTableStereotype.SHOWCONTEXTSet to true to show the Context box in the Criteria area of the table.- See Also:
- Constant Field Values
-
REQUIREMENTTABLE_SHOWCUSTOMCOLUMNS_PROPERTY
@Deprecated public static final java.lang.String REQUIREMENTTABLE_SHOWCUSTOMCOLUMNS_PROPERTY
Deprecated.use RequirementTableStereotype.SHOWCUSTOMCOLUMNS- See Also:
- Constant Field Values
-
REQUIREMENTTERMS_STEREOTYPE
@Deprecated public static final java.lang.String REQUIREMENTTERMS_STEREOTYPE
Deprecated.use RequirementTermsStereotype.STEREOTYPE_NAME- See Also:
- Constant Field Values
-
VERIFICATIONSTATUS_STEREOTYPE
@Deprecated public static final java.lang.String VERIFICATIONSTATUS_STEREOTYPE
Deprecated.use VerificationStatusStereotype.STEREOTYPE_NAME- See Also:
- Constant Field Values
-
VERIFICATIONSTATUS_CONSTRAINT_PROPERTY
@Deprecated public static final java.lang.String VERIFICATIONSTATUS_CONSTRAINT_PROPERTY
Deprecated.use VerificationStatusStereotype.CONSTRAINTThe related constraints of value specification.- See Also:
- Constant Field Values
-
VERIFICATIONSTATUS_MARGIN_PROPERTY
@Deprecated public static final java.lang.String VERIFICATIONSTATUS_MARGIN_PROPERTY
Deprecated.use VerificationStatusStereotype.MARGINRequirement margin- See Also:
- Constant Field Values
-
VERIFICATIONSTATUS_REQUIREMENT_PROPERTY
@Deprecated public static final java.lang.String VERIFICATIONSTATUS_REQUIREMENT_PROPERTY
Deprecated.use VerificationStatusStereotype.REQUIREMENTThe related requirement of value specification.- See Also:
- Constant Field Values
-
VERIFICATIONSTATUS_STATUS_PROPERTY
@Deprecated public static final java.lang.String VERIFICATIONSTATUS_STATUS_PROPERTY
Deprecated.use VerificationStatusStereotype.STATUSThe status of value specification.- See Also:
- Constant Field Values
-
VERIFICATIONSTATUS_TIMESTAMP_PROPERTY
@Deprecated public static final java.lang.String VERIFICATIONSTATUS_TIMESTAMP_PROPERTY
Deprecated.use VerificationStatusStereotype.TIMESTAMP- See Also:
- Constant Field Values
-
NUMBEROWNER_STEREOTYPE
@Deprecated public static final java.lang.String NUMBEROWNER_STEREOTYPE
Deprecated.use NumberOwnerStereotype.STEREOTYPE_NAME- See Also:
- Constant Field Values
-
NUMBEROWNER_NUMBERINGSTYLE_PROPERTY
@Deprecated public static final java.lang.String NUMBEROWNER_NUMBERINGSTYLE_PROPERTY
Deprecated.use NumberOwnerStereotype.NUMBERINGSTYLE- See Also:
- Constant Field Values
-
NUMBEROWNER_PREFIX_PROPERTY
@Deprecated public static final java.lang.String NUMBEROWNER_PREFIX_PROPERTY
Deprecated.use NumberOwnerStereotype.PREFIX- See Also:
- Constant Field Values
-
NUMBEROWNER_SEPARATOR_PROPERTY
@Deprecated public static final java.lang.String NUMBEROWNER_SEPARATOR_PROPERTY
Deprecated.use NumberOwnerStereotype.SEPARATOR- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static MDCustomizationForRequirements getInstance(BaseElement baseElement)
-
getInstanceByProject
public static MDCustomizationForRequirements getInstanceByProject(com.nomagic.uml2.project.ElementProject project)
-
requirementTable
public MDCustomizationForRequirements.RequirementTableStereotype requirementTable()
-
requirementTerms
public MDCustomizationForRequirements.RequirementTermsStereotype requirementTerms()
-
verificationStatus
public MDCustomizationForRequirements.VerificationStatusStereotype verificationStatus()
-
numberOwner
public MDCustomizationForRequirements.NumberOwnerStereotype numberOwner()
-
getReqNumber
public DataType getReqNumber()
-
getNumberingStyle
public Enumeration getNumberingStyle()
-
getRequirementTable
@Deprecated public Stereotype getRequirementTable()
Deprecated.use getInstance(element).requirementTable().getStereotype()A Requirements Table allows you to organize your requirements in a tabular form. As requirements are text-based, this table provides a convenient way for filling-in requirements' information using a spreadsheet-like tabular format, instead of limited-size boxes in a diagram. Each row in the table represents a requirement. The table columns represents the properties of each requirement in the table. With this table, you can:- Create new requirements directly in the table, or import the existing ones from your model to the table.
- Directly edit the properties of the requirements in the table.
- Directly generate requirement reports, renumber requirements' IDs, or export the table into CSV or HTML format.
There are 3 methods to add requirement(s) to the table:
1. Create a new requirement and add to the table.
- Click the "Add New" button on the table toolbar, and then select a requirement types you would like to create from the drop-down menu. The owner of the newly-created requirement will be similar to the owner of the table.
- To select a different owner, hold Shift and then select a requirement type from the drop-down menu.
- Shortcut: Insert (Cmd+I on MAC)
2. Create a new nested requirement and add to the table.
- Click the "Add Nested" button on the table toolbar while an existing requirement is highlighted in the table, and then select a requirement types you would like to create from the drop-down menu. The owner of the newly-created requirement will be the highlighted requirement.
- Alternatively, just right-click the requirement row in the table, and then select Add Nested option in the displayed shortcut menu.
- Shortcut: Alt+Insert (Alt+I on MAC).
3. Add existing requirement(s) to the table.
- Click "Add Existing" button. In the dialog, select requirement(s) already existed in your model to display it(them) in the table.
- Or, directly drag existing requirement(s) from a browser to the table.
- Shortcut: Ctrl+Insert (Cmd+E on MAC) Additional commands are available when right-click on a cell in the table.
- Returns:
- stereotype
-
isRequirementTable
@Deprecated public static boolean isRequirementTable(@CheckForNull Element element)
Deprecated.use RequirementTableStereotype.isInstance(element)
-
getRequirementTerms
@Deprecated public Stereotype getRequirementTerms()
Deprecated.use getInstance(element).requirementTerms().getStereotype()
-
isRequirementTerms
@Deprecated public static boolean isRequirementTerms(@CheckForNull Element element)
Deprecated.use RequirementTermsStereotype.isInstance(element)
-
getVerificationStatus
@Deprecated public Stereotype getVerificationStatus()
Deprecated.use getInstance(element).verificationStatus().getStereotype()This stereotype is created by Cameo Simulation Toolkit plugin for tracing the last result of constraint verification.- Returns:
- stereotype
-
isVerificationStatus
@Deprecated public static boolean isVerificationStatus(@CheckForNull Element element)
Deprecated.use VerificationStatusStereotype.isInstance(element)
-
getNumberOwner
@Deprecated public Stereotype getNumberOwner()
Deprecated.use getInstance(element).numberOwner().getStereotype()
-
isNumberOwner
@Deprecated public static boolean isNumberOwner(@CheckForNull Element element)
Deprecated.use NumberOwnerStereotype.isInstance(element)
-
generatedGetAllElementWrappers
protected java.util.Collection<com.nomagic.profiles.ProfileImplementation.ProfileElementWrapper> generatedGetAllElementWrappers()
-
generatedGetAllStereotypes
protected java.util.Collection<Stereotype> generatedGetAllStereotypes()
-
-