public class JDOMUtils
extends java.lang.Object
Constructor and Description |
---|
JDOMUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,org.jdom2.Element> |
getAllElements(org.jdom2.Document document)
This method puts all elements with an id found in the given document into
a hash map.
|
static void |
getAllElementsGroupedByNamespace(java.util.Map<java.lang.String,java.util.Map<java.lang.String,org.jdom2.Element>> elementsMap,
BPMNProcess process,
java.util.List<java.lang.String> alreadyVisited)
Map which uses the namespace-URI as an ID and another
Map as value.
|
static java.util.Optional<java.lang.String> |
getUsedPrefixForTargetNamespace(org.jdom2.Document document) |
public static java.util.Map<java.lang.String,org.jdom2.Element> getAllElements(org.jdom2.Document document)
document
- the document to get the elements frompublic static void getAllElementsGroupedByNamespace(java.util.Map<java.lang.String,java.util.Map<java.lang.String,org.jdom2.Element>> elementsMap, BPMNProcess process, java.util.List<java.lang.String> alreadyVisited)
getAllElements(org.jdom2.Document)
elementsMap
- the Map to be populatedprocess
- the BPMNProcess to be addedalreadyVisited
- a List of filenames of already added filespublic static java.util.Optional<java.lang.String> getUsedPrefixForTargetNamespace(org.jdom2.Document document)