Package | Description |
---|---|
com.norconex.commons.lang.config |
Classes making it easier to deal with configuration files.
|
com.norconex.commons.lang.encrypt |
Encryption-related classes.
|
com.norconex.commons.lang.map |
Enhanced and/or useful features related to Map.
|
com.norconex.commons.lang.net | |
com.norconex.commons.lang.security | |
com.norconex.commons.lang.text |
Utility classes related to text.
|
com.norconex.commons.lang.xml |
XML-related classes.
|
com.norconex.commons.lang.xml.flow |
Classes offering basic flow-processing to XML.
|
com.norconex.commons.lang.xml.flow.impl |
Various XML flow element implementations.
|
Modifier and Type | Method and Description |
---|---|
XML |
ConfigurationLoader.loadXML(Path configFile)
Loads an XML configuration file.
|
XML |
ConfigurationLoader.loadXML(Path configFile,
ErrorHandler errorHandler)
Loads an XML configuration file.
|
Modifier and Type | Method and Description |
---|---|
default void |
IXMLConfigurable.loadFromXML(XML xml)
Deprecated.
Load XML configuration values and initialized this object with them.
|
default void |
IXMLConfigurable.saveToXML(XML xml)
Deprecated.
Saves this object as XML.
|
Modifier and Type | Method and Description |
---|---|
static EncryptionKey |
EncryptionKey.loadFromXML(XML xml,
EncryptionKey defaultKey)
Gets an encryption key from an existing XML.
|
static EncryptionKey |
EncryptionXMLUtil.loadFromXML(XML xml,
String tagPrefix,
EncryptionKey defaultKey)
Deprecated.
Convenience method for loading an encryption key from an
XML . |
static void |
EncryptionKey.saveToXML(XML xml,
EncryptionKey key)
Adds an encryption key to an existing XML.
|
Modifier and Type | Method and Description |
---|---|
static PropertySetter |
PropertySetter.fromXML(XML xml,
PropertySetter defaultValue) |
static PropertyMatcher |
PropertyMatcher.loadFromXML(XML xml) |
static void |
PropertyMatcher.saveToXML(XML xml,
PropertyMatcher matcher) |
static void |
PropertySetter.toXML(XML xml,
PropertySetter setter) |
Modifier and Type | Method and Description |
---|---|
void |
ProxySettings.loadFromXML(XML xml) |
static Host |
Host.loadFromXML(XML xml,
Host defaultHost)
Gets a host from an existing XML.
|
void |
ProxySettings.saveToXML(XML xml) |
static void |
Host.saveToXML(XML xml,
Host host)
Adds a host to an existing XML.
|
Modifier and Type | Method and Description |
---|---|
void |
Credentials.loadFromXML(XML xml) |
void |
Credentials.saveToXML(XML xml) |
Modifier and Type | Method and Description |
---|---|
void |
Regex.loadFromXML(XML xml) |
void |
RegexFieldValueExtractor.loadFromXML(XML xml) |
void |
TextMatcher.loadFromXML(XML xml) |
void |
Regex.saveToXML(XML xml) |
void |
RegexFieldValueExtractor.saveToXML(XML xml) |
void |
TextMatcher.saveToXML(XML xml) |
Modifier and Type | Method and Description |
---|---|
XML |
XML.addDelimitedElementList(String name,
List<?> values)
Adds a list of values as a new element after joining them with
a comma (CSV).
|
XML |
XML.addDelimitedElementList(String name,
String delim,
List<?> values)
Adds a list of values as a new element after joining them with
the given delimiter.
|
XML |
XML.addElement(String tagName)
Adds an empty child element to this XML root element.
|
XML |
XML.addElement(String tagName,
Object value)
Adds a child element to this XML root element.
|
XML |
XML.addElementList(String parentTagName,
String tagName,
List<?> values) |
XML |
XML.addElementMap(String parentTagName,
String tagName,
String attributeName,
Map<?,?> map)
Adds a
Map as a series of elements with a parent element
wrapping that group. |
XML |
XML.addXML(Reader xml) |
XML |
XML.addXML(String xml) |
XML |
XML.addXML(XML xml) |
XML |
XML.clear()
Clears this XML by removing all its attributes and elements
(i.e., making it an empty tag).
|
XML |
XML.Builder.create() |
XML |
XMLValidationException.getXml() |
XML |
XML.getXML(String xpathExpression)
Gets the xml subset matching the xpath expression.
|
XML |
XML.insertAfter(XML newXML)
Inserts a new XML node after this one, as a sibling of a shared parent.
|
XML |
XML.insertBefore(XML newXML)
Inserts a new XML node before this one, as a sibling of a shared parent.
|
XML |
XMLCursor.readAsXML() |
XML |
XML.remove()
Removes itself from its XML parent (if any).
|
XML |
XML.removeAttribute(String name)
Removes an attribute on this XML element.
|
XML |
XML.removeElement(String tagName)
Removes an element from this XML.
|
XML |
XML.rename(String newName)
Rename this XML (element tag name).
|
XML |
XML.replace(XML replacement)
Replaces the current XML with the provided one.
|
XML |
XML.setAttribute(String name,
Object value)
Sets an attribute on this XML element, converting the supplied object
to a string (enums are also converted to lowercase).
|
XML |
XML.setAttributes(Map<String,?> attribs)
Sets attributes on this XML element.
|
XML |
XML.setDelimitedAttributeList(String name,
List<?> values)
Sets a list of values as an attribute after joining them with
a comma (CSV).
|
XML |
XML.setDelimitedAttributeList(String name,
String delim,
List<?> values)
Sets a list of values as an attribute after joining them with
the given delimiter.
|
XML |
XML.setTextContent(Object textContent)
Sets the text content of an XML element.
|
XML |
XML.unwrap()
Unwraps this XML by removing the root tag and keeping its child element
(and its nested element).
|
XML |
XML.wrap(String parentName)
Wraps this XML by adding a parent element around it.
|
Modifier and Type | Method and Description |
---|---|
List<XML> |
XML.addElementList(String tagName,
List<?> values) |
List<XML> |
XML.addElementMap(String tagName,
String attributeName,
Map<?,?> map)
Adds a
Map as a series of elements without a parent element
wrapping that group. |
List<XML> |
XML.getXMLList(String xpathExpression)
Gets the XML subsets matching the xpath expression.
|
Modifier and Type | Method and Description |
---|---|
XML |
XML.addXML(XML xml) |
String |
XMLFormatter.format(XML xml) |
XML |
XML.insertAfter(XML newXML)
Inserts a new XML node after this one, as a sibling of a shared parent.
|
XML |
XML.insertBefore(XML newXML)
Inserts a new XML node before this one, as a sibling of a shared parent.
|
void |
IXMLConfigurable.loadFromXML(XML xml)
Load XML configuration values and initialized this object with them.
|
XML |
XML.replace(XML replacement)
Replaces the current XML with the provided one.
|
void |
IXMLConfigurable.saveToXML(XML xml)
Saves this object as XML.
|
Modifier and Type | Method and Description |
---|---|
void |
XML.forEach(String xpathExpression,
Consumer<XML> action)
If the given expression matches one or more elements, consume those
element one by one.
|
void |
XML.ifXML(String xpathExpression,
Consumer<XML> then)
If the given expression matches an element, consume that
element.
|
<T> T |
XML.parseXML(String xpathExpression,
Function<XML,T> parser) |
<T> T |
XML.parseXML(String xpathExpression,
Function<XML,T> parser,
T defaultValue) |
<T> List<T> |
XML.parseXMLList(String xpathExpression,
Function<XML,T> parser) |
<T> List<T> |
XML.parseXMLList(String xpathExpression,
Function<XML,T> parser,
List<T> defaultValue) |
<K,V> Map<K,V> |
XML.parseXMLMap(String xpathExpression,
Function<XML,Map.Entry<K,V>> parser) |
<K,V> Map<K,V> |
XML.parseXMLMap(String xpathExpression,
Function<XML,Map.Entry<K,V>> parser,
Map<K,V> defaultValue) |
Constructor and Description |
---|
XMLValidationException(List<XMLValidationError> errors,
XML xml)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Consumer<T> |
XMLFlow.parse(XML xml) |
void |
XMLFlow.write(XML xml,
Consumer<T> consumer)
Writes a flow previously constructed by
XMLFlow.parse(XML) to XML. |
Modifier and Type | Method and Description |
---|---|
void |
PropertyMatcherCondition.loadFromXML(XML xml) |
void |
PropertyMatcherCondition.saveToXML(XML xml) |
Copyright © 2008–2023 Norconex Inc.. All rights reserved.