public final class InfoExtraction extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
getChildElementsAndAttributes(Element licenseElement,
String tagName)
The method returns a map in which the key is the xPath to the tag or attribute, and the value
of the map is the value of the tag or attribute, respectively.
|
static String |
getLicenseAttribute(Element licenseElement,
String attributeName) |
static String |
getLicenseAttribute(Element licenseElement,
String attributeName,
boolean required) |
static String |
getLicenseElementTagValue(Element licenseElement,
String tagName) |
static String |
getLicenseElementTagValue(Element licenseElement,
String tagName,
boolean required) |
static String |
getProductAttribute(Element productElement,
String attributeName) |
static String |
getProductAttribute(Element productElement,
String attributeName,
boolean required) |
static String |
getProductElementTagValue(Element product,
String tagName) |
static String |
getProductElementTagValue(Element product,
String tagName,
boolean required) |
public static String getLicenseElementTagValue(Element licenseElement, String tagName)
public static String getLicenseElementTagValue(Element licenseElement, String tagName, boolean required)
public static String getLicenseAttribute(Element licenseElement, String attributeName)
public static String getLicenseAttribute(Element licenseElement, String attributeName, boolean required)
public static String getProductElementTagValue(Element product, String tagName)
public static String getProductElementTagValue(Element product, String tagName, boolean required)
public static String getProductAttribute(Element productElement, String attributeName)
public static String getProductAttribute(Element productElement, String attributeName, boolean required)
public static Map<String,String> getChildElementsAndAttributes(Element licenseElement, String tagName)
licenseElement
- the license elementtagName
- the tag that is in the license element and whose direct children will be processedCopyright © 2020. All rights reserved.