Uses of Class
cdc.util.data.Element
-
Packages that use Element Package Description cdc.util.data cdc.util.data.paths cdc.util.data.util cdc.util.data.xml -
-
Uses of Element in cdc.util.data
Fields in cdc.util.data with type parameters of type Element Modifier and Type Field Description static Comparator<Element>Element. NAME_COMPARATORA comparator of elements using their names.Methods in cdc.util.data that return Element Modifier and Type Method Description default ElementParent. addElement(String name)Creates and adds a child element as last child, if possible.ElementElement. clone(boolean recurse)default ElementParent. getElementNamed(String name)Returns the first child element that has a given name ornull.default ElementParent. getElementNamedAt(String name, int index)Returns the child element that has a given name and index.default ElementParent. getElementNamedIgnoreCase(String name)Returns the first child element that has a given name, ignoring case, ornull.default ElementParent. getElementNamedIgnoreCaseAt(String name, int index)Returns the child element that has a given name, ignoring case, and index.default ElementParent. getElementNamedWithAttribute(String name, String attributeName, String attributeValue)ElementAbstractChild. getRootElement()ElementDocument. getRootElement()static ElementDocument. getRootElement(Document document)Returns the root element of a document.ElementNode. getRootElement()Returns the root element of this node.Methods in cdc.util.data that return types with arguments of type Element Modifier and Type Method Description static Comparator<Element>Element. compareAttribute(String attributeName)Returns a comparator that compares the values of a particular attribute.static Comparator<Element>Element. compareNameAndAttribute(String attributeName)Returns a comparator that compares the names then the values of a particular attribute.default Iterable<Element>Parent. getElements()default Iterable<Element>Parent. getElementsNamed(String name)Returns an Iterable of children elements that have a given name.default Iterable<Element>Parent. getElementsNamedIgnoreCase(String name)Returns an Iterable of children elements that have a given name, ignoring case.Methods in cdc.util.data with parameters of type Element Modifier and Type Method Description static StringNode. getNameAndAttributes(Element element)static DataExceptionDataException. unexpectedElement(Element element)Constructors in cdc.util.data with parameters of type Element Constructor Description Element(Element other)Creates an element by cloning another one. -
Uses of Element in cdc.util.data.paths
Methods in cdc.util.data.paths with parameters of type Element Modifier and Type Method Description booleanSPath. matchesAttribute(Element parent, String name) -
Uses of Element in cdc.util.data.util
Methods in cdc.util.data.util with parameters of type Element Modifier and Type Method Description booleanAttributePredicate. accepts(Element element, String name, String value)Returnstruewhen the attribute must be kept.booleanElementPredicate. accepts(Parent parent, Element element)Returns true when an element must be kept.StringAttributeNameConverter. convertAttributeName(Element element, String name)Returns the name that should be used instead of the original name.StringAttributeValueConverter. convertAttributeValue(Element element, String name, String value)Returns the value that should be used instead of the original value.protected abstract RAbstractResourceLoader. loadRoot(Element root)Method that must be implemented by concrete classes to load the file.protected voidAbstractResourceLoader. unexpectedElement(Element element, String... expected)protected <V> VAbstractResourceLoader. unexpectedElement(Element element, V def, String... expected)Method parameters in cdc.util.data.util with type arguments of type Element Modifier and Type Method Description static ElementPredicateElementPredicate. fromPredicate(Predicate<Element> predicate)static voidDataUtils. moveAttributeFirst(Parent parent, Predicate<? super Element> predicate, String name, Evaluator<? super Parent> evaluator)Moves the attribute that has a given name to first position, if it exists.static voidDataUtils. setNameOfMatchingElements(Parent parent, Predicate<? super Element> predicate, ElementNameConverter converter, Evaluator<? super Parent> evaluator)Sets the name of matching elements. -
Uses of Element in cdc.util.data.xml
Methods in cdc.util.data.xml that return Element Modifier and Type Method Description static ElementXmlDataReader. loadRoot(File file, Compressor compressor, XmlDataReader.Feature... features)static ElementXmlDataReader. loadRoot(File file, XmlDataReader.Feature... features)static ElementXmlDataReader. loadRoot(InputStream is, XmlDataReader.Feature... features)static ElementXmlDataReader. loadRoot(InputStream is, String systemId, Compressor compressor, XmlDataReader.Feature... features)static ElementXmlDataReader. loadRoot(InputStream is, String systemId, XmlDataReader.Feature... features)static ElementXmlDataReader. loadRoot(String filename, Compressor compressor, XmlDataReader.Feature... features)static ElementXmlDataReader. loadRoot(String filename, XmlDataReader.Feature... features)static ElementXmlDataReader. loadRoot(String s, Charset charset, XmlDataReader.Feature... features)static ElementXmlDataReader. loadRoot(URL url, Compressor compressor, XmlDataReader.Feature... features)static ElementXmlDataReader. loadRoot(URL url, XmlDataReader.Feature... features)ElementXmlDataReader. readRoot(File file)Reads a file.ElementXmlDataReader. readRoot(File file, Compressor compressor)Reads a file.ElementXmlDataReader. readRoot(InputStream is)ElementXmlDataReader. readRoot(InputStream is, Compressor compressor)ElementXmlDataReader. readRoot(InputStream is, String systemId)Reads an InputStream.ElementXmlDataReader. readRoot(InputStream is, String systemId, Compressor compressor)ElementXmlDataReader. readRoot(String filename)Reads a file.ElementXmlDataReader. readRoot(String filename, Compressor compressor)Reads a file.ElementXmlDataReader. readRoot(String s, Charset charset)Reads a string.ElementXmlDataReader. readRoot(URL url)Reads an URL.ElementXmlDataReader. readRoot(URL url, Compressor compressor)Reads an URL.
-