Update SclParser.java

Add method to retrieve all IEDs
pull/65/head
DALL'AGNOLA Cédric 7 years ago committed by GitHub
parent cab1f783fd
commit 8cc4d675f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,6 +30,7 @@ import java.io.InputStream;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;
import java.util.stream.Stream;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
@ -118,6 +119,15 @@ public class SclParser {
public Communication getCommunication() {
return communication;
}
public Stream<IED> getIeds() {
return ieds.stream();
}
public int getIedsCount() {
return ieds.size();
}
public static Document parseXmlWithLineNumberInformation(InputStream xmlInputStream) throws IOException, SAXException {
final Document xmlDocument;
@ -314,4 +324,4 @@ public class SclParser {
return null;
}
}
}

Loading…
Cancel
Save