com.ptc.wgmecad
Class SecondaryArgumentRegister

java.lang.Object
  extended bycom.ptc.wgmecad.SecondaryArgumentRegister

public class SecondaryArgumentRegister
extends Object


Field Summary
static String attributePrefix
           
private static String[] attributeReceive
           
private static String[] attributeSend
           
private static String[] attributeTypes
           
static String boardDirectoryArgument
           
static String BOMPartNameValueArgument
           
static String BOMPartNumberValueArgument
           
static String BOMQuantityValueArgument
           
static String BOMRefDesValueArgument
           
static String bomReportNameArgument
           
static String BrdLocArgument
           
static String cagecodeOnArgument
           
static String cagecodePrefix
           
static String cagecodeSeperatorArgument
           
static String configPrefix
           
private static String configurationDelim
           
static int COUNT_CONFIGURATIONCOLUMNS
           
static int COUNT_CONFIGURATIONSTATUSCOLUMNS
           
static String designDirectoryArgument
           
static String DesignLocArgument
           
static String DirectoryArgument
           
private static String[] epmDocTypes
           
static String favoritesPrefix
           
static String[] fileLocationTypes
           
private static String[] functions
           
static String generateBOMfromSchematic
           
static String hookPrefix
           
private static String[] hookTiming
           
static int INDEX_EPMDESCRIBES
           
static int INDEX_FILEGROUPNAME
           
static int INDEX_FILEPARENTDIR
           
static int INDEX_FILEPATTERN
           
static int INDEX_FILESIZE
           
static int INDEX_FILESTATUS
           
static int INDEX_VALUEDEFAULT
           
static int INDEX_VALUEEPMDOC
           
static int INDEX_VALUELOCKED
           
private static SecondaryArgumentRegister instance
           
(package private) static org.apache.log4j.Logger logger
           
static String regenerateBomArgument
           
static String regenerateBomThisTimeArgument
           
static String schematicDirectoryArgument
           
static String SchLocArgument
           
static String serverNameArgument
           
static String setupArgument
           
static String tempBrdDirArgument
           
static String tempDnDirArgument
           
static String tempSchDirArgument
           
static String toggleVisArgument
           
static String toggleVisReuseArgument
           
static String variantBomThisTimeArgument
           
 
Constructor Summary
private SecondaryArgumentRegister()
           
 
Method Summary
static Argument getArgumentFromExpandedAttribute(Object[] attr)
           
static Argument getArgumentFromExpandedConfig(Object[] attr, int idx)
           
static String getArgumentFromExpandedConfigStatus(Object[] attr, int idx)
           
private static String[] getEveryOtherElement(String[] arr, int offset)
          returns an array composed of every other element of the array arr passed in, offset by offset.
static String getExcludeArgForFile(String f)
           
static Object[] getExpandedArgument(Argument arg, String prefix)
          returns values thru the arguments function and when - these are assumed to be empty when passed to the function.
private  Object[][] getExpandedArguments(String prefix)
           
 Object[][] getExpandedAttributeArguments()
           
static Object[] getExpandedAttributeDefault()
          Same format return value as getExpandedAttributeArguments()
 Object[][] getExpandedConfigurationArguments()
           
 Object[][] getExpandedFileLocationsArguments()
           
 Object[][] getExpandedHookArguments()
          returns a two dimensional array - in the form: { {func1, when1, exe1, parameter1}, {func2, when2, exe2, parameter2}, ...
static Object[] getExpandedHookDefault()
          Same format return value as getExpandedHookArguments()
 String getHookArgument(String function, String when)
           
 String getHookArgumentOrig(String function, String when)
           
static SecondaryArgumentRegister getInstance()
           
static String getLongForm(String abbrev, String[] list)
          Get the long form for an abbreviation of a string based on an array of strings of the form: , , , ...
static String getShortForm(String longForm, String[] list)
          Get the abbreviation for the long form of a string based on an array of strings of the form: , , , ...
static String[] getValidAttributeTypes()
           
static String[] getValidEPMDocs()
           
static String[] getValidHookFunctions()
           
static String[] getValidHookWhen()
           
static boolean isValidHookArgument(String arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverNameArgument

public static final String serverNameArgument

BOMPartNameValueArgument

public static final String BOMPartNameValueArgument

BOMPartNumberValueArgument

public static final String BOMPartNumberValueArgument

BOMQuantityValueArgument

public static final String BOMQuantityValueArgument

BOMRefDesValueArgument

public static final String BOMRefDesValueArgument

toggleVisArgument

public static final String toggleVisArgument

toggleVisReuseArgument

public static final String toggleVisReuseArgument

cagecodeOnArgument

public static final String cagecodeOnArgument

cagecodeSeperatorArgument

public static final String cagecodeSeperatorArgument

regenerateBomArgument

public static final String regenerateBomArgument

regenerateBomThisTimeArgument

public static final String regenerateBomThisTimeArgument

variantBomThisTimeArgument

public static final String variantBomThisTimeArgument

bomReportNameArgument

public static final String bomReportNameArgument

generateBOMfromSchematic

public static final String generateBOMfromSchematic

setupArgument

public static final String setupArgument

hookPrefix

public static final String hookPrefix

attributePrefix

public static final String attributePrefix

configPrefix

public static final String configPrefix

favoritesPrefix

public static final String favoritesPrefix

cagecodePrefix

public static final String cagecodePrefix

COUNT_CONFIGURATIONCOLUMNS

public static final int COUNT_CONFIGURATIONCOLUMNS
See Also:
Constant Field Values

COUNT_CONFIGURATIONSTATUSCOLUMNS

public static final int COUNT_CONFIGURATIONSTATUSCOLUMNS
See Also:
Constant Field Values

INDEX_VALUELOCKED

public static final int INDEX_VALUELOCKED
See Also:
Constant Field Values

INDEX_VALUEDEFAULT

public static final int INDEX_VALUEDEFAULT
See Also:
Constant Field Values

INDEX_VALUEEPMDOC

public static final int INDEX_VALUEEPMDOC
See Also:
Constant Field Values

INDEX_FILEGROUPNAME

public static final int INDEX_FILEGROUPNAME
See Also:
Constant Field Values

INDEX_FILEPARENTDIR

public static final int INDEX_FILEPARENTDIR
See Also:
Constant Field Values

INDEX_FILEPATTERN

public static final int INDEX_FILEPATTERN
See Also:
Constant Field Values

INDEX_EPMDESCRIBES

public static final int INDEX_EPMDESCRIBES
See Also:
Constant Field Values

INDEX_FILESTATUS

public static final int INDEX_FILESTATUS
See Also:
Constant Field Values

INDEX_FILESIZE

public static final int INDEX_FILESIZE
See Also:
Constant Field Values

DirectoryArgument

public static final String DirectoryArgument

designDirectoryArgument

public static final String designDirectoryArgument

schematicDirectoryArgument

public static final String schematicDirectoryArgument

boardDirectoryArgument

public static final String boardDirectoryArgument

tempDnDirArgument

public static final String tempDnDirArgument

tempSchDirArgument

public static final String tempSchDirArgument

tempBrdDirArgument

public static final String tempBrdDirArgument

SchLocArgument

public static final String SchLocArgument

BrdLocArgument

public static final String BrdLocArgument

DesignLocArgument

public static final String DesignLocArgument

logger

static org.apache.log4j.Logger logger

instance

private static SecondaryArgumentRegister instance

fileLocationTypes

public static final String[] fileLocationTypes

configurationDelim

private static final String configurationDelim
See Also:
Constant Field Values

functions

private static final String[] functions

hookTiming

private static final String[] hookTiming

attributeTypes

private static final String[] attributeTypes

epmDocTypes

private static final String[] epmDocTypes

attributeReceive

private static final String[] attributeReceive

attributeSend

private static final String[] attributeSend
Constructor Detail

SecondaryArgumentRegister

private SecondaryArgumentRegister()
Method Detail

getInstance

public static SecondaryArgumentRegister getInstance()

getValidHookFunctions

public static String[] getValidHookFunctions()

getValidHookWhen

public static String[] getValidHookWhen()

getValidEPMDocs

public static String[] getValidEPMDocs()

getValidAttributeTypes

public static String[] getValidAttributeTypes()

isValidHookArgument

public static boolean isValidHookArgument(String arg)

getEveryOtherElement

private static String[] getEveryOtherElement(String[] arr,
                                             int offset)
returns an array composed of every other element of the array arr passed in, offset by offset. offset should be either 0 or 1, and arr should have an even number of elements.


getShortForm

public static String getShortForm(String longForm,
                                  String[] list)
                           throws InvalidArgumentException
Get the abbreviation for the long form of a string based on an array of strings of the form: , , , ... returns null if the long form is unknown.

Throws:
InvalidArgumentException

getLongForm

public static String getLongForm(String abbrev,
                                 String[] list)
                          throws InvalidArgumentException
Get the long form for an abbreviation of a string based on an array of strings of the form: , , , ... return null if the abbreviation is unknown.

Throws:
InvalidArgumentException

getHookArgumentOrig

public String getHookArgumentOrig(String function,
                                  String when)
                           throws InvalidArgumentException
Throws:
InvalidArgumentException

getHookArgument

public String getHookArgument(String function,
                              String when)
                       throws InvalidArgumentException
Throws:
InvalidArgumentException

getExpandedArgument

public static Object[] getExpandedArgument(Argument arg,
                                           String prefix)
                                    throws InvalidArgumentException
returns values thru the arguments function and when - these are assumed to be empty when passed to the function.

Throws:
InvalidArgumentException

getArgumentFromExpandedConfig

public static Argument getArgumentFromExpandedConfig(Object[] attr,
                                                     int idx)

getArgumentFromExpandedConfigStatus

public static String getArgumentFromExpandedConfigStatus(Object[] attr,
                                                         int idx)

getArgumentFromExpandedAttribute

public static Argument getArgumentFromExpandedAttribute(Object[] attr)

getExpandedHookDefault

public static Object[] getExpandedHookDefault()
Same format return value as getExpandedHookArguments()


getExpandedAttributeDefault

public static Object[] getExpandedAttributeDefault()
                                            throws InvalidArgumentException
Same format return value as getExpandedAttributeArguments()

Throws:
InvalidArgumentException

getExpandedConfigurationArguments

public Object[][] getExpandedConfigurationArguments()

getExpandedArguments

private Object[][] getExpandedArguments(String prefix)

getExpandedAttributeArguments

public Object[][] getExpandedAttributeArguments()

getExpandedHookArguments

public Object[][] getExpandedHookArguments()
returns a two dimensional array - in the form: { {func1, when1, exe1, parameter1}, {func2, when2, exe2, parameter2}, ... {funcN, whenN, exeN, parameterN} }


getExpandedFileLocationsArguments

public Object[][] getExpandedFileLocationsArguments()

getExcludeArgForFile

public static String getExcludeArgForFile(String f)