Class DefaultNewCadAttributesPopulatorDelegate
java.lang.Object
com.ptc.windchill.uwgm.cadx.newcaddoc.DefaultNewCadAttributesPopulatorDelegate
- All Implemented Interfaces:
NewCadAttributesPopulatorDelegate
public class DefaultNewCadAttributesPopulatorDelegate
extends Object
implements NewCadAttributesPopulatorDelegate
This is the default implementation for returning attributes in the new cad wizard and the design context wizard.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanGenerateRequiredAttributes(TypeIdentifier cadDocTypeIdentifier, Persistable contextObject, WTContainerRef container) Checks for whether the number has OIR set up to be generated.com.ptc.windchill.uwgm.aad.AuthAppDescriptorgetAuthAppDescriptor(NmCommandBean commandBean) Convenience method for use in customizing the filename and name.getFileName(EPMDocument epmDoc, NmCommandBean commandBean) First it returns either user's explicitly entered number or OIR computed number (in "as is" form without tampering with case) value explictiltyEnteredOrOirComputedNumber if it had been set in clientData.getFileNameLabel(NmCommandBean commandBean) Returns the cad document label for filename check box.getName(NmCommandBean commandBean) Returns the Configuration Context name as the name for this Design Context.getNumberCheckboxLabel(NmCommandBean commandBean) Returns the cad document label for number check box.
-
Method Details
-
getFileName
First it returns either user's explicitly entered number or OIR computed number (in "as is" form without tampering with case) value explictiltyEnteredOrOirComputedNumber if it had been set in clientData. Otherwise returns the cad document number from specified type instance. Note that number in type instance is always uppercased (number attribute is always auto upper cased in EPMDocument) when number is set to it. However, such uppercased number is not what we want to return back as default file name. This is why explictiltyEnteredOrOirComputedNumber value is returned by default.
Supported API: true- Specified by:
getFileNamein interfaceNewCadAttributesPopulatorDelegate- Parameters:
epmDoc- EPMDocumentcommandBean- NmCommandBean- Returns:
- The string to populate the file name value of the epm document.
-
getFileNameLabel
Returns the cad document label for filename check box.
Supported API: true- Specified by:
getFileNameLabelin interfaceNewCadAttributesPopulatorDelegate- Parameters:
commandBean- NmCommandBean- Returns:
- The string to populate after the checkbox on the design context wizard.
-
getName
Returns the Configuration Context name as the name for this Design Context.
Supported API: true- Specified by:
getNamein interfaceNewCadAttributesPopulatorDelegate- Parameters:
commandBean- NmCommandBean- Returns:
- String
-
getAuthAppDescriptor
public com.ptc.windchill.uwgm.aad.AuthAppDescriptor getAuthAppDescriptor(NmCommandBean commandBean) throws Exception Convenience method for use in customizing the filename and name.
Supported API: true- Throws:
Exception
-
canGenerateRequiredAttributes
public boolean canGenerateRequiredAttributes(TypeIdentifier cadDocTypeIdentifier, Persistable contextObject, WTContainerRef container) Checks for whether the number has OIR set up to be generated.
Supported API: true- Specified by:
canGenerateRequiredAttributesin interfaceNewCadAttributesPopulatorDelegate- Parameters:
cadDocTypeIdentifier- TypeIdentifiercontextObject- Persistablecontainer- WTContainerRef- Returns:
- boolean
-
getNumberCheckboxLabel
Returns the cad document label for number check box.- Specified by:
getNumberCheckboxLabelin interfaceNewCadAttributesPopulatorDelegate- Parameters:
commandBean-- Returns:
- name of number check box label
Supported API: true
-