|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.common.util.GeneralDocSpec
Field Summary | |
private static String |
CLASSNAME
|
private static int |
DOC_NAME_MAX_LIMIT
|
private static int |
MODEL_NAME_MAX_LIMIT
|
private static String |
RESOURCE
|
Constructor Summary | |
GeneralDocSpec()
|
Method Summary | |
boolean |
doesModelNameContainValidCharacters(String modelName,
String modelType)
checks whether the user entered valid CAD model name Supported API: false |
boolean |
doesModelNameExistInWorkspace(EPMWorkspace wsObj,
String modelName)
Checks whether any EPM document in the workspace has the given model name. |
int |
getModelNamesMaxSize()
Supported API: false |
int |
getNamesMaxSize()
Supported API: false |
int |
getNumbersMaxSize()
Supported API: false |
String |
getPrefFileSectionName()
This method returns name of the section in newdocument.ini preference file. |
boolean |
isFileNameChangeable(EPMDocument epmDocument)
|
boolean |
isModelExtensionValid(String modelName,
String modelType)
Validate extension (.prt, .asm etc.) as specified in this model name. |
boolean |
isModelNameSizeValid(String modelName)
Validate the size of the model name as for some of the documents (e.g. |
boolean |
isNameChangeable(EPMDocument epmDocument)
|
boolean |
isNameSizeValid(String name)
Validate the size of the document name. |
boolean |
isNumberChangeable(EPMDocument epmDocument)
|
boolean |
isNumberSizeValid(String number)
Validate the size of the document number. |
String |
validModelExtensions(String modelType)
Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final int MODEL_NAME_MAX_LIMIT
private static final int DOC_NAME_MAX_LIMIT
Constructor Detail |
public GeneralDocSpec()
Method Detail |
public boolean isModelNameSizeValid(String modelName)
CADDocSpecs
isModelNameSizeValid
in interface CADDocSpecs
modelName
-
public boolean doesModelNameContainValidCharacters(String modelName, String modelType)
CADDocSpecs
doesModelNameContainValidCharacters
in interface CADDocSpecs
modelName
- modelType
-
public int getModelNamesMaxSize()
CADDocSpecs
getModelNamesMaxSize
in interface CADDocSpecs
public boolean isModelExtensionValid(String modelName, String modelType)
CADDocSpecs
isModelExtensionValid
in interface CADDocSpecs
modelName
- modelType
-
public String validModelExtensions(String modelType)
CADDocSpecs
validModelExtensions
in interface CADDocSpecs
modelType
-
public boolean isNameSizeValid(String name)
CADDocSpecs
isNameSizeValid
in interface CADDocSpecs
name
-
public int getNamesMaxSize()
CADDocSpecs
getNamesMaxSize
in interface CADDocSpecs
public boolean isNumberSizeValid(String number)
CADDocSpecs
isNumberSizeValid
in interface CADDocSpecs
number
-
public int getNumbersMaxSize()
CADDocSpecs
getNumbersMaxSize
in interface CADDocSpecs
public String getPrefFileSectionName()
getPrefFileSectionName
in interface CADDocSpecs
public boolean doesModelNameExistInWorkspace(EPMWorkspace wsObj, String modelName) throws WTException
doesModelNameExistInWorkspace
in interface CADDocSpecs
wsObj
- modelName
-
WTException
public boolean isNumberChangeable(EPMDocument epmDocument)
isNumberChangeable
in interface CADDocSpecs
public boolean isNameChangeable(EPMDocument epmDocument)
isNameChangeable
in interface CADDocSpecs
public boolean isFileNameChangeable(EPMDocument epmDocument)
isFileNameChangeable
in interface CADDocSpecs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |