Class System.TMWSpecification
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class System.TMWSpecification

java.lang.Object
   |
   +----System.TMWSpecification

public class TMWSpecification
extends Object
Performs manipulations of Teamware objects at the Specification level. Specifications are Categories with certain fields filled in with default data. Specifications inherit their behaviors from the parent Category and specify the data for the Instances.
See Also:
TMWFoundation, TMWTypes, TMWCategory, TMWInstance, TMWValue

Variable Index

 o ClassSpecification
 o Families
 o Multi
 o Shared
 o Single

Constructor Index

 o TMWSpecification()

Method Index

 o AddElement(Integer, String, String)
Add an element to a multiple element field.
 o CreateSpecification(String, Integer)
Create a new activity specification based on a category.
 o CreateSpecification(String, Vector)
Create a new activity specification based on a category.
 o DeleteSpec(Integer)
Delete the Specification.
 o GetFieldList(Integer, String)
Get the list of all fields in the specification in the given family.
 o GetMultiFieldValues(Integer, String)
Get the list of element values from a multi-field.
 o GetSharedFieldValue(Integer, String)
Get a single value that is shared across all Specifications based on the same Category.
 o GetSpecDescription(Integer)
Get the description of the Specification.
 o GetSpecId(String, String)
Get the object id of the activity spec.
 o GetSpecList(String)
Get the list of activity specifications based on the search criteria string, usually a list of substrings separated by '&'.
 o GetSpecName(Integer)
Get the name of the Specification.
 o RemoveElement(Integer, String, String)
 o SetMultiFieldElements(Integer, String, Vector)
Set a multiple element field to a list of variables.
 o SetSharedFieldValue(Integer, String, String)
Set a single value that is shared across all Specifications based on the same Category.
 o SetSpecDescription(Integer, String)
Set the description of a Specification.
 o SetSpecName(Integer, String)
Set the Specification name.

Variables

 o Shared
  public static String Shared
 o Single
  public static String Single
 o Multi
  public static String Multi
 o Families
  public static String Families
 o ClassSpecification
  public final static String ClassSpecification

Constructors

 o TMWSpecification
  public TMWSpecification()

Methods

 o CreateSpecification
  public static Integer CreateSpecification(String Name,
                                            Integer BasedOn)
Create a new activity specification based on a category.
Parameters:
Name - is the name of the specification to create.
BasedOn - is the Category id that specifies the object behaviors.
Returns:
s the object id of the new Specification.
 o CreateSpecification
  public static Integer CreateSpecification(String Name,
                                            Vector BasedOn)
Create a new activity specification based on a category. Multiple inheritance currently isn't enforced, so the Specification is just created using the first Category in the list, but calls to other behaviors of other Categories are still allowed.
Parameters:
Name - is the name of the specification to create.
BasedOn - is the list of Category ids that specifies the object behaviors.
Returns:
s the object id of the new Specification.
 o GetSpecList
  public static Vector GetSpecList(String SearchCriteria)
Get the list of activity specifications based on the search criteria string, usually a list of substrings separated by '&'.
Parameters:
SearchCriteria - a list of substrings separated by '&'.
Returns:
s the list of activity spec names.
 o GetSpecId
  public static Integer GetSpecId(String Name,
                                  String SpecType)
Get the object id of the activity spec.
Parameters:
Name - is the name of the Sepcification.
SpecType - is the base Category of the Specification.
Returns:
s the object id of the Specification.
 o GetSpecName
  public static String GetSpecName(Integer SpecId)
Get the name of the Specification.
Parameters:
SpecId - is the id of the Specification.
Returns:
s the name of the Specification.
 o GetSpecDescription
  public static String GetSpecDescription(Integer SpecId)
Get the description of the Specification.
Parameters:
SpecId - is the id of the Specification.
Returns:
s the textual description of the Specification.
 o SetSpecName
  public static void SetSpecName(Integer SpecId,
                                 String Name)
Set the Specification name.
Parameters:
SpecId - is the id of the Specification.
Name - is the name to set the Specification to.
 o SetSpecDescription
  public static void SetSpecDescription(Integer SpecId,
                                        String Description)
Set the description of a Specification.
Parameters:
SpecId - is the id of the Specification.
Description - is the description of the Specification.
 o DeleteSpec
  public static void DeleteSpec(Integer SpecId)
Delete the Specification.
Parameters:
SpecId - is the id of the Specification.
 o GetFieldList
  public static Vector GetFieldList(Integer SpecId,
                                    String Family)
Get the list of all fields in the specification in the given family.
Parameters:
SpecId - is the id of the Specification.
Family - is the name of the family of fields to retrieve.
Returns:
s a list of all fields within a given family.
 o GetSharedFieldValue
  public static String GetSharedFieldValue(Integer SpecId,
                                           String FieldName)
Get a single value that is shared across all Specifications based on the same Category.
Parameters:
SpecId - is the id of the Specification.
FieldName - is the shared field value to retrieve.
 o SetSharedFieldValue
  public static void SetSharedFieldValue(Integer SpecId,
                                         String FieldName,
                                         String FieldValue)
Set a single value that is shared across all Specifications based on the same Category.
Parameters:
SpecId - is the id of the Specification.
FieldName - is the name of the field to update.
FieldValue - is the value to assign to the field.
 o GetMultiFieldValues
  public static Vector GetMultiFieldValues(Integer SpecId,
                                           String FieldName)
Get the list of element values from a multi-field.
Parameters:
SpecId - is the id of the Specification.
FieldName - is the name of the multiple value field.
Returns:
s a list of multi-field element values.
 o SetMultiFieldElements
  public static void SetMultiFieldElements(Integer SpecId,
                                           String FieldName,
                                           Vector Elements)
Set a multiple element field to a list of variables.
Parameters:
SpecId - is the id of the Specification.
FieldName - is the name of the multiple element field to set.
Elements - are the values to set the field to.
 o AddElement
  public static void AddElement(Integer SpecId,
                                String FieldName,
                                String Element)
Add an element to a multiple element field.
Parameters:
SpecId - is the id of the Specification.
FieldName - is the name of the field to add the value to.
Element - is the element to add to the multiple element field.
 o RemoveElement
  public static void RemoveElement(Integer SpecId,
                                   String FieldName,
                                   String Element)

All Packages  Class Hierarchy  This Package  Previous  Next  Index