org.milyn.ect
Interface EdiSpecificationReader

All Known Implementing Classes:
UnEdifactSpecificationReader

public interface EdiSpecificationReader

EDI Specification Reader.

Author:
bardl

Field Summary
static java.lang.String INTERCHANGE_BINDING_CONFIG
          Interchange properties key for the top level interchange binding config.
static java.lang.String INTERCHANGE_TYPE
          Interchange properties key for the interchange Type e.g.
static java.lang.String MESSAGE_BINDING_CONFIG
          Interchange properties key for the interchange message binding config.
 
Method Summary
 java.util.Properties getInterchangeProperties()
          Get the message interchange properties for the associated EDI specification.
 Edimap getMappingModel(java.lang.String messageName)
          Get the EDI Mapping Model for the named message.
 java.util.Set<java.lang.String> getMessageNames()
          Get a list of the names of the messages defined in the EDI Specification (e.g.
 

Field Detail

INTERCHANGE_TYPE

static final java.lang.String INTERCHANGE_TYPE
Interchange properties key for the interchange Type e.g. "UNEDIFACT".

See Also:
Constant Field Values

MESSAGE_BINDING_CONFIG

static final java.lang.String MESSAGE_BINDING_CONFIG
Interchange properties key for the interchange message binding config.

See Also:
Constant Field Values

INTERCHANGE_BINDING_CONFIG

static final java.lang.String INTERCHANGE_BINDING_CONFIG
Interchange properties key for the top level interchange binding config.

See Also:
Constant Field Values
Method Detail

getMessageNames

java.util.Set<java.lang.String> getMessageNames()
Get a list of the names of the messages defined in the EDI Specification (e.g. UN/EDIFACT specification) instance.

Returns:
The namels of the messages.

getMappingModel

Edimap getMappingModel(java.lang.String messageName)
                       throws java.io.IOException
Get the EDI Mapping Model for the named message.

The Mapping Model is constructed after converting/translating the message definition in the specification. This is the "normalized" definition of any EDI message in Smooks. From the EDI Mapping Model, EJC can be used to construct Java Bindings etc.

Parameters:
messageName - The name of the message.
Returns:
The messages EDI Mapping Model.
Throws:
java.io.IOException - Error reading/converting the message definition to an EDI Mapping Model.

getInterchangeProperties

java.util.Properties getInterchangeProperties()
Get the message interchange properties for the associated EDI specification.

Returns:
The message interchange properties for the associated EDI specification.


Copyright © 2011. All Rights Reserved.