org.milyn.ect.formats.unedifact
Class UnEdifactSpecificationReader
java.lang.Object
org.milyn.ect.formats.unedifact.UnEdifactSpecificationReader
- All Implemented Interfaces:
- EdiSpecificationReader
public class UnEdifactSpecificationReader
- extends Object
- implements EdiSpecificationReader
UN/EDIFACT Specification Reader.
- Author:
- bardl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INTERCHANGE_TYPE
public static final String INTERCHANGE_TYPE
- See Also:
- Constant Field Values
UnEdifactSpecificationReader
public UnEdifactSpecificationReader(ZipInputStream specificationInStream,
boolean useImport)
throws IOException
- Throws:
IOException
UnEdifactSpecificationReader
public UnEdifactSpecificationReader(ZipInputStream specificationInStream,
boolean useImport,
boolean useShortName)
throws IOException
- Throws:
IOException
getMessageNames
public Set<String> getMessageNames()
- Description copied from interface:
EdiSpecificationReader
- Get a list of the names of the messages defined in the EDI Specification (e.g. UN/EDIFACT
specification) instance.
- Specified by:
getMessageNames in interface EdiSpecificationReader
- Returns:
- The namels of the messages.
getMappingModel
public Edimap getMappingModel(String messageName)
throws IOException
- Description copied from interface:
EdiSpecificationReader
- 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.
- Specified by:
getMappingModel in interface EdiSpecificationReader
- Parameters:
messageName - The name of the message.
- Returns:
- The messages EDI Mapping Model.
- Throws:
IOException - Error reading/converting the message definition to
an EDI Mapping Model.
getInterchangeProperties
public Properties getInterchangeProperties()
- Description copied from interface:
EdiSpecificationReader
- Get the message interchange properties for the associated EDI specification.
- Specified by:
getInterchangeProperties in interface EdiSpecificationReader
- Returns:
- The message interchange properties for the associated EDI specification.
getEdiDirectory
public EdiDirectory getEdiDirectory(String... includeMessages)
throws IOException
- Description copied from interface:
EdiSpecificationReader
- Get the
EdiDirectory instance for specification.
Implementations should cache this instance.
- Specified by:
getEdiDirectory in interface EdiSpecificationReader
- Parameters:
includeMessages - Messages to include.
- Returns:
- The EdiDirector instance.
- Throws:
IOException - Error reading specification.
getDefinitionModel
public Edimap getDefinitionModel()
throws IOException
- Throws:
IOException
Copyright © 2011. All Rights Reserved.