Class DocTemplateAttributePopulator
java.lang.Object
com.ptc.core.components.forms.DefaultAttributePopulator
com.ptc.windchill.enterprise.doc.forms.DocTemplateAttributePopulator
- All Implemented Interfaces:
com.ptc.core.components.forms.AttributePopulator,Externalizable,Serializable
public class DocTemplateAttributePopulator
extends DefaultAttributePopulator
implements Serializable
Populator class for creating a document template.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from class com.ptc.core.components.forms.DefaultAttributePopulator
EXTERNALIZATION_VERSION_UID -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the list of attributes which are to be processed.protected voidsetAttribute(TypeInstance ti, AttributeIdentifier ai, Object value) Set the value specified against the attribute identifier in the TypeInstance.voidsetAttributeList(List<String> atts) Set the attribute list to process.Prepopulate the TypeInstance of the Document based on the search results.protected voidsetNewAttribute(TypeInstance ti, AttributeIdentifier ai, Object value) Set the value specified against the attribute identifier in the TypeInstance.Methods inherited from class com.ptc.core.components.forms.DefaultAttributePopulator
attemptToSetAttrValueFromFormData, getAllValueChangedAttributes, getAttrValueFromFormData, getContainerRef, getContainerRef, getFolderFromLaunchContext, isContainerOverridable, prePopulateAttributeDisplayValues, readExternal, setAttributeState, writeExternal
-
Method Details
-
getAttributeList
Retrieve the list of attributes which are to be processed.
Supported API: true- Returns:
- List <String> The list of attributes which require processing.
-
setAttributeList
Set the attribute list to process.
Supported API: true- Parameters:
atts- The attribute list to process
-
setAttribute
protected void setAttribute(TypeInstance ti, AttributeIdentifier ai, Object value) throws WTException Set the value specified against the attribute identifier in the TypeInstance. The value will only be set if the state of the attribute in the TypeInstance is set toState.UNINITIALIZEDorState.DEFAULT. Upon setting the value in the TypeInstance, the state of the attribute will be set toState.DEFAULT.
Supported API: true- Parameters:
ti- The type instance.ai- The attribute to set in the type instancevalue- The value to set to attribute in the type instance to.- Throws:
WTException
-
setNewAttribute
protected void setNewAttribute(TypeInstance ti, AttributeIdentifier ai, Object value) throws WTException Set the value specified against the attribute identifier in the TypeInstance. Upon setting the value in the TypeInstance, the state of the attribute will be set toState.NEW.
Supported API: true- Parameters:
ti- The type instance.ai- The attribute to set in the type instancevalue- The value to set for the attribute in the type instance.- Throws:
WTException
-
setAttributeValues
Prepopulate the TypeInstance of the Document based on the search results. If the launching point object is not a Document, this method will return the unmodified TypeInstance.
The following fields will be propagated:- Name
- Number
Supported API: true- Specified by:
setAttributeValuesin interfacecom.ptc.core.components.forms.AttributePopulator- Overrides:
setAttributeValuesin classDefaultAttributePopulator- Parameters:
ti- The type instance returned prior to creating attributes step.cb- The current command bean.- Returns:
- the modified type instance if the conditions above are satisfied.
-