|
Open Business Objects for EDI v3.6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.americancoders.util.Util
class of utility routines
| Field Summary | |
static java.lang.String |
baseDirectory
used by transactionsetfactor |
static java.lang.String |
checkPropertyFileForChanges
test to see user wants property file reread if its timestamp has changed since last read. |
static java.lang.String |
doPrevalidate
used to indicate if the first mandatory idlist object should be used like a primary key and therefore allow for prevalidation |
static java.lang.String |
errorLevelToReport
used solely by DocumentErrors and XMLError classes |
static java.lang.String |
lineFeed
line separator character used by local operating system. |
static java.lang.String |
realNumbersRetainPrecision
test to see if Real Data elements should maintain the precision based on how the fields was initially set. |
static java.lang.String |
searchDirective
used by transactionsetfactor |
static java.lang.String |
throwParsingException
used to indicate if the parser should throw an exception when it complete parsing and there is an exception |
static java.lang.String |
useNamespace
used by transactionsetfactor |
static java.lang.String |
useObject
used to indicate if the transactionset and evelope factory classes should use the object file form of the object being built or to always build from the xml rules file. |
static java.lang.String |
validCharacterSet
|
static java.lang.String |
xmlPath
used to find path/location of rules files |
| Constructor Summary | |
Util()
|
|
| Method Summary | |
static void |
closeOBOEProperty()
use this if you need to reset the property file which is usually left open |
static void |
copyFile(java.lang.String inputFile,
java.lang.String outputFile)
copy file using string file name |
static java.lang.String |
currentDate()
|
static java.lang.String |
currentTime()
|
static void |
deepCopy(java.io.Externalizable fromObj,
java.io.Externalizable toObj)
returns a deep copy of an object JavaWorld Javatip 76 by Dave Miller http://www.javaworld.com/javaworld/javatips/jw-javatip76.html |
static java.lang.String |
denormalizeNonUnicode(java.lang.String inString)
normlizes the string to replace NonUnicode characters. |
static java.lang.String |
getCES()
gets and returns the x12 composite element seperator character |
static java.lang.String |
getOBOEProperty(java.lang.String inString)
|
static java.lang.String |
getXMLPath()
returns the xmlPath directive in OBOE.properties file |
static boolean |
isInteger(java.lang.String arg)
somewhat like Character.isDigit expect checks whole string and only checks roman characters |
static boolean |
isLog4JNotConfigured()
Returns true if it appears that log4j have been previously configured. |
static int |
isValidForCharacterSet(java.lang.String arg)
checks to see if string is valid depending on OBOE.properties "validCharacters" If property is not defined then always returns -1, all are valid. |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
normalize(java.lang.String inString)
normlizes the string to remove XML characters. |
static java.lang.String |
normalizeNonUnicode(java.lang.String inString)
normlizes the string to remove NonUnicode characters. |
static boolean |
propertyFileIndicatesDoPrevalidate()
routine to test to see if we want to do the prevalidation logic prevalidation is the function of segments to check to see if there valid by the first id code field in the container |
static boolean |
propertyFileIndicatesRealNumbersRetainPrecision()
routine to test to see if Real Data elements should maintain the precision based on how the fields was initially set. |
static boolean |
propertyFileIndicatesThrowParsingException()
routine to test to see if parsers should throw exceptions or based on property in OBOE.properties file "throwParsingException" |
static boolean |
propertyFileIndicatesUseObject()
routine to test to see if parsers allows try to use object files based on property in OBOE.properties file "useObject" |
static java.io.Reader |
removeCRLFFromReader(java.io.Reader inReader)
input blocked data. |
static java.io.InputStream |
removeCRLFFromStream(java.io.InputStream inIS)
input blocked data. |
static void |
resetValids()
used by junit tests |
static java.lang.String |
rightTrim(java.lang.String inString)
removes trailing spaces |
static java.lang.String |
searchForFile(java.lang.String inFilename,
java.lang.String inStopAtDir)
starting with the full file name search down the specified absolute path to find the file |
static void |
setOBOEProperty(java.lang.String inName,
java.lang.String inValue)
|
static void |
setServletContextPath(java.lang.String inPath)
|
static java.lang.String |
unEscape(java.lang.String inString,
java.lang.String inEscString)
removes escape characters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String xmlPath
public static final java.lang.String errorLevelToReport
public static final java.lang.String searchDirective
public static final java.lang.String baseDirectory
public static final java.lang.String useNamespace
public static final java.lang.String throwParsingException
public static final java.lang.String doPrevalidate
public static final java.lang.String useObject
public static final java.lang.String realNumbersRetainPrecision
public static final java.lang.String checkPropertyFileForChanges
public static final java.lang.String validCharacterSet
public static final java.lang.String lineFeed
| Constructor Detail |
public Util()
| Method Detail |
public static void setServletContextPath(java.lang.String inPath)
public static java.lang.String currentDate()
public static java.lang.String currentTime()
public static java.lang.String normalize(java.lang.String inString)
inString - to be normalized
public static java.lang.String normalizeNonUnicode(java.lang.String inString)
inString - to be normalized
public static java.lang.String denormalizeNonUnicode(java.lang.String inString)
inString - to be normalized
public static java.lang.String unEscape(java.lang.String inString,
java.lang.String inEscString)
inString - inEscString -
public static java.lang.String searchForFile(java.lang.String inFilename,
java.lang.String inStopAtDir)
inFilename - - String, full path name for fileinStopAtDir - - String, stop looking after reaching this directory.
OBOEException - - file not foundpublic static boolean propertyFileIndicatesThrowParsingException()
public static boolean propertyFileIndicatesDoPrevalidate()
public static void copyFile(java.lang.String inputFile,
java.lang.String outputFile)
throws java.io.IOException
inputFile - outputFile -
java.io.IOExceptionpublic static boolean propertyFileIndicatesUseObject()
public static boolean propertyFileIndicatesRealNumbersRetainPrecision()
public static java.lang.String getXMLPath()
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String rightTrim(java.lang.String inString)
inString -
public static void setOBOEProperty(java.lang.String inName,
java.lang.String inValue)
public static java.lang.String getOBOEProperty(java.lang.String inString)
throws java.io.IOException
java.io.IOExceptionpublic static void closeOBOEProperty()
public static java.lang.String getCES()
public static java.io.InputStream removeCRLFFromStream(java.io.InputStream inIS)
throws java.io.IOException
inIS - InputStream object
java.io.IOException
public static java.io.Reader removeCRLFFromReader(java.io.Reader inReader)
throws java.io.IOException
inReader - Reader object
java.io.IOExceptionpublic static void main(java.lang.String[] args)
public static boolean isLog4JNotConfigured()
public static void deepCopy(java.io.Externalizable fromObj,
java.io.Externalizable toObj)
fromObj - toObj - public static boolean isInteger(java.lang.String arg)
arg -
public static void resetValids()
public static int isValidForCharacterSet(java.lang.String arg)
arg - String
java.io.IOException
|
Open Business Objects for EDI v3.6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||