Class EDITransactionSetFactory
java.lang.Object
com.onenetwork.platform.integ.edi.EDITransactionSetFactory
public class EDITransactionSetFactory
extends java.lang.Object
Platform wrapper around OBOE TransactionSetFactory. Do not use TransactionSetFactory directly,
use this class instead.
-
Constructor Summary
Constructors Constructor Description EDITransactionSetFactory()
-
Method Summary
Modifier and Type Method Description static com.americancoders.edi.TransactionSet
buildTransactionSet(java.lang.String inTSID)
Use the default searchDirective to look for the rules file.static com.americancoders.edi.TransactionSet
buildTransactionSet(java.lang.String inTSID, java.lang.String inSearchDirective, java.lang.String inVersionDirectory, java.lang.String inReceiverIDDirectory, java.lang.String inSenderIDDirectory, java.lang.String inTestOrProductionDirectory)
Uses searchDirective (either specified or from OBOE properties) Finds the rules directory using the comma separated values from searchDirective to find the closest match in terms of the rules file to be used.
-
Constructor Details
-
EDITransactionSetFactory
public EDITransactionSetFactory()
-
-
Method Details
-
buildTransactionSet
public static com.americancoders.edi.TransactionSet buildTransactionSet(java.lang.String inTSID) throws com.americancoders.edi.OBOEExceptionUse the default searchDirective to look for the rules file.- Parameters:
inTSID
-- Returns:
- TransactionSet built using the corresponding rules
- Throws:
com.americancoders.edi.OBOEException
-
buildTransactionSet
public static com.americancoders.edi.TransactionSet buildTransactionSet(java.lang.String inTSID, java.lang.String inSearchDirective, java.lang.String inVersionDirectory, java.lang.String inReceiverIDDirectory, java.lang.String inSenderIDDirectory, java.lang.String inTestOrProductionDirectory) throws com.americancoders.edi.OBOEExceptionUses searchDirective (either specified or from OBOE properties) Finds the rules directory using the comma separated values from searchDirective to find the closest match in terms of the rules file to be used. Last option is to fall back on the default rules file- Parameters:
inTSID
-inSearchDirective
-inVersionDirectory
-inReceiverIDDirectory
-inSenderIDDirectory
-inTestOrProductionDirectory
-- Returns:
- TransactionSet built using the corresponding rules
- Throws:
com.americancoders.edi.OBOEException
-