Uses of Class
com.norconex.commons.lang.xml.Xml
Packages that use Xml
Package
Description
Classes making it easier to deal with configuration files.
Enhanced and/or useful features related to Map.
XML-related classes.
Classes offering basic flow-processing to XML.
Various XML flow element implementations.
-
Uses of Xml in com.norconex.commons.lang.config
Methods in com.norconex.commons.lang.config that return XmlModifier and TypeMethodDescriptionDeprecated.ConfigurationLoader.loadXML(Path configFile, ErrorHandler errorHandler) Deprecated.UseConfigurationLoader.toXml(Path, ErrorHandler)instead.Loads an XML configuration file into anXmlobject, performing variable interpolation and handling any other Velocity directives.ConfigurationLoader.toXml(Path configFile, ErrorHandler errorHandler) Loads an XML configuration file into anXmlobject, performing variable interpolation and handling any other Velocity directives. -
Uses of Xml in com.norconex.commons.lang.map
Methods in com.norconex.commons.lang.map with parameters of type XmlModifier and TypeMethodDescriptionstatic PropertySetterPropertySetter.fromXML(Xml xml, PropertySetter defaultValue) static voidPropertySetter.toXML(Xml xml, PropertySetter setter) -
Uses of Xml in com.norconex.commons.lang.xml
Methods in com.norconex.commons.lang.xml that return XmlModifier and TypeMethodDescriptionXml.addDelimitedElementList(String name, String delim, List<?> values) Adds a list of values as a new element after joining them with the given delimiter.Xml.addDelimitedElementList(String name, List<?> values) Adds a list of values as a new element after joining them with a comma (CSV).Xml.addElement(String tagName) Adds an empty child element to this XML root element.Xml.addElement(String tagName, Object value) Adds a child element to this XML root element.Xml.addElementList(@NonNull String parentTagName, String tagName, List<?> values) Adds a list of values under a new parent tag name to the current XML and return the added list.Xml.addElementMap(String parentTagName, String tagName, String attributeName, Map<?, ?> map) Adds aMapas a series of elements with a parent element wrapping that group.Xml.clear()Clears this XML by removing all its attributes and elements (i.e., making it an empty tag).Xml.computeElementIfAbsent(String tagName, Function<String, Object> function) Computes and adds the element returned by the provided function if an element with the same name is not already present, else, return the existing one.Xml.Builder.create()XmlValidationException.getXml()Gets the xml subset matching the xpath expression.Xml.insertAfter(Xml newXML) Inserts a new XML node after this one, as a sibling of a shared parent.Xml.insertBefore(Xml newXML) Inserts a new XML node before this one, as a sibling of a shared parent.XmlCursor.readAsXML()Xml.remove()Removes itself from its XML parent (if any).Xml.removeAttribute(String name) Removes an attribute on this XML element.Xml.removeElement(String tagName) Removes an element from this XML.Xml.removeTextContent()Removes this XML direct text content, without impact on attributes and child elements and their content.Rename this XML (element tag name).Replaces the current XML with the provided one.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.setAttributes(Map<String, ?> attribs) Sets attributes on this XML element.Xml.setDelimitedAttributeList(String name, String delim, List<?> values) Sets a list of values as an attribute after joining them with the given delimiter.Xml.setDelimitedAttributeList(String name, List<?> values) Sets a list of values as an attribute after joining them with a comma (CSV).Xml.setTextContent(Object textContent) Sets the direct text content of an XML element.Xml.unwrap()Unwraps this XML by removing the root tag and keeping its child element (and its nested element).Wraps this XML by adding a parent element around it.Methods in com.norconex.commons.lang.xml that return types with arguments of type XmlModifier and TypeMethodDescriptionXml.addElementList(String tagName, List<?> values) Adds a list of values to the current XML and return the added list.Xml.addElementMap(String tagName, String attributeName, Map<?, ?> map) Adds aMapas a series of elements without a parent element wrapping that group.Xml.getXMLList(String xpathExpression) Gets the XML subsets matching the xpath expression.Methods in com.norconex.commons.lang.xml with parameters of type XmlModifier and TypeMethodDescriptionXml.insertAfter(Xml newXML) Inserts a new XML node after this one, as a sibling of a shared parent.Xml.insertBefore(Xml newXML) Inserts a new XML node before this one, as a sibling of a shared parent.voidXmlConfigurable.loadFromXML(Xml xml) Load XML configuration values and initialized this object with them.Replaces the current XML with the provided one.voidSaves this object as XML.Method parameters in com.norconex.commons.lang.xml with type arguments of type XmlModifier and TypeMethodDescriptionvoidIf the given expression matches one or more elements, consume those element one by one.voidIf the given expression matches an element, consume that element.<T> T<T> T<T> List<T> Xml.parseXMLList(String xpathExpression, @NonNull Function<Xml, T> parser) <T> List<T> Xml.parseXMLList(String xpathExpression, @NonNull 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> Constructors in com.norconex.commons.lang.xml with parameters of type XmlModifierConstructorDescriptionXmlValidationException(List<XmlValidationError> errors, Xml xml) Constructor. -
Uses of Xml in com.norconex.commons.lang.xml.flow
Methods in com.norconex.commons.lang.xml.flow with parameters of type Xml -
Uses of Xml in com.norconex.commons.lang.xml.flow.impl
Methods in com.norconex.commons.lang.xml.flow.impl with parameters of type Xml
ConfigurationLoader.toXml(Path)instead.