A C D E F G H I J L M N O P R S T U V W X
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractChild - Class in cdc.util.data
-
Base class of nodes that are children (they have a parent node).
- AbstractChild() - Constructor for class cdc.util.data.AbstractChild
- AbstractContentNode - Class in cdc.util.data
-
Base class for nodes with content: text and comment.
- AbstractContentNode(Parent, String) - Constructor for class cdc.util.data.AbstractContentNode
- AbstractResourceLoader<R> - Class in cdc.util.data.util
-
Helper class dedicated to data loading.
- AbstractResourceLoader(FailureReaction) - Constructor for class cdc.util.data.util.AbstractResourceLoader
-
Creates a Loader with reaction to adopt in case of error.
- accepts(Element, String, String) - Method in interface cdc.util.data.util.AttributePredicate
-
Returns
truewhen the attribute must be kept. - accepts(Parent, Element) - Method in interface cdc.util.data.util.ElementPredicate
-
Returns true when an element must be kept.
- accepts(Parent, Text) - Method in interface cdc.util.data.util.TextPredicate
-
Returns
truewhen a text must be kept. - addAttribute(Attribute) - Method in class cdc.util.data.Element
-
Adds an attribute.
- addAttribute(String, boolean) - Method in class cdc.util.data.Element
-
Adds a boolean attribute.
- addAttribute(String, byte) - Method in class cdc.util.data.Element
-
Adds a byte attribute.
- addAttribute(String, double) - Method in class cdc.util.data.Element
-
Adds a double attribute.
- addAttribute(String, float) - Method in class cdc.util.data.Element
-
Adds a float attribute.
- addAttribute(String, int) - Method in class cdc.util.data.Element
-
Adds an int attribute.
- addAttribute(String, long) - Method in class cdc.util.data.Element
-
Adds a long attribute.
- addAttribute(String, short) - Method in class cdc.util.data.Element
-
Adds a short attribute.
- addAttribute(String, Object) - Method in class cdc.util.data.Element
-
Adds an object attribute.
- addAttribute(String, String) - Method in class cdc.util.data.Element
-
Adds a string attribute.
- addAttributes(Attribute...) - Method in class cdc.util.data.Element
-
Adds an array of attributes to this element.
- addAttributes(Collection<Attribute>) - Method in class cdc.util.data.Element
-
Adds all attributes of a collection to this element.
- addChild(C) - Method in interface cdc.util.data.Parent
-
Adds a child to this parent.
- addChildren(Child...) - Method in interface cdc.util.data.Parent
-
Adds all children of an array to this parent.
- addChildren(Iterable<? extends Child>) - Method in interface cdc.util.data.Parent
-
Adds all children of an Iterable to this parent.
- addComment(String) - Method in interface cdc.util.data.Parent
-
Adds a comment as last child.
- addComment(String, boolean) - Method in interface cdc.util.data.Parent
-
Adds a comment as last child.
- addElement(String) - Method in interface cdc.util.data.Parent
-
Creates and adds a child element as last child, if possible.
- addText(String) - Method in class cdc.util.data.Element
-
Adds a text as last child.
- addText(String, boolean) - Method in class cdc.util.data.Element
-
Adds a text as last child.
- ALLOW_MIXED_CONTENT - cdc.util.data.xml.XmlDataReader.Feature
-
If enabled, mixed content is allowed.
- ALWAYS_ENTITIZE_ATTRIBUTES - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- and(AttributePredicate) - Method in interface cdc.util.data.util.AttributePredicate
-
Returns a predicate that is the logical
andcombination of this one and another one. - and(ElementPredicate) - Method in interface cdc.util.data.util.ElementPredicate
-
Returns a predicate that is the logical
andcombination of this one and another one. - and(TextPredicate) - Method in interface cdc.util.data.util.TextPredicate
-
Returns a predicate that is the logical
andcombination of this one and another one. - andThen(AttributeNameConverter) - Method in interface cdc.util.data.util.AttributeNameConverter
-
Returns a converter that first applies this converter and then
other. - andThen(AttributeValueConverter) - Method in interface cdc.util.data.util.AttributeValueConverter
-
Returns a converter that first applies this converter and then
other. - andThen(ElementNameConverter) - Method in interface cdc.util.data.util.ElementNameConverter
-
Returns a converter that first applies this converter and then
other. - andThen(TextContentConverter) - Method in interface cdc.util.data.util.TextContentConverter
-
Returns a converter that first applies this converter and then
other. - ANY_ATTRIBUTE - Static variable in interface cdc.util.data.util.AttributePredicate
-
An attribute predicate that always returns
true. - ANY_ELEMENT - Static variable in interface cdc.util.data.util.ElementPredicate
-
An element predicate that always returns
true. - ANY_NODE - Static variable in interface cdc.util.data.Node
-
A Node Predicate that always return
true. - ANY_TEXT - Static variable in interface cdc.util.data.util.TextPredicate
- APPEND_FINAL_EOL - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- appendContent(char[], int, int) - Method in class cdc.util.data.AbstractContentNode
- appendContent(CharSequence, int, int) - Method in class cdc.util.data.AbstractContentNode
- appendContent(String) - Method in class cdc.util.data.AbstractContentNode
- Attribute - Class in cdc.util.data
-
XML like attribute ([name, value] pair).
- Attribute(Attribute) - Constructor for class cdc.util.data.Attribute
- Attribute(String) - Constructor for class cdc.util.data.Attribute
- Attribute(String, boolean) - Constructor for class cdc.util.data.Attribute
- Attribute(String, byte) - Constructor for class cdc.util.data.Attribute
- Attribute(String, double) - Constructor for class cdc.util.data.Attribute
- Attribute(String, float) - Constructor for class cdc.util.data.Attribute
- Attribute(String, int) - Constructor for class cdc.util.data.Attribute
- Attribute(String, long) - Constructor for class cdc.util.data.Attribute
- Attribute(String, short) - Constructor for class cdc.util.data.Attribute
- Attribute(String, E) - Constructor for class cdc.util.data.Attribute
- Attribute(String, Object) - Constructor for class cdc.util.data.Attribute
- Attribute(String, String) - Constructor for class cdc.util.data.Attribute
- ATTRIBUTE - cdc.util.data.paths.Part.Type
-
The part designates an attribute.
- attributeFilter - Variable in class cdc.util.data.xml.XmlDataReader
-
The filter attributes.
- attributeNameConverter - Variable in class cdc.util.data.xml.XmlDataReader
-
Attribute name converter.
- AttributeNameConverter - Interface in cdc.util.data.util
-
Interface used to convert (replace) an attribute name.
- AttributePredicate - Interface in cdc.util.data.util
-
Interface used to filter attributes.
- attributeValueConverter - Variable in class cdc.util.data.xml.XmlDataReader
-
Attribute value converter.
- AttributeValueConverter - Interface in cdc.util.data.util
-
Interface used to convert (replace) an attribute value.
C
- canAddChild(Child) - Method in class cdc.util.data.Document
- canAddChild(Child) - Method in class cdc.util.data.Element
- canAddChild(Child) - Method in interface cdc.util.data.Parent
-
Returns
truewhen a child can be added. - cdc.util.data - package cdc.util.data
- cdc.util.data.paths - package cdc.util.data.paths
- cdc.util.data.tools - package cdc.util.data.tools
- cdc.util.data.util - package cdc.util.data.util
- cdc.util.data.xml - package cdc.util.data.xml
- changeAttributeValue(String, UnaryOperator<String>) - Method in class cdc.util.data.Element
-
Changes the value of attributes that have a given name.
- changeAttributeValue(String, UnaryOperator<String>, boolean) - Method in class cdc.util.data.Element
-
Changes the value of attributes that have a given name.
- changeComments(Function<String, String>) - Method in interface cdc.util.data.Parent
-
Changes all comments locally.
- changeComments(Function<String, String>, boolean) - Method in interface cdc.util.data.Parent
-
Changes all comments recursively.
- changeName(UnaryOperator<String>) - Method in class cdc.util.data.Element
-
Changes the element name.
- changeName(UnaryOperator<String>, boolean) - Method in class cdc.util.data.Element
-
Changes element names recursively.
- changeNamedTexts(String, Function<String, String>) - Method in interface cdc.util.data.Parent
-
Changes or set text under element that have a given name, locally.
- changeNamedTexts(String, Function<String, String>, boolean) - Method in interface cdc.util.data.Parent
-
Changes or set text under element that have a given name, recursively.
- changeTexts(Function<String, String>) - Method in interface cdc.util.data.Parent
-
Changes all texts locally.
- changeTexts(Function<String, String>, boolean) - Method in interface cdc.util.data.Parent
-
Changes all texts recursively.
- Child - Interface in cdc.util.data
-
Interface implemented by child nodes: they have an optional parent.
- clearContent() - Method in class cdc.util.data.AbstractContentNode
- clone(boolean) - Method in class cdc.util.data.AbstractChild
- clone(boolean) - Method in interface cdc.util.data.Child
- clone(boolean) - Method in class cdc.util.data.Comment
- clone(boolean) - Method in class cdc.util.data.Document
- clone(boolean) - Method in class cdc.util.data.Element
- clone(boolean) - Method in interface cdc.util.data.Node
-
Return a clone of this node.
- clone(boolean) - Method in interface cdc.util.data.Parent
- clone(boolean) - Method in class cdc.util.data.Text
- close() - Method in class cdc.util.data.xml.XmlDataWriter
- Comment - Class in cdc.util.data
-
Comment node.
- Comment() - Constructor for class cdc.util.data.Comment
- Comment(Comment) - Constructor for class cdc.util.data.Comment
- Comment(Parent) - Constructor for class cdc.util.data.Comment
- Comment(Parent, String) - Constructor for class cdc.util.data.Comment
- Comment(String) - Constructor for class cdc.util.data.Comment
- COMMENT - cdc.util.data.NodeType
- compareAttribute(String) - Static method in class cdc.util.data.Element
-
Returns a comparator that compares the values of a particular attribute.
- compareNameAndAttribute(String) - Static method in class cdc.util.data.Element
-
Returns a comparator that compares the names then the values of a particular attribute.
- compose(AttributeNameConverter) - Method in interface cdc.util.data.util.AttributeNameConverter
-
Returns a converter that first applies
otherthen this converter. - compose(AttributeValueConverter) - Method in interface cdc.util.data.util.AttributeValueConverter
-
Returns a converter that first applies
otherthen this converter. - compose(ElementNameConverter) - Method in interface cdc.util.data.util.ElementNameConverter
-
Returns a converter that first applies
otherthen this converter. - compose(TextContentConverter) - Method in interface cdc.util.data.util.TextContentConverter
-
Returns a converter that first applies
otherthen this converter. - convertAttributeName(Element, String) - Method in interface cdc.util.data.util.AttributeNameConverter
-
Returns the name that should be used instead of the original name.
- convertAttributeValue(Element, String, String) - Method in interface cdc.util.data.util.AttributeValueConverter
-
Returns the value that should be used instead of the original value.
- convertElementName(Parent, String) - Method in interface cdc.util.data.util.ElementNameConverter
-
Returns the element name to use instead of the original name.
- convertTextContent(Parent, String) - Method in interface cdc.util.data.util.TextContentConverter
- create(XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
D
- DataDebug - Class in cdc.util.data.util
- DataException - Exception in cdc.util.data
- DataException() - Constructor for exception cdc.util.data.DataException
- DataException(String) - Constructor for exception cdc.util.data.DataException
- DataException(String, Throwable) - Constructor for exception cdc.util.data.DataException
- DataStats - Class in cdc.util.data.util
- DataStats(Node) - Constructor for class cdc.util.data.util.DataStats
- DataUtils - Class in cdc.util.data.util
-
Utilities for modification of data trees.
- deepEquals(Node) - Method in class cdc.util.data.AbstractContentNode
- deepEquals(Node) - Method in class cdc.util.data.Document
- deepEquals(Node) - Method in class cdc.util.data.Element
- deepEquals(Node) - Method in interface cdc.util.data.Node
-
Return true when this node and its descendants equals other node hierarchy.
- DELAYED_PROCESSING - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- detach() - Method in interface cdc.util.data.Child
-
Detach this child from its parent.
- Document - Class in cdc.util.data
-
XML like Document node.
- Document() - Constructor for class cdc.util.data.Document
- DOCUMENT - cdc.util.data.NodeType
-
The node is a document (it is a
Parent). - DOT - cdc.util.data.paths.Part.Type
- DOT - Static variable in class cdc.util.data.paths.Part
- DOT_DOT - cdc.util.data.paths.Part.Type
- DOT_DOT - Static variable in class cdc.util.data.paths.Part
- DUMMY_ENTITY_RESOLVER - cdc.util.data.xml.XmlDataReader.Feature
-
If enabled, a dummy entity resolver is used.
E
- Element - Class in cdc.util.data
-
XML like Element node.
- Element(Element) - Constructor for class cdc.util.data.Element
-
Creates an element by cloning another one.
- Element(Parent, String) - Constructor for class cdc.util.data.Element
-
Creates an element.
- Element(String) - Constructor for class cdc.util.data.Element
-
Creates an element.
- ELEMENT - cdc.util.data.NodeType
- ELEMENT - cdc.util.data.paths.Part.Type
-
The part designates a named element.
- ELEMENT_NAME_AND_ATTRIBUTES_COMPARATOR - Static variable in interface cdc.util.data.Node
- ELEMENT_NAME_COMPARATOR - Static variable in interface cdc.util.data.Node
- ElementContentType - Enum in cdc.util.data
-
Enumeration of possible element content types.
- elementNameConverter - Variable in class cdc.util.data.xml.XmlDataReader
-
Element name converter.
- ElementNameConverter - Interface in cdc.util.data.util
-
Interface used to convert an element name.
- elementPostFilter - Variable in class cdc.util.data.xml.XmlDataReader
-
The filter to use when all the children of an element are created.
- ElementPredicate - Interface in cdc.util.data.util
-
Interface used to filter elements.
- elementPreFilter - Variable in class cdc.util.data.xml.XmlDataReader
-
The filter to use when the element is created.
- EMPTY - cdc.util.data.ElementContentType
-
The element has no children.
- EMPTY_ELEMENT - Static variable in interface cdc.util.data.util.ElementPredicate
-
An element predicate that returns
truewhen the element is empty. - entityResolver - Variable in class cdc.util.data.xml.XmlDataReader
-
The entity resolver.
- equals(Object) - Method in class cdc.util.data.AbstractChild
- equals(Object) - Method in class cdc.util.data.Attribute
- equals(Object) - Method in class cdc.util.data.Document
- equals(Object) - Method in class cdc.util.data.paths.Path
- execute(XmlCheckClassRefs.MainArgs) - Static method in class cdc.util.data.tools.XmlCheckClassRefs
- execute(XmlNormalizer.MainArgs) - Static method in class cdc.util.data.tools.XmlNormalizer
F
- features - Variable in class cdc.util.data.tools.XmlNormalizer.MainArgs
- firstAttributes - Variable in class cdc.util.data.tools.XmlNormalizer.MainArgs
-
List of attributes names to move to first position.
- flush() - Method in class cdc.util.data.xml.XmlDataWriter
- fromContentFunction(UnaryOperator<String>) - Static method in interface cdc.util.data.util.TextContentConverter
-
Creates a new TextContentConverter from a content converter function.
- fromContentMap(Map<String, String>) - Static method in interface cdc.util.data.util.TextContentConverter
-
Creates a new TextContentConverter from a map.
- fromElementNames(Collection<String>) - Static method in interface cdc.util.data.util.TextPredicate
-
Returns an TextPredicate that returns true when the text id defined in an element whose name belongs to a collection.
- fromElementPaths(Collection<SPath>) - Static method in interface cdc.util.data.util.TextPredicate
- fromNameFunction(UnaryOperator<String>) - Static method in interface cdc.util.data.util.AttributeNameConverter
-
Creates a new AttributeNameConverter from a name converter function.
- fromNameFunction(UnaryOperator<String>) - Static method in interface cdc.util.data.util.ElementNameConverter
-
Creates a new ElementNameConverter from a name converter function.
- fromNameMap(Map<String, String>) - Static method in interface cdc.util.data.util.AttributeNameConverter
-
Creates a new AttributeNameConverter from a map.
- fromNameMap(Map<String, String>) - Static method in interface cdc.util.data.util.AttributeValueConverter
-
Creates a new AttributeValueConverter from an attribute name to value map.
- fromNameMap(Map<String, String>) - Static method in interface cdc.util.data.util.ElementNameConverter
-
Creates a new AttributeNameConverter from a map.
- fromNameMap(Map<String, String>) - Static method in interface cdc.util.data.util.TextContentConverter
- fromNames(Collection<String>) - Static method in interface cdc.util.data.util.AttributePredicate
-
Returns an AttributePredicate that returns true when the attribute has a names belonging to a collection.
- fromNames(Collection<String>) - Static method in interface cdc.util.data.util.ElementPredicate
-
Returns a predicate that returns
truewhen the element name belongs to a collection. - fromPathMap(Map<SPath, String>) - Static method in interface cdc.util.data.util.AttributeNameConverter
- fromPathMap(Map<SPath, String>) - Static method in interface cdc.util.data.util.AttributeValueConverter
- fromPathMap(Map<SPath, String>) - Static method in interface cdc.util.data.util.ElementNameConverter
- fromPathMap(Map<SPath, String>) - Static method in interface cdc.util.data.util.TextContentConverter
- fromPaths(Collection<SPath>) - Static method in interface cdc.util.data.util.AttributePredicate
- fromPaths(Collection<SPath>) - Static method in interface cdc.util.data.util.ElementPredicate
- fromPredicate(Predicate<Element>) - Static method in interface cdc.util.data.util.ElementPredicate
- fromString(String) - Static method in interface cdc.util.data.util.AttributeValueConverter
- fromString(String) - Static method in interface cdc.util.data.util.TextContentConverter
- fromValueFunction(UnaryOperator<String>) - Static method in interface cdc.util.data.util.AttributeValueConverter
-
Creates a new AttributeValueConverter from a value converter function.
- fromValueMap(Map<String, String>) - Static method in interface cdc.util.data.util.AttributeValueConverter
-
Creates a new AttributeValueConverter from an attribute value map.
G
- getAttribute(String) - Method in class cdc.util.data.Element
-
Returns the attribute that has a particular name, or
null. - getAttributeAsBoolean(String, boolean) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a boolean or a default value.
- getAttributeAsByte(String, byte) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a byte.
- getAttributeAsDouble(String, double) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a double.
- getAttributeAsEnum(String, Class<E>, E) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as an enum.
- getAttributeAsFloat(String, float) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a float.
- getAttributeAsInt(String, int) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as an int.
- getAttributeAsLong(String, long) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a long.
- getAttributeAsOptionalBoolean(String, Boolean) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a Boolean or a default value.
- getAttributeAsOptionalByte(String, Byte) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a Byte.
- getAttributeAsOptionalDouble(String, Double) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a Double.
- getAttributeAsOptionalEnum(String, Class<E>, E) - Method in class cdc.util.data.Element
- getAttributeAsOptionalFloat(String, Float) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a Float.
- getAttributeAsOptionalInt(String, Integer) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as an Integer.
- getAttributeAsOptionalLong(String, Long) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a Long.
- getAttributeAsOptionalRawEnum(String, Class<? extends Enum<?>>, Enum<?>) - Method in class cdc.util.data.Element
- getAttributeAsOptionalShort(String, Short) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a Short.
- getAttributeAsRawEnum(String, Class<? extends Enum<?>>, Enum<?>) - Method in class cdc.util.data.Element
- getAttributeAsShort(String, short) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a short.
- getAttributeAt(int) - Method in class cdc.util.data.Element
-
Returns the attribute at a given index.
- getAttributeFilter() - Method in class cdc.util.data.xml.XmlDataReader
- getAttributeIndex(String) - Method in class cdc.util.data.Element
-
Returns the index of the attribute that has a particular name or -1.
- getAttributeName() - Method in class cdc.util.data.paths.Part
- getAttributeNameConverter() - Method in class cdc.util.data.xml.XmlDataReader
- getAttributes() - Method in class cdc.util.data.Element
- getAttributesCount() - Method in class cdc.util.data.Element
- getAttributesCount() - Method in class cdc.util.data.util.DataStats
- getAttributeValue(String) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a string or
null. - getAttributeValue(String, String) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute as a string or a default value.
- getAttributeValue(String, String, FailureReaction) - Method in class cdc.util.data.Element
-
Returns the value associated to an attribute.
- getAttributeValueConverter() - Method in class cdc.util.data.xml.XmlDataReader
- getChild(Class<T>) - Method in interface cdc.util.data.Parent
- getChild(Class<T>, Predicate<? super T>) - Method in interface cdc.util.data.Parent
- getChildAt(int) - Method in interface cdc.util.data.Parent
-
Returns the child at a given, index or null.
- getChildAt(Class<T>, int) - Method in interface cdc.util.data.Parent
-
Returns the child that is an instance of a given class and is at a given position.
- getChildAt(Class<T>, Predicate<? super T>, int) - Method in interface cdc.util.data.Parent
-
Returns the child that is an instance of a given class, matches a Predicate and is at a given position.
- getChildren() - Method in class cdc.util.data.Document
- getChildren() - Method in class cdc.util.data.Element
- getChildren() - Method in interface cdc.util.data.Parent
- getChildren(Class<T>) - Method in interface cdc.util.data.Parent
-
Returns an Iterable of children that are instance of a given class.
- getChildren(Class<T>, Predicate<? super T>) - Method in interface cdc.util.data.Parent
-
Returns an Iterable of children that are instance of a given class and match a predicate.
- getChildrenCount() - Method in interface cdc.util.data.Parent
- getChildrenCount(Class<? extends Node>) - Method in interface cdc.util.data.Parent
-
Returns the number of children that match a class.
- getChildrenCount(Class<T>, Predicate<? super T>) - Method in interface cdc.util.data.Parent
-
Returns the number of children that match a class and predicate.
- getComments() - Method in interface cdc.util.data.Parent
- getContent() - Method in class cdc.util.data.AbstractContentNode
- getContentType() - Method in class cdc.util.data.Element
- getDescription() - Method in enum cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- getDocument() - Method in class cdc.util.data.AbstractChild
- getDocument() - Method in class cdc.util.data.Document
- getDocument() - Method in interface cdc.util.data.Node
- getElementName() - Method in class cdc.util.data.paths.Part
- getElementNameConverter() - Method in class cdc.util.data.xml.XmlDataReader
- getElementNamed(String) - Method in interface cdc.util.data.Parent
-
Returns the first child element that has a given name or
null. - getElementNamedAt(String, int) - Method in interface cdc.util.data.Parent
-
Returns the child element that has a given name and index.
- getElementNamedIgnoreCase(String) - Method in interface cdc.util.data.Parent
-
Returns the first child element that has a given name, ignoring case, or
null. - getElementNamedIgnoreCaseAt(String, int) - Method in interface cdc.util.data.Parent
-
Returns the child element that has a given name, ignoring case, and index.
- getElementNamedText(String) - Method in class cdc.util.data.Element
-
Returns the text content of the first child element that has a given name.
- getElementNamedText(String, String) - Method in class cdc.util.data.Element
-
Returns the text content of the first child element that has a given name.
- getElementNamedWithAttribute(String, String, String) - Method in interface cdc.util.data.Parent
- getElementPostFilter() - Method in class cdc.util.data.xml.XmlDataReader
- getElementPreFilter() - Method in class cdc.util.data.xml.XmlDataReader
- getElements() - Method in interface cdc.util.data.Parent
- getElementsNamed(String) - Method in interface cdc.util.data.Parent
-
Returns an Iterable of children elements that have a given name.
- getElementsNamedIgnoreCase(String) - Method in interface cdc.util.data.Parent
-
Returns an Iterable of children elements that have a given name, ignoring case.
- getEntityResolver() - Method in class cdc.util.data.xml.XmlDataReader
- getIndex() - Method in interface cdc.util.data.Child
- getLastChild() - Method in interface cdc.util.data.Parent
- getLastPart() - Method in class cdc.util.data.paths.Path
- getLength() - Method in class cdc.util.data.paths.Path
- getLogger() - Method in class cdc.util.data.util.AbstractResourceLoader
- getModifiableChildren() - Method in class cdc.util.data.Document
- getModifiableChildren() - Method in class cdc.util.data.Element
- getModifiableChildren() - Method in interface cdc.util.data.Parent
- getName() - Method in class cdc.util.data.Attribute
- getName() - Method in class cdc.util.data.Element
- getName() - Method in class cdc.util.data.paths.Part
- getName() - Method in class cdc.util.data.paths.Path
- getName() - Method in enum cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- getNameAndAttributes(Element) - Static method in interface cdc.util.data.Node
- getNodesCount(NodeType) - Method in class cdc.util.data.util.DataStats
- getParent() - Method in class cdc.util.data.AbstractChild
- getParent() - Method in interface cdc.util.data.Child
- getParent() - Method in class cdc.util.data.paths.Path
- getParent(Class<E>) - Method in interface cdc.util.data.Child
-
Returns the parent of this child, cast to a target class.
- getPart(int) - Method in class cdc.util.data.paths.Path
- getParts() - Method in class cdc.util.data.paths.Path
- getParts() - Method in class cdc.util.data.paths.SPath
- getProgressSupplier() - Method in class cdc.util.data.util.AbstractResourceLoader
- getQName() - Method in class cdc.util.data.Comment
- getQName() - Method in class cdc.util.data.Document
- getQName() - Method in class cdc.util.data.Element
- getQName() - Method in interface cdc.util.data.Node
- getQName() - Method in class cdc.util.data.Text
- getReaction() - Method in class cdc.util.data.util.AbstractResourceLoader
- getRootChild() - Method in interface cdc.util.data.Child
-
Returns the highest ancestor of this child that is a child.
- getRootElement() - Method in class cdc.util.data.AbstractChild
- getRootElement() - Method in class cdc.util.data.Document
- getRootElement() - Method in interface cdc.util.data.Node
-
Returns the root element of this node.
- getRootElement(Document) - Static method in class cdc.util.data.Document
-
Returns the root element of a document.
- getSelectorName() - Method in class cdc.util.data.paths.Part
- getSelectorValue() - Method in class cdc.util.data.paths.Part
- getSortedAttributes() - Method in class cdc.util.data.Element
- getSubPath(int, int) - Method in class cdc.util.data.paths.Path
- getText() - Method in class cdc.util.data.Element
-
Returns the merged content of all children text nodes, if this node has no element children.
- getText(String) - Method in class cdc.util.data.Element
-
Returns the merged content of all children text nodes, if this node has no element children.
- getTextAsBoolean(boolean) - Method in class cdc.util.data.Element
- getTextAsByte(byte) - Method in class cdc.util.data.Element
- getTextAsDouble(double) - Method in class cdc.util.data.Element
- getTextAsEnum(Class<E>, E) - Method in class cdc.util.data.Element
- getTextAsFloat(float) - Method in class cdc.util.data.Element
- getTextAsInt(int) - Method in class cdc.util.data.Element
- getTextAsLong(long) - Method in class cdc.util.data.Element
- getTextAsOptionalBoolean(Boolean) - Method in class cdc.util.data.Element
- getTextAsOptionalByte(Byte) - Method in class cdc.util.data.Element
- getTextAsOptionalDouble(Double) - Method in class cdc.util.data.Element
- getTextAsOptionalEnum(Class<E>, E) - Method in class cdc.util.data.Element
- getTextAsOptionalFloat(Float) - Method in class cdc.util.data.Element
- getTextAsOptionalInt(Integer) - Method in class cdc.util.data.Element
- getTextAsOptionalLong(Long) - Method in class cdc.util.data.Element
- getTextAsOptionalShort(Short) - Method in class cdc.util.data.Element
- getTextAsShort(short) - Method in class cdc.util.data.Element
- getTextContentConverter() - Method in class cdc.util.data.xml.XmlDataReader
- getTexts() - Method in interface cdc.util.data.Parent
- getType() - Method in class cdc.util.data.Comment
- getType() - Method in class cdc.util.data.Document
- getType() - Method in class cdc.util.data.Element
- getType() - Method in interface cdc.util.data.Node
- getType() - Method in class cdc.util.data.paths.Part
- getType() - Method in class cdc.util.data.Text
- getType(String) - Static method in class cdc.util.data.paths.Part
- getValue() - Method in class cdc.util.data.Attribute
- getValueAsBoolean() - Method in class cdc.util.data.Attribute
- getValueAsByte() - Method in class cdc.util.data.Attribute
- getValueAsDouble() - Method in class cdc.util.data.Attribute
- getValueAsEnum(Class<E>) - Method in class cdc.util.data.Attribute
- getValueAsFloat() - Method in class cdc.util.data.Attribute
- getValueAsInt() - Method in class cdc.util.data.Attribute
- getValueAsLong() - Method in class cdc.util.data.Attribute
- getValueAsShort() - Method in class cdc.util.data.Attribute
- getXmlWriter() - Method in class cdc.util.data.xml.XmlDataWriter
H
- hasAllDescendantsMatching(Node, Predicate<Node>, boolean) - Static method in class cdc.util.data.util.DataUtils
- hasAncestorMatching(Node, Predicate<Node>) - Static method in class cdc.util.data.util.DataUtils
- hasAttribute(String) - Method in class cdc.util.data.Element
-
Returns
truewhen an attribute with a particular name exists. - hasAttribute(String, String) - Static method in class cdc.util.data.Element
-
Creates a Predicate that accepts Nodes that are elements that have an attribute with a given value.
- hasAttributes() - Method in class cdc.util.data.Element
- hasChildren() - Method in class cdc.util.data.Element
- hasChildren() - Method in interface cdc.util.data.Parent
- hasChildren(Class<? extends Node>) - Method in interface cdc.util.data.Parent
-
Returns
trueif this parent has children of a given class. - hasChildren(Class<T>, Predicate<? super T>) - Method in interface cdc.util.data.Parent
-
Returns
trueif this parent has children of a given class and matching a predicate. - hasComments() - Method in interface cdc.util.data.Parent
- hasDescendantMatching(Node, Predicate<Node>, boolean) - Static method in class cdc.util.data.util.DataUtils
- hasElements() - Method in interface cdc.util.data.Parent
- hashCode() - Method in class cdc.util.data.AbstractChild
- hashCode() - Method in class cdc.util.data.Attribute
- hashCode() - Method in class cdc.util.data.Document
- hashCode() - Method in class cdc.util.data.paths.Path
- hasOnlyNonText() - Method in class cdc.util.data.Element
- hasOnlyText() - Method in class cdc.util.data.Element
- hasTexts() - Method in interface cdc.util.data.Parent
I
- IDENTITY - Static variable in interface cdc.util.data.util.AttributeNameConverter
-
An attribute name converter that returns the name unchanged.
- IDENTITY - Static variable in interface cdc.util.data.util.ElementNameConverter
-
An element name converter that returns the name unchanged.
- IDENTITY - Static variable in interface cdc.util.data.util.TextContentConverter
- IGNORABLE_TEXT - Static variable in interface cdc.util.data.util.TextPredicate
- INDENTITY - Static variable in interface cdc.util.data.util.AttributeValueConverter
-
An attribute value converter that returns the value unchanged.
- indentString - Variable in class cdc.util.data.tools.XmlNormalizer.MainArgs
-
String to use for indentation.
- input - Variable in class cdc.util.data.tools.XmlCheckClassRefs.MainArgs
- inputFile - Variable in class cdc.util.data.tools.XmlNormalizer.MainArgs
- IS_COMMENT - Static variable in interface cdc.util.data.Node
-
A Node Predicate that returns
truewhen the node is a Comment. - IS_ELEMENT - Static variable in interface cdc.util.data.Node
-
A Node Predicate that returns
truewhen the node is an Element. - IS_EMPTY_ATTRIBUTE - Static variable in interface cdc.util.data.util.AttributePredicate
-
An attribute predicate that returns
truewhen an attribute value isnullor empty. - IS_IGNORABLE_TEXT - Static variable in interface cdc.util.data.Node
-
A Node Predicate that returns
truewhen the node is a Text that is ignorable. - IS_NOT_EMPTY_ATTRIBUTE - Static variable in interface cdc.util.data.util.AttributePredicate
-
An attribute predicate that returns
truewhen an attribute value is neithernullnor empty. - IS_PURE_ELEMENT - Static variable in interface cdc.util.data.Node
-
A Node Predicate that returns
truewhen the node is an Element that has no attributes and no children . - IS_TEXT - Static variable in interface cdc.util.data.Node
-
A Node Predicate that returns
truewhen the node is a Text. - isAttribute() - Method in class cdc.util.data.paths.SPath
- isEmpty() - Method in class cdc.util.data.Element
- isEnabled(XmlNormalizer.MainArgs.Feature) - Method in class cdc.util.data.tools.XmlNormalizer.MainArgs
- isEnabled(XmlDataReader.Feature) - Method in class cdc.util.data.xml.XmlDataReader
-
Returns
truewhen a feature is enabled. - isIgnorable() - Method in class cdc.util.data.Text
- isMixed() - Method in class cdc.util.data.Element
- isPure() - Method in class cdc.util.data.Element
- isRoot() - Method in class cdc.util.data.Element
J
- jarFiles - Variable in class cdc.util.data.tools.XmlCheckClassRefs.MainArgs
L
- Leaf - Interface in cdc.util.data
-
Interface implemented by leaf nodes (they have no children).
- load(File, Compressor, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- load(File, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- load(InputStream, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- load(InputStream, String, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- load(String, Compressor, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- load(String, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- load(String, Charset, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- load(URL, Compressor, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- load(URL, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- LOAD_COMMENTS - cdc.util.data.xml.XmlDataReader.Feature
-
If enabled, comments are loaded (as comment nodes).
- LOAD_SPACES - cdc.util.data.xml.XmlDataReader.Feature
-
If enabled, spaces are loaded (as text nodes).
- loadRoot(Element) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Method that must be implemented by concrete classes to load the file.
- loadRoot(File, Compressor, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- loadRoot(File, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- loadRoot(InputStream, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- loadRoot(InputStream, String, Compressor, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- loadRoot(InputStream, String, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- loadRoot(String, Compressor, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- loadRoot(String, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- loadRoot(String, Charset, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- loadRoot(URL, Compressor, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- loadRoot(URL, XmlDataReader.Feature...) - Static method in class cdc.util.data.xml.XmlDataReader
- loadXml(File, Compressor, XmlDataReader.Feature...) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Loads an XML file, possibly compressed.
- loadXml(File, XmlDataReader.Feature...) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Loads an uncompressed XML file.
- loadXml(InputStream, String, Compressor, XmlDataReader.Feature...) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Loads an XML input stream, possibly compressed.
- loadXml(InputStream, String, XmlDataReader.Feature...) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Loads an uncompressed XML input stream.
- loadXml(String, Compressor, XmlDataReader.Feature...) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Loads an XML file, possibly compressed.
- loadXml(String, XmlDataReader.Feature...) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Loads an uncompressed XML file.
- loadXml(URL, Compressor, XmlDataReader.Feature...) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Loads an XML URL, possibly compressed.
- loadXml(URL, XmlDataReader.Feature...) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Loads an uncompressed XML URL.
- loadXml(List<URL>, Compressor, XmlDataReader.Feature...) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Loads a list of XML URLs, possibly compressed.
- loadXml(List<URL>, XmlDataReader.Feature...) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Loads a list of uncompressed XML URLs.
- LOGGER - Static variable in class cdc.util.data.tools.XmlCheckClassRefs
- LOGGER - Static variable in class cdc.util.data.tools.XmlNormalizer
- LOGGER - Static variable in class cdc.util.data.xml.XmlDataReader
- LOGGER - Static variable in class cdc.util.data.xml.XmlDataWriter
M
- main(String[]) - Static method in class cdc.util.data.tools.XmlCheckClassRefs
- main(String[]) - Static method in class cdc.util.data.tools.XmlNormalizer
- MainArgs() - Constructor for class cdc.util.data.tools.XmlCheckClassRefs.MainArgs
- MainArgs() - Constructor for class cdc.util.data.tools.XmlNormalizer.MainArgs
- matchesAttribute(Element, String) - Method in class cdc.util.data.paths.SPath
- matchesElement(Parent) - Method in class cdc.util.data.paths.SPath
- matchesElement(Parent, String) - Method in class cdc.util.data.paths.SPath
- matching(Set<SPath>) - Static method in class cdc.util.data.Element
- mergeComments() - Method in interface cdc.util.data.Parent
-
Merges all consecutive comments locally.
- mergeComments(boolean) - Method in interface cdc.util.data.Parent
-
Merges all consecutive comments recursively.
- mergeTexts() - Method in interface cdc.util.data.Parent
-
Merges all consecutive texts locally.
- mergeTexts(boolean) - Method in interface cdc.util.data.Parent
-
Merges all consecutive texts recursively.
- MIXED - cdc.util.data.ElementContentType
-
The element has text and non-text (element or comment) children.
- moveAttributeFirst(Parent, Predicate<? super Element>, String, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Moves the attribute that has a given name to first position, if it exists.
N
- NAME_COMPARATOR - Static variable in class cdc.util.data.Attribute
-
A Comparator of attributes that compares names.
- NAME_COMPARATOR - Static variable in class cdc.util.data.Element
-
A comparator of elements using their names.
- named(String) - Static method in class cdc.util.data.Attribute
-
Creates a Predicate that accepts Attributes with a given name.
- named(String) - Static method in class cdc.util.data.Element
-
Creates a Predicate that accepts Nodes that are element with a given name.
- named(String...) - Static method in class cdc.util.data.Attribute
-
Creates a Predicate that accepts Attributes with a name belonging to an array.
- named(String...) - Static method in class cdc.util.data.Element
-
Creates a Predicate that accepts Nodes that are element whose named belongs to an array.
- named(Set<String>) - Static method in class cdc.util.data.Attribute
-
Creates a Predicate that accepts Attributes with a name belonging to a set.
- named(Set<String>) - Static method in class cdc.util.data.Element
-
Creates a Predicate that accepts Nodes that are element whose named belongs to a set.
- namedIgnoreCase(String) - Static method in class cdc.util.data.Element
-
Creates a Predicate that accepts Nodes that are element with a given name, ignoring case.
- namedWithAttribute(String, String, String) - Static method in class cdc.util.data.Element
-
Creates a Predicate that accepts Nodes that are elements with a given name and have an attribute with a given value.
- Node - Interface in cdc.util.data
-
Base interface of data nodes.
- Nodes - Class in cdc.util.data
- NodeType - Enum in cdc.util.data
-
Enumeration of possible node types.
- NON_IGNORABLE_TEXT - Static variable in interface cdc.util.data.util.TextPredicate
- NON_TEXT - cdc.util.data.ElementContentType
-
The element has only non-text children: elements or comments.
- normalize() - Method in class cdc.util.data.paths.Path
- not() - Method in interface cdc.util.data.util.AttributePredicate
- not() - Method in interface cdc.util.data.util.ElementPredicate
- not() - Method in interface cdc.util.data.util.TextPredicate
O
- onError(String) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Function that either keeps silent, warns or raises an exception, depending on error reaction.
- onError(String, T) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Function that either silently returns a value, warns and returns a value or raises an exception, depending on error reaction.
- onResult(T, String, T) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Function that returns a computed value if it is not
null, or silently returns a default value, warns and returns a default value or throws an exception. - or(AttributePredicate) - Method in interface cdc.util.data.util.AttributePredicate
-
Returns a predicate that is the logical
orcombination of this one and another one. - or(ElementPredicate) - Method in interface cdc.util.data.util.ElementPredicate
-
Returns a predicate that is the logical
orcombination of this one and another one. - or(TextPredicate) - Method in interface cdc.util.data.util.TextPredicate
-
Returns a predicate that is the logical
orcombination of this one and another one. - outputFile - Variable in class cdc.util.data.tools.XmlNormalizer.MainArgs
P
- Parent - Interface in cdc.util.data
-
Interface implemented by nodes that are parents (they have children nodes): Document and Element.
- Part - Class in cdc.util.data.paths
-
Elementary parts that constitute a Path.
- Part(String) - Constructor for class cdc.util.data.paths.Part
- Part.Type - Enum in cdc.util.data.paths
-
Enumeration of possible part types.
- Path - Class in cdc.util.data.paths
-
Simple XPath like class.
- Path(String) - Constructor for class cdc.util.data.paths.Path
- paths - Variable in class cdc.util.data.tools.XmlCheckClassRefs.MainArgs
-
Set of attributes and elements to analyze.
- PRETTY_PRINT - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- print(Document, PrintStream, String, boolean, XmlWriter.Feature...) - Static method in class cdc.util.data.xml.XmlDataWriter
-
Prints a Document to a PrintStream.
- print(Node, boolean, PrintStream, String, boolean, XmlWriter.Feature...) - Static method in class cdc.util.data.xml.XmlDataWriter
-
Prints a Node to a PrintStream.
- print(Node, int, PrintStream) - Static method in class cdc.util.data.util.DataDebug
- print(Node, Node, Node, int, PrintStream) - Static method in class cdc.util.data.util.DataDebug
- print(Node, PrintStream) - Static method in class cdc.util.data.util.DataStats
- print(Node, Logger, Level) - Static method in class cdc.util.data.Nodes
- print(PrintStream) - Method in class cdc.util.data.util.DataStats
- PURE_ELEMENT - Static variable in interface cdc.util.data.util.ElementPredicate
-
An element predicate that returns
truewhen the element is empty and has no attribute.
R
- read(File) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads a file.
- read(File, Compressor) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads a file.
- read(InputStream) - Method in class cdc.util.data.xml.XmlDataReader
- read(InputStream, Compressor) - Method in class cdc.util.data.xml.XmlDataReader
- read(InputStream, String) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads an InputStream.
- read(InputStream, String, Compressor) - Method in class cdc.util.data.xml.XmlDataReader
- read(String) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads a file.
- read(String, Compressor) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads a file.
- read(String, Charset) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads a string.
- read(URL) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads an URL.
- read(URL, Compressor) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads an URL.
- readRoot(File) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads a file.
- readRoot(File, Compressor) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads a file.
- readRoot(InputStream) - Method in class cdc.util.data.xml.XmlDataReader
- readRoot(InputStream, Compressor) - Method in class cdc.util.data.xml.XmlDataReader
- readRoot(InputStream, String) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads an InputStream.
- readRoot(InputStream, String, Compressor) - Method in class cdc.util.data.xml.XmlDataReader
- readRoot(String) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads a file.
- readRoot(String, Compressor) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads a file.
- readRoot(String, Charset) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads a string.
- readRoot(URL) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads an URL.
- readRoot(URL, Compressor) - Method in class cdc.util.data.xml.XmlDataReader
-
Reads an URL.
- RECURSE - Static variable in class cdc.util.data.util.DataUtils
- REMOVE_COMMENTS - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- REMOVE_EMPTY_ATTRIBUTES - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- REMOVE_PURE_ELEMENTS - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- removeAttribute(String) - Method in class cdc.util.data.Element
-
Removes an attribute identified by its name.
- removeAttributes() - Method in class cdc.util.data.Element
-
Remove all attributes of this element.
- removeAttributes(Predicate<Attribute>) - Method in class cdc.util.data.Element
- removeAttributes(Predicate<Attribute>, boolean) - Method in class cdc.util.data.Element
- removeAttributesNamed(String) - Method in class cdc.util.data.Element
- removeAttributesNamed(String...) - Method in class cdc.util.data.Element
- removeAttributesNamed(String, boolean) - Method in class cdc.util.data.Element
- removeAttributesNamed(Set<String>) - Method in class cdc.util.data.Element
- removeAttributesNamed(Set<String>, boolean) - Method in class cdc.util.data.Element
- removeChild(Child) - Method in interface cdc.util.data.Parent
-
Remove a child.
- removeChildAt(int) - Method in interface cdc.util.data.Parent
-
Removes the child located at a given index.
- removeChildren() - Method in interface cdc.util.data.Parent
-
Removes all children locally.
- removeChildren(Predicate<? super Child>) - Method in interface cdc.util.data.Parent
-
Removes all children that match a predicate.
- removeChildren(Predicate<? super Child>, boolean, boolean) - Method in interface cdc.util.data.Parent
-
Removes all children that match a predicate, recursively.
- removeComments() - Method in interface cdc.util.data.Parent
-
Removes all comments locally.
- removeComments(boolean) - Method in interface cdc.util.data.Parent
-
Removes all comments recursively.
- removeComments(Parent, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Removes comments nodes.
- removed - Variable in class cdc.util.data.tools.XmlNormalizer.MainArgs
-
Set of attributes and elements to remove.
- removeElementsNamed(String) - Method in interface cdc.util.data.Parent
-
Removes all children elements that have a given name.
- removeElementsNamed(String, boolean) - Method in interface cdc.util.data.Parent
-
Removes all children elements that have a given name, recursively.
- removeEmptyAttributes(Parent, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Recursively removes empty attributes.
- removeIgnorableText(Parent, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Removes text that can be ignored.
- removeIgnorableTexts() - Method in interface cdc.util.data.Parent
-
Removes all ignorable texts locally.
- removeIgnorableTexts(boolean) - Method in interface cdc.util.data.Parent
-
Removes all ignorable texts recursively.
- removeMatchingAttributes(Parent, AttributePredicate, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Removes matching attributes.
- removeMatchingChildren(Parent, Predicate<? super Child>, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Removes matching children.
- removePureElements(Parent, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Removes pure elements (they have no children and no attributes).
- removeTexts() - Method in interface cdc.util.data.Parent
-
Removes all texts locally.
- removeTexts(boolean) - Method in interface cdc.util.data.Parent
-
Removes all texts recursively.
- renamed - Variable in class cdc.util.data.tools.XmlNormalizer.MainArgs
-
Renaming of attributes and elements.
- resetParent() - Method in class cdc.util.data.AbstractChild
S
- save(Document, File, String, XmlWriter.Feature...) - Static method in class cdc.util.data.xml.XmlDataWriter
-
Saves a Document to a File.
- save(Document, OutputStream, String, XmlWriter.Feature...) - Static method in class cdc.util.data.xml.XmlDataWriter
-
Saves a Document to an OutputStream.
- save(Document, Writer, String, XmlWriter.Feature...) - Static method in class cdc.util.data.xml.XmlDataWriter
-
Saves a Document to a Writer.
- save(Document, String, String, XmlWriter.Feature...) - Static method in class cdc.util.data.xml.XmlDataWriter
-
Saves a Document to a File.
- save(Node, boolean, File, String, XmlWriter.Feature...) - Static method in class cdc.util.data.xml.XmlDataWriter
-
Saves a Node to a File.
- save(Node, boolean, OutputStream, String, XmlWriter.Feature...) - Static method in class cdc.util.data.xml.XmlDataWriter
-
Saves a Node to an OutputStream.
- save(Node, boolean, Writer, String, XmlWriter.Feature...) - Static method in class cdc.util.data.xml.XmlDataWriter
-
Saves a Node to a Writer.
- save(Node, boolean, String, String, XmlWriter.Feature...) - Static method in class cdc.util.data.xml.XmlDataWriter
-
Saves a Node to a File.
- scramble(boolean) - Static method in interface cdc.util.data.util.AttributeValueConverter
- scramble(boolean) - Static method in interface cdc.util.data.util.TextContentConverter
- SCRAMBLE_ATTRIBUTES - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- SCRAMBLE_ELEMENTS - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- scrambled - Variable in class cdc.util.data.tools.XmlNormalizer.MainArgs
-
Set of attributes and elements to scramble.
- SELECTOR - cdc.util.data.paths.Part.Type
-
The part designates an element selector, using an attribute.
- set - Variable in class cdc.util.data.tools.XmlNormalizer.MainArgs
-
Setting of attributes values and elements contents.
- setAttributeFilter(AttributePredicate) - Method in class cdc.util.data.xml.XmlDataReader
-
Sets the attribute filter.
- setAttributeNameConverter(AttributeNameConverter) - Method in class cdc.util.data.xml.XmlDataReader
-
Sets the attribute name converter.
- setAttributeValueConverter(AttributeValueConverter) - Method in class cdc.util.data.xml.XmlDataReader
-
Sets the attribute value converter.
- setContent(String) - Method in class cdc.util.data.AbstractContentNode
- setContentOfMatchingElements(Parent, ElementPredicate, TextContentConverter, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
- setContentOfMatchingTexts(Parent, TextPredicate, TextContentConverter, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Sets the content of matching texts.
- setElementNameConverter(ElementNameConverter) - Method in class cdc.util.data.xml.XmlDataReader
-
Sets the element name converter.
- setElementPostFilter(ElementPredicate) - Method in class cdc.util.data.xml.XmlDataReader
-
Sets the element post filter.
- setElementPreFilter(ElementPredicate) - Method in class cdc.util.data.xml.XmlDataReader
-
Sets the element pre filter.
- setEnabled(XmlNormalizer.MainArgs.Feature, boolean) - Method in class cdc.util.data.tools.XmlNormalizer.MainArgs
- setEnabled(XmlDataReader.Feature, boolean) - Method in class cdc.util.data.xml.XmlDataReader
-
Enables or disables a feature.
- setEntityResolver(EntityResolver) - Method in class cdc.util.data.xml.XmlDataReader
-
Sets the entity resolver.
- setIndex(int) - Method in interface cdc.util.data.Child
-
Set the index of this child.
- setName(String) - Method in class cdc.util.data.Element
-
Sets the name of this element.
- setNameOfMatchingAttributes(Parent, AttributePredicate, AttributeNameConverter, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Sets names of matching attributes.
- setNameOfMatchingElements(Parent, Predicate<? super Element>, ElementNameConverter, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Sets the name of matching elements.
- setParent(Parent) - Method in class cdc.util.data.AbstractChild
- setParent(Parent) - Method in interface cdc.util.data.Child
-
Sets or changes the parent of this child.
- setProgressController(ProgressController) - Method in class cdc.util.data.util.AbstractResourceLoader
-
Associates a progress controller to this loader.
- setTextContentConverter(TextContentConverter) - Method in class cdc.util.data.xml.XmlDataReader
- setValue(boolean) - Method in class cdc.util.data.Attribute
- setValue(byte) - Method in class cdc.util.data.Attribute
- setValue(double) - Method in class cdc.util.data.Attribute
- setValue(float) - Method in class cdc.util.data.Attribute
- setValue(int) - Method in class cdc.util.data.Attribute
- setValue(long) - Method in class cdc.util.data.Attribute
- setValue(short) - Method in class cdc.util.data.Attribute
- setValue(E) - Method in class cdc.util.data.Attribute
- setValue(Object) - Method in class cdc.util.data.Attribute
- setValue(String) - Method in class cdc.util.data.Attribute
- setValueOfMatchingAttributes(Parent, AttributePredicate, AttributeValueConverter, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Sets value of matching attributes.
- SHARE_ATTRIBUTE_NAMES - cdc.util.data.xml.XmlDataReader.Feature
-
If enabled, attributes names are shared using an internal cache.
- SHARE_ELEMENT_NAMES - cdc.util.data.xml.XmlDataReader.Feature
-
If enabled, element names are shared using an internal cache.
- SORT_ATTRIBUTES - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- SORT_ELEMENTS - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- sortAttributes(Parent, Comparator<Attribute>, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Sorts attributes of elements using a user defined sorter.
- sortChildren(Parent, Predicate<? super Parent>, Comparator<? super Child>, Evaluator<? super Parent>) - Static method in class cdc.util.data.util.DataUtils
-
Sorts children nodes using a user-defined comparator.
- sortChildren(Comparator<? super Child>) - Method in interface cdc.util.data.Parent
-
Sorts children locally.
- sortChildren(Comparator<? super Child>, boolean) - Method in interface cdc.util.data.Parent
-
Sorts children recursively.
- SPath - Class in cdc.util.data.paths
-
Simple path.
- SPath(String) - Constructor for class cdc.util.data.paths.SPath
T
- Text - Class in cdc.util.data
-
Text node.
- Text() - Constructor for class cdc.util.data.Text
- Text(Parent) - Constructor for class cdc.util.data.Text
- Text(Parent, String) - Constructor for class cdc.util.data.Text
- Text(Text) - Constructor for class cdc.util.data.Text
- Text(String) - Constructor for class cdc.util.data.Text
- TEXT - cdc.util.data.ElementContentType
-
The element has only text children.
- TEXT - cdc.util.data.NodeType
- textContentConverter - Variable in class cdc.util.data.xml.XmlDataReader
-
Text content converter.
- TextContentConverter - Interface in cdc.util.data.util
- TextPredicate - Interface in cdc.util.data.util
-
Interface used to filter text nodes.
- toString() - Method in class cdc.util.data.AbstractChild
- toString() - Method in class cdc.util.data.Attribute
- toString() - Method in class cdc.util.data.Element
- toString() - Method in class cdc.util.data.paths.Part
- toString() - Method in class cdc.util.data.paths.Path
- toString() - Method in class cdc.util.data.paths.SPath
- toString(Document, String, XmlWriter.Feature...) - Static method in class cdc.util.data.xml.XmlDataWriter
- toString(Node, boolean, String, XmlWriter.Feature...) - Static method in class cdc.util.data.xml.XmlDataWriter
U
- unexpectedElement(Element) - Static method in exception cdc.util.data.DataException
- unexpectedElement(Element, String...) - Method in class cdc.util.data.util.AbstractResourceLoader
- unexpectedElement(Element, V, String...) - Method in class cdc.util.data.util.AbstractResourceLoader
- USE_SINGLE_QUOTE - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
- USE_XML_EOL - cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
V
- valueOf(String) - Static method in enum cdc.util.data.ElementContentType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum cdc.util.data.NodeType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum cdc.util.data.paths.Part.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum cdc.util.data.xml.XmlDataReader.Feature
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum cdc.util.data.ElementContentType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum cdc.util.data.NodeType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum cdc.util.data.paths.Part.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum cdc.util.data.tools.XmlNormalizer.MainArgs.Feature
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum cdc.util.data.xml.XmlDataReader.Feature
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- write(Node) - Method in class cdc.util.data.xml.XmlDataWriter
-
Writes a node.
- write(XmlWriter, Node) - Static method in class cdc.util.data.xml.XmlDataWriter
-
Writes a node to an XmlWriter.
- write(XmlWriter, Node, boolean) - Static method in class cdc.util.data.xml.XmlDataWriter
-
Writes a node to an XmlWriter.
X
- XmlCheckClassRefs - Class in cdc.util.data.tools
-
Utility used to check existence of classes in an XML file.
- XmlCheckClassRefs.MainArgs - Class in cdc.util.data.tools
- XmlDataReader - Class in cdc.util.data.xml
-
Class used to read an XML source and produce a Document.
- XmlDataReader() - Constructor for class cdc.util.data.xml.XmlDataReader
- XmlDataReader(XmlDataReader.Feature...) - Constructor for class cdc.util.data.xml.XmlDataReader
- XmlDataReader.Feature - Enum in cdc.util.data.xml
- XmlDataWriter - Class in cdc.util.data.xml
-
Class used to save data Nodes as XML.
- XmlDataWriter(XmlWriter) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(File) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(File, Compressor) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(File, String) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(File, String, Compressor) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(OutputStream) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(OutputStream, String) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(PrintStream) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(PrintStream, String) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(Writer) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(String) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(String, Compressor) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(String, String) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlDataWriter(String, String, Compressor) - Constructor for class cdc.util.data.xml.XmlDataWriter
- XmlNormalizer - Class in cdc.util.data.tools
-
Toy utility that can be used to "normalize" or modify an XML file.
- XmlNormalizer.MainArgs - Class in cdc.util.data.tools
- XmlNormalizer.MainArgs.Feature - Enum in cdc.util.data.tools
All Classes All Packages