org.milyn.edisax.model
Class EdifactModel

java.lang.Object
  extended by org.milyn.edisax.model.EdifactModel

public class EdifactModel
extends Object

EdifactModel contains all logic for handling imports for the edi-message-mapping model.


Constructor Summary
EdifactModel(Edimap edimap)
          Public Constructor.
EdifactModel(InputStream mappingModelStream)
          Public Constructor.
EdifactModel(URI modelURI, URI importBaseURI, InputStream mappingModelStream)
          Public constructor.
EdifactModel(URI modelURI, URI importBaseURI, Reader mappingModelStream)
          Public constructor.
 
Method Summary
 Delimiters getDelimiters()
          Returns the delimiters used in edifact format.
 Description getDescription()
           
 Edimap getEdimap()
          Returns the edimap containing the parser logic.
 URI getModelURI()
          Get the model URI.
 void setAssociateModels(Collection<EdifactModel> associateModels)
          Set a set of models that are associated with this model instance.
 void setDescription(Description description)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdifactModel

public EdifactModel(Edimap edimap)
Public Constructor.

Parameters:
edimap - Mapping Model.

EdifactModel

public EdifactModel(InputStream mappingModelStream)
             throws IOException
Public Constructor.

Throws:
IOException

EdifactModel

public EdifactModel(URI modelURI,
                    URI importBaseURI,
                    InputStream mappingModelStream)
             throws IOException
Public constructor.

Parameters:
modelURI - The model resource URI.
importBaseURI - The base URI for loading imports.
mappingModelStream - The edi-message-mapping.
Throws:
IOException

EdifactModel

public EdifactModel(URI modelURI,
                    URI importBaseURI,
                    Reader mappingModelStream)
             throws IOException
Public constructor.

Parameters:
modelURI - The model resource URI.
importBaseURI - The base URI for loading imports.
mappingModelStream - The edi-message-mapping.
Throws:
IOException
Method Detail

setDescription

public void setDescription(Description description)

getDescription

public Description getDescription()

getEdimap

public Edimap getEdimap()
Returns the edimap containing the parser logic.

Returns:
edi-message-mapping.

getDelimiters

public Delimiters getDelimiters()
Returns the delimiters used in edifact format.

Returns:
delimiters.

getModelURI

public URI getModelURI()
Get the model URI.

Returns:
The model URI.

setAssociateModels

public void setAssociateModels(Collection<EdifactModel> associateModels)
Set a set of models that are associated with this model instance.

An associate set of models could be (for example) the other models in a UN/EDIFACT model set, or some other interchange type.

Parameters:
associateModels - Associate models.


Copyright © 2018. All rights reserved.