Skip navigation links
com.thortech.xl.gc.util
Class GCUtilities
java.lang.Object
com.thortech.xl.gc.util.GCUtilities
-
public class GCUtilities
- extends java.lang.Object
Method Summary |
boolean |
checkDateFormat(java.lang.String dateFormat)
This method checks the date format if it is valid then returns true otherwise returns false |
java.lang.String |
convertDateToTimeStamp(java.lang.String str_date, java.lang.String sourceDateFormat)
This method convert the date format to the Timestamp |
java.lang.String |
formatDate(java.lang.String date, java.lang.String dateFormat, java.lang.String sourceDateFormat)
This method returns the formatted date |
java.util.ArrayList |
getDateTypeFields(java.util.ArrayList dataSet, java.lang.String dataSetName, boolean childDataSet)
This method iterate all the OIMRecord fields(parent/child) and return the date type field in an arraylist. |
static void |
main(java.lang.String[] args)
|
void |
modifyDateFormat(java.util.ArrayList dateTypeFields, java.util.Map fields, java.lang.String sourceDateFormat, java.lang.String targetDateFormat)
This method iterate the dateTypeFields convert the date to the target date format and the converted field to Map |
boolean |
validateXML(java.lang.String xsdLocation, java.lang.String xsdName, java.lang.String xmlFile, boolean isFileSystem)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GCUtilities
public GCUtilities()
getDateTypeFields
public java.util.ArrayList getDateTypeFields(java.util.ArrayList dataSet,
java.lang.String dataSetName,
boolean childDataSet)
throws java.lang.Exception
- This method iterate all the OIMRecord fields(parent/child) and return the date type field in an arraylist.
-
- Parameters:
ArrayList
-
String
- Name of the child data set
boolean
- true in case of child data set otherwise false
- Returns:
- ArrayList Contains the date type fields
- Throws:
java.lang.Exception
checkDateFormat
public boolean checkDateFormat(java.lang.String dateFormat)
- This method checks the date format if it is valid then returns true otherwise returns false
-
- Parameters:
String
- dateFormat
- Returns:
- boolean
convertDateToTimeStamp
public java.lang.String convertDateToTimeStamp(java.lang.String str_date,
java.lang.String sourceDateFormat)
throws java.text.ParseException
- This method convert the date format to the Timestamp
-
- Parameters:
String
- str_date
String
- source Date Format
- Returns:
- String
- Throws:
java.text.ParseException
formatDate
public java.lang.String formatDate(java.lang.String date,
java.lang.String dateFormat,
java.lang.String sourceDateFormat)
throws java.text.ParseException
- This method returns the formatted date
-
- Parameters:
String
- date
String
- target date Format
String
- source Date Format
- Returns:
- String formatted date
- Throws:
java.text.ParseException
modifyDateFormat
public void modifyDateFormat(java.util.ArrayList dateTypeFields,
java.util.Map fields,
java.lang.String sourceDateFormat,
java.lang.String targetDateFormat)
throws java.text.ParseException
- This method iterate the dateTypeFields convert the date to the target date format and the converted field to Map
-
- Parameters:
ArrayList
- dateTypeFields
Map
- fields
String
- sourceDateFormat
String
- targetDateFormat
- Throws:
java.text.ParseException
validateXML
public boolean validateXML(java.lang.String xsdLocation,
java.lang.String xsdName,
java.lang.String xmlFile,
boolean isFileSystem)
throws XSDValidationException
-
- Throws:
XSDValidationException
main
public static void main(java.lang.String[] args)
-
- Parameters:
args
-
Skip navigation links
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.