|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MappingsDirection>
com.edustructures.sifworks.tools.mapping.MappingsDirection
public enum MappingsDirection
Defines the MappingDirection flag, which indicates whether a Mappings operation is being done inbound or outbound
| Enum Constant Summary | |
|---|---|
INBOUND
Direction flag passed to the map method to indicate the
agent is mapping values for an inbound message (for example, a SIF_Event
that is received from the zone or a SIF_Response). |
|
OUTBOUND
Direction flag passed to the map method to indicate the
agent is mapping values for an outbound message (for example, a SIF_Event
that is being reported to the zone or a SIF_Response being prepared.)
Currently, this flag is used only in conjunction with the ValueSet
attribute of the FieldMapping class. |
|
UNSPECIFIED
Direction flag which indicates the agent is not specifying whether the method is being called for an inbound or outbound operation. |
|
| Method Summary | |
|---|---|
static MappingsDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MappingsDirection[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MappingsDirection UNSPECIFIED
Mappings.mapInbound(com.edustructures.sifworks.SIFDataObject, FieldAdaptor),
Mappings.mapOutbound(FieldAdaptor,com.edustructures.sifworks.SIFDataObject),
MappingsContext.getDirection()public static final MappingsDirection OUTBOUND
map method to indicate the
agent is mapping values for an outbound message (for example, a SIF_Event
that is being reported to the zone or a SIF_Response being prepared.)
Currently, this flag is used only in conjunction with the ValueSet
attribute of the FieldMapping class. When a ValueSet is associated with
a FieldMapping rule and this flag is passed to the map
method, it will automatically lookup the ValueSet by ID and call
its translate function on the value produced from
the mapping.
Mappings.mapInbound(com.edustructures.sifworks.SIFDataObject, FieldAdaptor),
Mappings.mapOutbound(FieldAdaptor,com.edustructures.sifworks.SIFDataObject),
MappingsContext.getDirection()public static final MappingsDirection INBOUND
map method to indicate the
agent is mapping values for an inbound message (for example, a SIF_Event
that is received from the zone or a SIF_Response). Currently, this flag
is used only in conjunction with the ValueSet attribute of the
FieldMapping class. When a ValueSet is associated with a FieldMapping
rule and this flag is passed to the map method, it will
automatically lookup the ValueSet by ID and call its translateReverse
function on the value produced from the mapping.
Mappings.mapInbound(com.edustructures.sifworks.SIFDataObject, FieldAdaptor),
Mappings.mapOutbound(FieldAdaptor,com.edustructures.sifworks.SIFDataObject),
MappingsContext.getDirection()| Method Detail |
|---|
public static final MappingsDirection[] values()
for(MappingsDirection c : MappingsDirection.values())
System.out.println(c);
public static MappingsDirection valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||