Comments (5)
Have you checked this?
You provide the line number and you get all narratives for it.
You also have the API in the Multiline interface to get the lines including the number indicator:
from prowide-core.
Thanks for your comments. I was referring to below new structure :
50F:/123456..
1/ABC11
2/ABC21
2/ABC22
2/ABC23
2/ABC24
2/ABC25
2/ABC26
2/ABC27
2/ABC28
When we try to extract , it looks like only 3 lines for '2/' is returned ; all of the 8 lines for '2/' is not being returned. Is there anyway to extract all the contents for '2/' as above.
Please guide us.
Thanks
Arnab
from prowide-core.
The parser will drop invalid additional lines. If you need to read them all you have to use the underlying Tag structure (you can get that from SwiftBlock4 object) and parse it your self with something like:
`
Tag t = new Tag("50F", "/123456\n"+
"1/ABC11\n"+
"2/ABC21\n"+
"2/ABC22\n"+
"2/ABC23\n"+
"2/ABC24\n"+
"2/ABC25\n"+
"2/ABC26\n"+
"2/ABC27\n"+
"2/ABC28");
SwiftParseUtils.getLines(t.getValue()).forEach(line -> {
System.out.println(SwiftParseUtils.getTokenFirst(line, "/"));
System.out.println(SwiftParseUtils.getTokenSecondLast(line, "/"));
});
`
from prowide-core.
Thanks again!
Do you think these are invalid additional lines? Would like to know your views as well. We were trying to readup on the recent changes , and looks like there new structures are now allowed. Any plan at your end to support such enhancements.
Thanks.
from prowide-core.
Yes, the field can have 5 lines at most. Regardless of the line identifiers and values.
In SRU2020 the validation for allowed and expected line types is changing slightly, however the overall field structure prevails.
The first line of field :50F is optional, when present must be formatted as </34x> | <4!a//27x>
The lines 2 to 5 are formatted as 1!n/33x with several constraint on the type of lines
The Prowide CORE parser is not affected by SRU2020. Just the validation on top of the same Field50F parser/model.
We already support all current and future (SRU2020) validation constraints in our https://www.prowidesoftware.com/products/integrator/validation
from prowide-core.
Related Issues (20)
- Major issue in parse field values algorithm HOT 2
- Invalid ConstraintValidator annotation on CurrencyValidator HOT 1
- MT540 CANC should return the SEME when method getField20C() is called HOT 3
- Parsing MT942 without block 4 HOT 1
- Trouble parsing multiline into components HOT 1
- Empty tag removed when parsing HOT 2
- MT566 - USECU / FIA is not repetitive HOT 1
- MT535 Extraction : Parent vs Child field values HOT 4
- AbstractMT parser - Field 50F (MT103 ) is not removing the forward slash HOT 2
- Field 71B in MT590 component narrative HOT 3
- Field 71B in MT590 component narrative HOT 1
- MT103
- Update the javax.xml.bind:jaxb-api to Jakarta EE apis (supporting Spring Boot 3 releases) HOT 1
- MT940 Swift message unable to return double value with decimals HOT 1
- Jumbled up subfields in a field retrieved from a message HOT 1
- Incorrect LT identifier handling (AbstractMT) HOT 3
- Distinguishing Tag86 in MT940 HOT 1
- Faulty field 253 in MT020Test HOT 1
- Make Field methods non-final to allow subclassing HOT 7
- Harmonize source code indentation style HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prowide-core.