/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public static Edimap digestConfig(InputStream stream) throws IOException, SAXException, EDIConfigurationException { return new EDIConfigDigester().digestEDIConfig(stream); }
/** * Returns the Edimap for a given edi-mapping inputstream. * @param inputStream the edi-mapping. * @return the Edimap. * @throws EDIConfigurationException When edi-mapping-configuration is badly formatted. * @throws IOException When unable to read edi-mapping-configuration. */ private Edimap readEDIConfig(InputStream inputStream) throws EDIConfigurationException, IOException { EdifactModel edifactModel = new EdifactModel(inputStream); return edifactModel.getEdimap(); }
public DependencyTree() { root = new Node<T>(null); }
/** * Set values in {@link org.milyn.edisax.model.internal.Field}. * @param field the {@link org.milyn.edisax.model.internal.Field} to populate. * @param node the Field element. * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted. */ private void setValuesForField(Field field, Node node, String namespacePrefix, MappingNode parent) throws EDIConfigurationException { field.setRequired(getNodeValueAsBoolean(node, "required")); field.setTruncatable(getNodeValueAsBoolean(node, "truncatable")); setValuesForValueNode(node, field, namespacePrefix, parent); }
/** * Set values in {@link org.milyn.edisax.model.internal.Component}. * @param component the {@link org.milyn.edisax.model.internal.Component} to populate. * @param node the Component element. * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted. */ private void setValuesForComponent(Component component, Node node, String namespacePrefix, MappingNode parent) throws EDIConfigurationException { component.setRequired(getNodeValueAsBoolean(node, "required")); component.setTruncatable(getNodeValueAsBoolean(node, "truncatable")); setValuesForValueNode(node, component, namespacePrefix, parent); }
private Map<String, Segment> getImportedSegments(URI importUri) { if(associateModels != null) { for(EdifactModel model : associateModels) { if(model.getModelURI().equals(importUri)) { return createImportMap(model.getEdimap()); } } } return null; }
public Description getDescription() { if(description != null) { return description; } return getEdimap().getDescription(); }
private void applyImportOnSegments(List<SegmentGroup> segmentGroup, Import imp, Map<String, Segment> importedSegments) throws EDIParseException { for (SegmentGroup segment : segmentGroup) { if(segment instanceof Segment) { applyImportOnSegment((Segment)segment, imp, importedSegments); } if (segment.getSegments() != null) { applyImportOnSegments(segment.getSegments(), imp, importedSegments); } } }
/** * Set values in {@link org.milyn.edisax.model.internal.Field}. * @param field the {@link org.milyn.edisax.model.internal.Field} to populate. * @param node the Field element. * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted. */ private void setValuesForField(Field field, Node node, String namespacePrefix, MappingNode parent) throws EDIConfigurationException { field.setRequired(getNodeValueAsBoolean(node, "required")); field.setTruncatable(getNodeValueAsBoolean(node, "truncatable")); setValuesForValueNode(node, field, namespacePrefix, parent); }
/** * Set values in {@link org.milyn.edisax.model.internal.Component}. * @param component the {@link org.milyn.edisax.model.internal.Component} to populate. * @param node the Component element. * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted. */ private void setValuesForComponent(Component component, Node node, String namespacePrefix, MappingNode parent) throws EDIConfigurationException { component.setRequired(getNodeValueAsBoolean(node, "required")); component.setTruncatable(getNodeValueAsBoolean(node, "truncatable")); setValuesForValueNode(node, component, namespacePrefix, parent); }
private Map<String, Segment> getImportedSegments(URI importUri) { if(associateModels != null) { for(EdifactModel model : associateModels) { if(model.getModelURI().equals(importUri)) { return createImportMap(model.getEdimap()); } } } return null; }
public Description getDescription() { if(description != null) { return description; } return getEdimap().getDescription(); }
private void applyImportOnSegments(List<SegmentGroup> segmentGroup, Import imp, Map<String, Segment> importedSegments) throws EDIParseException { for (SegmentGroup segment : segmentGroup) { if(segment instanceof Segment) { applyImportOnSegment((Segment)segment, imp, importedSegments); } if (segment.getSegments() != null) { applyImportOnSegments(segment.getSegments(), imp, importedSegments); } } }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public static Edimap digestConfig(InputStream stream) throws IOException, SAXException, EDIConfigurationException { return new EDIConfigDigester().digestEDIConfig(stream); }
public DependencyTree() { root = new Node<T>(null); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public static Edimap digestConfig(InputStream stream) throws IOException, SAXException, EDIConfigurationException { return new EDIConfigDigester().digestEDIConfig(stream); }
public DependencyTree() { root = new Node<T>(null); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public static Edimap digestConfig(InputStream stream) throws IOException, SAXException, EDIConfigurationException { return new EDIConfigDigester().digestEDIConfig(stream); }
public DependencyTree() { root = new Node<T>(null); }