public interface RequirementCollection extends Remote
RequirementCollection
object.
BasePart
Modifier and Type | Interface and Description |
---|---|
static class |
RequirementCollection.SourceTypeOptions
This enum represents the type of external source where requirement is defined
|
Modifier and Type | Method and Description |
---|---|
RequirementBuilder |
createRequirementBuilder(Requirement requirement)
Creates a
RequirementBuilder
License requirements: None. |
Requirement |
findObject(String id)
Finds the
Requirement with the given identifier. |
void |
loadFromExternalSource(RequirementCollection.SourceTypeOptions sourceType,
String source,
String revision,
String project)
Loads
Requirement from external source. |
void |
refreshFromExternalSource(Requirement[] requirementTags)
Refreshes the requirements from external source.
|
String |
revisionRule()
Returns the revision rule for requirement from Teamcenter
License requirements: None. |
void |
setRevisionRule(String rule)
License requirements: None. |
RequirementBuilder createRequirementBuilder(Requirement requirement) throws NXException, RemoteException
requirement
- NXException
RemoteException
Requirement findObject(String id) throws NXException, RemoteException
Requirement
with the given identifier.
An exception will be thrown if no object can be found with given identifier.
id
- The identifier of the Requirement
Requirement
with the identifierNXException
RemoteException
void loadFromExternalSource(RequirementCollection.SourceTypeOptions sourceType, String source, String revision, String project) throws NXException, RemoteException
Requirement
from external source.
The source can be local file, Teamcenter requirement item or item revision, and Teamcenter spreadsheet dataset
for which the input sourceType is LocalFile, Teamcenter and TeamcenterFile respectively.
sourceType
- Type of the external sourcesource
- File full path if sourceType is LocalFile; Item id if sourceType is Teamcenter or TeamcenterFile.revision
- Only needed if sourceType is Teamcenter or TeamcenterFile. Revision id if source is an item revision. Null if source is an item.project
- Required if sourceType is LocalFile or TeamcenterFile.
Project name if the source is a XML file; Sheet name if source is a spreadsheet file.NXException
RemoteException
String revisionRule() throws NXException, RemoteException
NXException
RemoteException
void setRevisionRule(String rule) throws NXException, RemoteException
rule
- NXException
RemoteException
void refreshFromExternalSource(Requirement[] requirementTags) throws NXException, RemoteException
requirementTags
- NXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.