已避免使用的构造函数
说明
本主题列出已避免使用的构造函数。
“已避免使用的构造函数”表格
构造函数
说明
com.ptc.arbortext.windchill.siscore.operation.RawMetaDataSource.Property(String, String, String, String)
com.ptc.core.components.beans.ObjectBean()
改用 ObjectBean.newInstance()
支持的 API:false
com.ptc.core.components.beans.ObjectBean(NmCommandBean, NmCommandBean, HashMap<String, Object>, String)
改用 ObjectBean.newInstance(NmCommandBean, NmCommandBean, HashMap, String)
支持的 API:false
com.ptc.core.components.forms.DynamicNmContextRefreshInfo(NmContext, NmContext, DynamicRefreshInfo.Action)
com.ptc.core.components.forms.DynamicNmContextRefreshInfo(NmContext, NmContext, String)
com.ptc.core.components.forms.DynamicRefreshInfo(NmOid, NmOid, String)
com.ptc.core.components.forms.DynamicRefreshInfo(Persistable, Persistable, String)
com.ptc.core.components.forms.FormResult(FormProcessingStatus, FormResultAction)
(自 10.1 M010 版本起) 应从 FormProcessors 中移除对 FormResultAction 的使用。相反,FormProcessors 应返回受操作影响的 OID 列表 (如果存在),并让 UI 请求中显示的组件根据需要从服务器进行更新。改用 FormResult(FormProcessingStatus status) 构造函数。
com.ptc.core.foundation.vc.wip.common.CheckinToVaultFirstTimeCommand()
com.ptc.core.lwc.server.LWCNormalizedObject(TypeInstanceIdentifier, String, Locale, OperationIdentifier)
避免使用 LWCNormalizedObject,并计划在下一个版本中将其移除。改用 PersistableAdapter
支持的 API:true
com.ptc.core.lwc.server.LWCNormalizedObject(String, Locale, OperationIdentifier)
避免使用 LWCNormalizedObject,并计划在下一个版本中将其移除。改用 PersistableAdapter
支持的 API:true
com.ptc.core.lwc.server.LWCNormalizedObject(ObjectReference, String, Locale, OperationIdentifier)
避免使用 LWCNormalizedObject,并计划在下一个版本中将其移除。改用 PersistableAdapter
支持的 API:true
com.ptc.core.lwc.server.LWCNormalizedObject(Persistable, String, Locale, OperationIdentifier)
避免使用 LWCNormalizedObject,并计划在下一个版本中将其移除。改用 PersistableAdapter
支持的 API:true
com.ptc.core.ui.validation.UIValidationCriteria()
改用以下构造函数之一:UIValidationCriteria.newInstance() UIValidationCriteria.newInstance(NmCommandBean)
支持的 API:false
com.ptc.core.ui.validation.UIValidationFeedbackMsg()
改用以下方法:UIValidationFeedbackMsg.newInstance()
支持的 API:false
com.ptc.core.ui.validation.UIValidationFeedbackMsg(String, FeedbackType)
改用以下方法:UIValidationFeedbackMsg.newInstance(String, FeedbackType)
支持的 API:false
com.ptc.core.ui.validation.UIValidationKey()
改用 UIValidationKey.newInstance()
支持的 API:false
com.ptc.core.ui.validation.UIValidationKey(String)
改用 UIValidationKey.newInstance(String)
支持的 API:false
com.ptc.core.ui.validation.UIValidationKey(String, String)
改用 UIValidationKey.newInstance(String, String)
支持的 API:false
com.ptc.core.ui.validation.UIValidationKey(String, String, String)
改用 UIValidationKey.newInstance(String, String, String)
支持的 API:false
com.ptc.core.ui.validation.UIValidationResult()
改用以下方法:UIValidationResult.newInstance()
支持的 API:false
com.ptc.core.ui.validation.UIValidationResult(UIValidationKey, UIValidationStatus)
改用以下方法:UIValidationResult.newInstance(UIValidationKey, UIValidationStatus)
支持的 API:false
com.ptc.core.ui.validation.UIValidationResult(UIValidationKey, UIValidationStatus, WTReference)
改用以下方法:UIValidationResult.newInstance(UIValidationKey, UIValidationStatus, WTReference)
支持的 API:false
com.ptc.core.ui.validation.UIValidationResult(UIValidationKey, UIValidationStatus, WTReference, List<UIValidationFeedbackMsg>)
改用以下构造函数之一:
UIValidationResult.newInstance(UIValidationKey, UIValidationStatus, UIValidationFeedbackMsg)
UIValidationResult.newInstance(UIValidationKey, UIValidationStatus, List)
UIValidationResult.newInstance(UIValidationKey, UIValidationStatus, WTReference)
UIValidationResult.newInstance(UIValidationKey, UIValidationStatus, WTReference, UIValidationFeedbackMsg)
UIValidationResult.newInstance(UIValidationKey, UIValidationStatus, WTReference, List)
支持的 API:false
com.ptc.core.ui.validation.UIValidationResult(UIValidationKey, WTReference, UIValidationStatus, List<UIValidationFeedbackMsg>)
改用以下构造函数之一:
UIValidationResult.newInstance(UIValidationKey, UIValidationStatus, UIValidationFeedbackMsg)
UIValidationResult.newInstance(UIValidationKey, UIValidationStatus, List)
UIValidationResult.newInstance(UIValidationKey, UIValidationStatus, WTReference)
UIValidationResult.newInstance(UIValidationKey, UIValidationStatus, WTReference, UIValidationFeedbackMsg)
UIValidationResult.newInstance(UIValidationKey, UIValidationStatus, WTReference, List)
支持的 API:false
com.ptc.core.ui.validation.UIValidationResultSet()
改用以下构造函数之一:
UIValidationResultSet.newInstance()
UIValidationResultSet.newInstance(UIValidationResult)
支持的 API:false
com.ptc.netmarkets.model.NmOid(String)
改用 NmOid.newNmOid( String )
com.ptc.netmarkets.model.NmRemoteOid()
com.ptc.tml.log.TmlImportLog()
仅用于对象反序列化。
com.ptc.tml.log.TmlLog()
仅用于对象反序列化。
com.ptc.tml.log.TmlPackageLog()
仅用于对象反序列化。
com.ptc.windchill.associativity.reconciliation.ReconciliationContext()
com.ptc.windchill.enterprise.maturity.PromotionNoticeWorkflowHelper(PromotionNotice, boolean)
使用 PromotionNoticeWorkflowHelper(wt.maturity.PromotionNotice)
com.ptc.wvs.common.util.WVSProperties()
wt.admin.AdministrativeDomainManagerEvent(AdministrativeDomainManager, String, Object, AdminDomainRef, boolean)
wt.cache.CacheManager(String, int, RemoteCacheServer)
wt.clients.beans.query.WTQuery(String, String)
使用指定是否将状况区域显示为此组件的一部分的构造函数。
wt.clients.beans.query.WTSchema(String[], String[])
wt.clients.beans.query.WTSchema(String[], String[], String)
wt.clients.beans.query.WTSchema(String, String)
wt.clients.beans.query.WTSchema(String, WTContainer)
wt.clients.gui.ExceptionDialog(Component, boolean, Exception)
替换为接受抛出项而不是异常的 constructor
wt.clients.gui.ExceptionDialog(Component, boolean, Exception, String)
替换为接受抛出项而不是异常的 constructor
wt.clients.gui.ExceptionDialog(Component, String, boolean, Exception, String)
替换为接受抛出项而不是异常的 constructor
wt.clients.gui.ExceptionDialog(Frame, boolean, Exception, String)
替换为需要抛出项而不是异常的 constructor
wt.clients.gui.ExceptionDialog(Frame, String, boolean, Exception, String)
替换为接受抛出项而不是异常的 constructor
wt.clients.gui.FindDialog(Frame, boolean)
改用 wt.clients.beans.query.WTChooser dialog
wt.clients.gui.FindDialog(Frame, String, boolean)
改用 wt.clients.beans.query.WTChooser dialog
wt.clients.prodmgmt.PartItem(Part)
改用获取 wt.part.WTPart 对象的构造函数。
wt.clients.util.IconCache(WTContext)
在 R4 中,使用 no-arg constructor
wt.enterprise.FormActionDelegateFactory()
wt.fc.IconDelegateFactory()
使用 IconDelegateFactory.getInstance() 检索工厂的共享实例
wt.help.HelpLinkHelper()
改用 HelpLinkHelper.createHelpHREF(java.lang.String)
wt.help.HelpLinkHelper(String, String)
改用 HelpLinkHelper.createHelpHREF(java.lang.String)
wt.httpgw.LanguagePreference()
wt.inf.container.ContainerSpec(Class[], boolean)
wt.prefs.FilePrefEntry()
wt.prefs.FilePrefEntry(String, String, String, String, String)
wt.prefs.Preferences()
wt.prefs.Preferences(Preferences, String)
wt.prefs.WTPreferences()
wt.prefs.WTPreferences(Preferences, String)
wt.projmgmt.resource.Currency(double)
wt.query.AnalyticFunction()
wt.query.AnalyticFunction(String)
wt.query.KeywordExpression(String)
自 9.1 版本起,使用 Keyword.newKeywordExpression()
wt.query.QuerySpec(Class[])
自 6.0 版本起,使用 QuerySpec() and appendClassList(Class, boolean)
wt.query.QuerySpec(Class, Class, QuerySpec)
自 X05 版本起,使用 NavigateSpec(QuerySpec,String,Persistable)
wt.query.QuerySpec(String)
自 6.0 版本起,使用 QuerySpec(Class)
wt.query.SearchCondition(RelationalExpression, String, RelationalExpression, int, int)
自 6.0 版本起,使用 SearchCondition(RelationalExpression, String, RelationalExpression)setFromIndicies(int[], int)
wt.query.SQLFunction(String)
使用 newSQLFunction(String)
wt.query.SQLFunction(String, RelationalExpression)
使用 newSQLFunction(String, ColumnExpression[])
wt.query.SQLFunction(String, RelationalExpression, RelationalExpression)
使用 newSQLFunction(String, ColumnExpression[])
wt.templateutil.components.ActionLinkComponent(String)
wt.templateutil.components.HTMLComponentFactory()
wt.templateutil.components.HTMLTableCellComponent()
wt.templateutil.components.TreeIconComponent(boolean, boolean, boolean)
wt.templateutil.processor.AbstractHTMLTemplateFactory()
wt.templateutil.processor.DefaultHTMLTemplateFactory()
wt.templateutil.processor.FormTaskDelegateFactory()
wt.templateutil.processor.SubTemplateService(Properties, Locale, OutputStream)
wt.templateutil.processor.TutorialTemplateFactory()
wt.templateutil.table.ActionsTableColumn(int)
wt.templateutil.table.ColumnSortService(HTTPState)
wt.templateutil.table.HTMLTable(int, int)
wt.templateutil.table.HTMLTable(Vector, Vector, Locale)
wt.templateutil.table.HTMLTable(TableModel)
wt.templateutil.table.HTMLTable(TableModel, HTMLTableColumnModel)
wt.templateutil.table.HTMLTableColumn(int)
wt.templateutil.table.HTMLTableColumn(int, HTMLComponent)
wt.templateutil.table.TreeTableColumn(int)
wt.units.IncompatibleUnitsException(String)
wt.units.UnitFormatException(String)
wt.util.ProcessLauncher(String)
wt.util.ProcessLauncher(String, String[])
wt.util.ProcessLauncher(String, String[], Properties)
wt.visitor.ConfigSpecNodeExpander(ConfigSpec)
这对您有帮助吗?