|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edustructures.sifworks.tools.mapping.MappingsFilter
public class MappingsFilter
Encapsulates optional filtering attributes for field mapping rules.
A field mapping rule can define any of the following filters:
Mappings.map
method matches this value. The version filter is a string
comprised of a comparison operator ("=" for equals, "-"
for Less Than or Equal To, or "+" for Greater Than or
Equal To) followed by a SIF Version identifier. For example,
"=1.5" matches SIF 1.5; "+1.1" matches all versions of SIF
equal to and greater than 1.1; and "-1.1" matches all versions
of SIF less than or equal to SIF 1.1. Filter on SIF Version
to map values to version-specific elements or attributes
of SIF Data Objects.
MappingsDirection.INBOUND
or MappingsDirection.OUTBOUND) passed to
the Mappings.map method matches this value.
Filter on Direction to create field mapping rules that
differ for inbound messages like SIF_Request than for
outbound messages like SIF_Event and SIF_Response.
| Constructor Summary | |
|---|---|
MappingsFilter()
|
|
| Method Summary | |
|---|---|
boolean |
evalDirection(MappingsDirection flag)
Evaluates the Message Direction filter against a direction flag. |
boolean |
evalVersion(SIFVersion version)
Evaluates the SIF Version filter against a SIFVersion instance. |
MappingsDirection |
getDirection()
Gets the Message Direction filter. |
java.lang.String |
getSIFVersion()
Gets the SIF Version filter. |
boolean |
hasDirectionFilter()
Determines if the Message Direction filter is specified |
boolean |
hasVersionFilter()
Determines if the SIF Version filter is specified |
void |
setDirection(MappingsDirection dir)
Sets the Message Direction filter. |
void |
setSIFVersion(java.lang.String version)
Sets the SIF Version filter. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappingsFilter()
| Method Detail |
|---|
public void setSIFVersion(java.lang.String version)
version - A SIF Version string prefixed by a comparision
operator "=", "+" or "-";. For example, specify "=1.5"
to match SIF 1.5; "+1.1" to match all versions of SIF equal
to or greater than 1.1, "-1.1" to match all versions of
SIF less than or equal to SIF 1.1, etc. If no comparision
operator is specified Equal To ("=") is assumed.public java.lang.String getSIFVersion()
public boolean hasVersionFilter()
public void setDirection(MappingsDirection dir)
dir - Any MappingsDirection. constantpublic MappingsDirection getDirection()
MappingsDirection. constantpublic boolean hasDirectionFilter()
public boolean evalDirection(MappingsDirection flag)
flag - Any MappingsDirection value
flagpublic boolean evalVersion(SIFVersion version)
version - A SIFVersion instance
version parameter evaluates true given the
comparision operator and version of SIF specified by the
current filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||