public class MaximoBidiTransformer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERR_KEY_BAD_XML_DOCUMENT
Error bundle key: Bad XML document passed for processing
|
static java.lang.String |
ERR_KEY_INVALID_ATTRIBUTES
Error bundle key: Bidi FlagSet has bad character(s), or not disallowed combination of attributes.
|
static java.lang.String |
ERR_KEY_INVALID_IN_OUT_ATTRIBUTES
Error bundle key: In & Out attributes either equal or conflicting
|
static java.lang.String |
ERR_KEY_NULL_ATTRIBUTES
Error bundle key: Null Bidi attributes set
|
static java.lang.String |
ERR_KEY_NULL_XML_DOCUMENT
Error bundle key: Null XML document passed for processing
|
static java.lang.String |
MAXIMO_INBOUND_ILYNN
Maximo's inbound Bidi flags.
|
static java.lang.String |
MAXIMO_OUTBOUND_ICYNN
Maximo's outbound Bidi flags.
|
Modifier and Type | Method and Description |
---|---|
static org.jdom.Document |
transformFromMaximoFormat(org.jdom.Document inDoc,
java.lang.String outFormat)
Transform the input
org.jdom.Document using the Maximo Bidi layout format to output
Bidi layout format (inbound). |
static org.jdom.Document |
transformFromMaximoFormat(org.jdom.Document inDoc,
java.lang.String outFormat,
java.util.Set<java.lang.String> exclusionsSet)
Transform the input
org.jdom.Document using the Maximo Bidi layout format to output
Bidi layout format (inbound). |
static org.jdom.Document |
transformFromMaximoFormat(org.jdom.Document inDoc,
java.lang.String outFormat,
java.util.Set<java.lang.String> exclusionsSet,
boolean transformAttributes)
Transform the input
org.jdom.Document using the Maximo Bidi layout format to output
Bidi layout format (inbound). |
static java.util.List<java.lang.String> |
transformFromMaximoFormat(java.util.List<java.lang.String> inStrs,
java.lang.String outFormat)
Transform batch of strings using the Maximo Bidi layout format to output Bidi layout format (inbound).
|
static java.util.List<java.lang.String> |
transformFromMaximoFormat(java.util.List<java.lang.String> inStrs,
java.lang.String outFormat,
java.util.Map<java.lang.Integer,MXApplicationException> errors)
Transform batch of strings using the Maximo Bidi layout format to output Bidi layout format (inbound).
|
static java.lang.String |
transformFromMaximoFormat(java.lang.String text,
java.lang.String outFormat)
Transform text from Maximo Bidi layout format to external Bidi layout format (outbound)
|
static org.jdom.Document |
transformToMaximoFormat(org.jdom.Document inDoc,
java.lang.String inFormat)
Transform the input
org.jdom.Document using the input Bidi layout format to
Maximo Bidi layout format (outbound). |
static org.jdom.Document |
transformToMaximoFormat(org.jdom.Document inDoc,
java.lang.String inFormat,
java.util.Set<java.lang.String> exclusionsSet)
Transform the input
org.jdom.Document using the input Bidi layout format to
Maximo Bidi layout format (outbound). |
static org.jdom.Document |
transformToMaximoFormat(org.jdom.Document inDoc,
java.lang.String inFormat,
java.util.Set<java.lang.String> exclusionsSet,
boolean transformAttributes)
Transform the input
org.jdom.Document using the input Bidi layout format to
Maximo Bidi layout format (outbound). |
static java.util.List<java.lang.String> |
transformToMaximoFormat(java.util.List<java.lang.String> inStrs,
java.lang.String inFormat)
Transform batch of strings using the input Bidi layout format to Maximo Bidi layout format (outbound).
|
static java.util.List<java.lang.String> |
transformToMaximoFormat(java.util.List<java.lang.String> inStrs,
java.lang.String inFormat,
java.util.Map<java.lang.Integer,MXApplicationException> errors)
Transform batch of strings using the input Bidi layout format to Maximo Bidi layout format (outbound).
|
static java.lang.String |
transformToMaximoFormat(java.lang.String text,
java.lang.String inFormat)
Transform text from external Bidi layout format to Maximo Bidi layout format (inbound)
|
public static final java.lang.String MAXIMO_INBOUND_ILYNN
public static final java.lang.String MAXIMO_OUTBOUND_ICYNN
public static final java.lang.String ERR_KEY_INVALID_ATTRIBUTES
public static final java.lang.String ERR_KEY_INVALID_IN_OUT_ATTRIBUTES
public static final java.lang.String ERR_KEY_NULL_ATTRIBUTES
public static final java.lang.String ERR_KEY_NULL_XML_DOCUMENT
public static final java.lang.String ERR_KEY_BAD_XML_DOCUMENT
public static java.lang.String transformToMaximoFormat(java.lang.String text, java.lang.String inFormat) throws MXApplicationException
text
- text to be transformedinFormat
- input Bidi format parametersMXApplicationException
- transforms the exception thrown from the base API.public static java.util.List<java.lang.String> transformToMaximoFormat(java.util.List<java.lang.String> inStrs, java.lang.String inFormat) throws MXApplicationException
BidiFlags
inStrs
- Input String listinFormat
- Input Bidi flag set format parametersList
. Returned list may contain null values to
indicate errors happened while text transformation.MXApplicationException
- exception is thrown in case of initialization failure
Null's in the returned list should be anticipated if the transformation/reshaping fails
in the batch.public static java.util.List<java.lang.String> transformToMaximoFormat(java.util.List<java.lang.String> inStrs, java.lang.String inFormat, java.util.Map<java.lang.Integer,MXApplicationException> errors) throws MXApplicationException
BidiFlags
inStrs
- Input String listinFormat
- Input Bidi flag set format parameterserrors
- Map to hold the exceptions thrown particularly thru any transformation.
If null, no errors will be logged.List
MXApplicationException
- exception is thrown in case of initialization failure
Null's in the returned list should be anticipated if the transformation/reshaping fails
in the batch.public static org.jdom.Document transformToMaximoFormat(org.jdom.Document inDoc, java.lang.String inFormat) throws MXApplicationException
org.jdom.Document
using the input Bidi layout format to
Maximo Bidi layout format (outbound).
Formats are supplied into Bidi FlagSet format. See BidiFlags
inDoc
- Input XML document. If null, IllegalArgumentException
will be thrown.inFormat
- Input Bidi flag-set format parameters
MXApplicationException
public static org.jdom.Document transformToMaximoFormat(org.jdom.Document inDoc, java.lang.String inFormat, java.util.Set<java.lang.String> exclusionsSet) throws MXApplicationException
org.jdom.Document
using the input Bidi layout format to
Maximo Bidi layout format (outbound).
Formats are supplied into Bidi FlagSet format. See BidiFlags
inDoc
- Input XML document. If null, IllegalArgumentException
will be thrown.inFormat
- Input Bidi flag-set format parametersexclusionsSet
- the list of unique text entries those shouldn't be processed by the Bidi transformer.
Exclusion for a node doesn't exclude its children.
MXApplicationException
public static org.jdom.Document transformToMaximoFormat(org.jdom.Document inDoc, java.lang.String inFormat, java.util.Set<java.lang.String> exclusionsSet, boolean transformAttributes) throws MXApplicationException
org.jdom.Document
using the input Bidi layout format to
Maximo Bidi layout format (outbound).
Formats are supplied into Bidi FlagSet format. See BidiFlags
inDoc
- Input XML document. If null, IllegalArgumentException
will be thrown.inFormat
- Input Bidi flag-set format parametersexclusionsSet
- the list of unique text entries those shouldn't be processed by the Bidi transformer.
Exclusion for a node doesn't exclude its children.transformAttributes
- decides whether to transform the values of element's attributes or notMXApplicationException
public static java.lang.String transformFromMaximoFormat(java.lang.String text, java.lang.String outFormat) throws MXApplicationException
text
- text to be transformedoutFormat
- output Bidi format parametersMXApplicationException
- transforms the exception thrown from the base API.public static java.util.List<java.lang.String> transformFromMaximoFormat(java.util.List<java.lang.String> inStrs, java.lang.String outFormat) throws MXApplicationException
BidiFlags
inStrs
- Input String listoutFormat
- Output Bidi flag set format parametersList
. Returned list may contain null values to
indicate errors happened while text transformation.MXApplicationException
- exception is thrown in case of initialization failure
Null's in the returned list should be anticipated if the transformation/reshaping fails
in the batch.public static java.util.List<java.lang.String> transformFromMaximoFormat(java.util.List<java.lang.String> inStrs, java.lang.String outFormat, java.util.Map<java.lang.Integer,MXApplicationException> errors) throws MXApplicationException
BidiFlags
inStrs
- Input String listoutFormat
- Output Bidi format set parameterserrors
- Map to hold the exceptions thrown particularly thru any transformation.
If null, no errors will be logged.List
MXApplicationException
- exception is thrown in case of initialization failure
Null's in the returned list should be anticipated if the transformation/reshaping fails
in the batch.public static org.jdom.Document transformFromMaximoFormat(org.jdom.Document inDoc, java.lang.String outFormat) throws MXApplicationException
org.jdom.Document
using the Maximo Bidi layout format to output
Bidi layout format (inbound).
Formats are supplied into Bidi FlagSet format. See BidiFlags
inDoc
- Input XML document. If null, IllegalArgumentException
will be thrown.outFormat
- Output Bidi flag-set format parameters
MXApplicationException
public static org.jdom.Document transformFromMaximoFormat(org.jdom.Document inDoc, java.lang.String outFormat, java.util.Set<java.lang.String> exclusionsSet) throws MXApplicationException
org.jdom.Document
using the Maximo Bidi layout format to output
Bidi layout format (inbound).
Formats are supplied into Bidi FlagSet format. See BidiFlags
inDoc
- Input XML document. If null, IllegalArgumentException
will be thrown.outFormat
- Output Bidi flag-set format parametersexclusionsSet
- the list of unique text entries those shouldn't be processed by the Bidi transformer.
Exclusion for a node doesn't exclude its children.
MXApplicationException
public static org.jdom.Document transformFromMaximoFormat(org.jdom.Document inDoc, java.lang.String outFormat, java.util.Set<java.lang.String> exclusionsSet, boolean transformAttributes) throws MXApplicationException
org.jdom.Document
using the Maximo Bidi layout format to output
Bidi layout format (inbound).
Formats are supplied into Bidi FlagSet format. See BidiFlags
inDoc
- Input XML document. If null, IllegalArgumentException
will be thrown.outFormat
- Output Bidi flag-set format parametersexclusionsSet
- the list of unique text entries those shouldn't be processed by the Bidi transformer.
Exclusion for a node doesn't exclude its children.transformAttributes
- decides whether to transform the values of element's attributes or notMXApplicationException