|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.common.util.NamingAndNumberingPolicyHelper
Field Summary | |
static int |
AUTO_NUMBERING
|
private static String |
AUTOASSOCIATE_DROP_NAME_EXTENSION_PARAMETER
|
private static String |
AUTOASSOCIATE_DROP_NUMBER_EXTENSION_PARAMETER
|
private static String |
AUTOASSOCIATE_NAME_PARAMETER
|
private static String |
AUTOASSOCIATE_NUMBER_PARAMETER
|
static int |
CUSTOM
|
static int |
DEFAULT
|
static int |
NAME_DRIVEN
|
static int |
PARAMETER_DRIVEN
|
private static String |
PARAMETERS_SOURCE
|
private static String |
POLICY_SECTION
|
private static String |
UPLOAD_DROP_NAME_EXTENSION_PARAMETER
|
private static String |
UPLOAD_DROP_NUMBER_EXTENSION_PARAMETER
|
private static String |
UPLOAD_NAME_PARAMETER
|
private static String |
UPLOAD_NUMBER_PARAMETER
|
Constructor Summary | |
NamingAndNumberingPolicyHelper()
|
Method Summary | |
static String |
getAutoAssociateNameParameter()
Returns the parameter on the source object that should be used to set the name of the object being created in auto-associate |
static String |
getAutoAssociateNumberParameter()
Returns the parameter on the source object that should be used to set the number of the object being created in auto-associate |
static int |
getAutoAssociatePolicy(WTContainer container,
Class objectClass)
Returns the naming and numbering policy set for the specified container. |
static int |
getPolicy(WTContainer container,
Class objectClass)
Returns the naming and numbering policy set for the specified container. |
static String |
getUploadNameParameter()
Returns the model parameter that should be used to set the name of the EPMDocument being created in upload |
static String |
getUploadNumberParameter()
Returns the model parameter that should be used to set the number of the EPMDocument being created in upload |
static int |
getUploadPolicy(WTContainer container,
Class objectClass)
Returns the naming and numbering policy set for the specified container. |
static boolean |
isAutoAssociateDropNameFileExtension()
Checks if the file extension should be droped from the Name of newly created object during Auto-associate |
static boolean |
isAutoAssociateDropNumberFileExtension()
Checks if the file extension should be droped from the number of newly created object during Auto-associate |
private static boolean |
isAutoNumberingOn(WTContainer container,
Class objectClass)
|
private static boolean |
isCustom(WTContainer container,
Class objectClass)
|
static boolean |
isUploadDropNameFileExtension()
Checks if the file extension should be droped from the Name of the EPMDocument that is being created during upload |
static boolean |
isUploadDropNumberFileExtension()
Checks if the file extension should be droped from the Number of the EPMDocument that is being created during upload |
static void |
main(String[] args)
|
static String |
removeFileExtension(String string)
Removes the file extension from the string if it exists If it has a dot and 3 characters after the dot, the dot and these 3 characters will be removed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT
public static final int AUTO_NUMBERING
public static final int PARAMETER_DRIVEN
public static final int NAME_DRIVEN
public static final int CUSTOM
private static final String UPLOAD_NAME_PARAMETER
private static final String UPLOAD_NUMBER_PARAMETER
private static final String UPLOAD_DROP_NAME_EXTENSION_PARAMETER
private static final String UPLOAD_DROP_NUMBER_EXTENSION_PARAMETER
private static final String AUTOASSOCIATE_NAME_PARAMETER
private static final String AUTOASSOCIATE_NUMBER_PARAMETER
private static final String AUTOASSOCIATE_DROP_NAME_EXTENSION_PARAMETER
private static final String AUTOASSOCIATE_DROP_NUMBER_EXTENSION_PARAMETER
private static final String PARAMETERS_SOURCE
private static final String POLICY_SECTION
Constructor Detail |
public NamingAndNumberingPolicyHelper()
Method Detail |
public static int getPolicy(WTContainer container, Class objectClass) throws WTException
WTException
public static int getUploadPolicy(WTContainer container, Class objectClass) throws WTException
WTException
public static int getAutoAssociatePolicy(WTContainer container, Class objectClass) throws WTException
WTException
private static boolean isAutoNumberingOn(WTContainer container, Class objectClass) throws WTException
WTException
private static boolean isCustom(WTContainer container, Class objectClass) throws WTException
WTException
public static String getUploadNumberParameter()
public static String getUploadNameParameter()
public static String getAutoAssociateNumberParameter()
public static String getAutoAssociateNameParameter()
public static boolean isUploadDropNameFileExtension()
public static boolean isUploadDropNumberFileExtension()
public static boolean isAutoAssociateDropNameFileExtension()
public static boolean isAutoAssociateDropNumberFileExtension()
public static String removeFileExtension(String string)
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |