Uses of Class
tigase.xml.Element
Packages that use Element
Package
Description
Simple XML parser implementation.
This package contains implementation of simple data base stored in XML file.
-
Uses of Element in tigase.xml
Methods in tigase.xml that return ElementModifier and TypeMethodDescription@NonNull ElementAdd CData node with passed value@NonNull ElementAdd element as a child.@NonNull ElementElement.addChildren(@NonNull List<Element> children) Add childrenElement.clone()final ElementDefaultElementFactory.elementInstance(String name, String cdata, StringBuilder[] attributesNames, StringBuilder[] attributesValues) ElementFactory.elementInstance(String name, String cdata, StringBuilder[] attNames, StringBuilder[] attValues) @Nullable ElementMethod filters passed element children (and subchildren) and returns first child matching this path@Nullable ElementMethod returns first child which name matches@Nullable ElementMethod returns first child which matches name and xmlns@Nullable ElementMethod returns first child which matches predicate@Nullable ElementElement.findChildAt(@NonNull Predicate<Element> predicate, @NonNull Predicate<Element>... path) Method returns first element which matches path@Nullable ElementElement.findChildAt(@NonNull Path path) Method returns first element which matches path@NonNull ElementMethod executes consumer passing self as a parameter Useful for conditional building of element in the single line@NonNull ElementElement.setAttribute(@NonNull String name, @NonNull String value) Method sets attribute value@NonNull ElementElement.setAttributes(@NonNull Map<String, String> attributes) Method replaces all attributes with name-value pairs provided in the map@NonNull ElementMethod sets CData of the element.@NonNull ElementElement.setChildren(@NonNull List<XMLNodeIfc> nodes) Method replaces all nodes (children and cdata) with passed list of children@NonNull ElementMethod sets XMLNS of the elementMethods in tigase.xml that return types with arguments of type ElementModifier and TypeMethodDescriptionMethod returns predicate testingElementattribute name and valuePath.evaluateAll(@NonNull Element element) Method filters passed element children (and subchildren) and returns children matching this pathElement.findChildren(@NonNull Predicate<Element> predicate) Method returns list of children matching predicateElement.findChildrenAt(@NonNull Path path) Method returns list of children matching pathElement.getChildren()Method returns list of all childrenDomBuilderHandler.getParsedElements()Method returns predicate testingElementnameElementFilters.nameAndAttribute(@NotNull String name, @NotNull String attributeName, @NotNull String attributeValue) Method returns predicate testingElementname, attribute name and valueElementFilters.nameAndXMLNS(@NotNull String name, @NotNull String xmlns) Method returns predicate testingElementname and xmlnsMethod returns predicate testingElementXMLNSMethods in tigase.xml with parameters of type ElementModifier and TypeMethodDescription@NonNull ElementAdd element as a child.@Nullable ElementMethod filters passed element children (and subchildren) and returns first child matching this pathPath.evaluateAll(@NonNull Element element) Method filters passed element children (and subchildren) and returns children matching this pathbooleanElement.removeChild(@NonNull Element child) Method removes child instancebooleanMethod parameters in tigase.xml with type arguments of type ElementModifier and TypeMethodDescription@NonNull ElementElement.addChildren(@NonNull List<Element> children) Add children<R> @NotNull List<R> Element.compactMapChildren(@NonNull Function<Element, ? extends R> mapper) Method applies function against each child of the element and returns list of non-null return values<R> @NotNull List<R> Element.compactMapChildren(@Nullable Predicate<Element> predicate, @NonNull Function<Element, ? extends R> mapper) Method applies function against each child of the element and returns list of non-null return values<R> @NotNull List<R> Element.compactMapChildren(@Nullable Predicate<Element> predicate, @NonNull Function<Element, ? extends R> mapper) Method applies function against each child of the element and returns list of non-null return values@Nullable ElementMethod returns first child which matches predicate@Nullable ElementElement.findChildAt(@NonNull Predicate<Element> predicate, @NonNull Predicate<Element>... path) Method returns first element which matches pathElement.findChildren(@NonNull Predicate<Element> predicate) Method returns list of children matching predicatevoidElement.forEachChild(@NonNull Predicate<Element> predicate, Consumer<Element> consumer) voidElement.forEachChild(@NonNull Predicate<Element> predicate, Consumer<Element> consumer) voidElement.forEachChild(Consumer<Element> consumer) <R> @Nullable RMethod executes function passing self as a parameter and returns its result<R> RMethod transforms first child element matching predicate<R> RMethod transforms first child element matching predicate<R> @NonNull List<R> Element.mapChildren(@NonNull Function<Element, ? extends R> mapper) Method applies function against each child of the element and returns list results<R> @NonNull List<R> Element.mapChildren(@NonNull Predicate<Element> predicate, @NonNull Function<Element, ? extends R> mapper) Method applies function against each child of the element and returns list results<R> @NonNull List<R> Element.mapChildren(@NonNull Predicate<Element> predicate, @NonNull Function<Element, ? extends R> mapper) Method applies function against each child of the element and returns list resultsbooleanMethod test if this element matches predicate@NonNull ElementMethod executes consumer passing self as a parameter Useful for conditional building of element in the single linebooleanElement.removeChild(@NonNull Predicate<Element> predicate) Method removes first child matching predicateConstructors in tigase.xml with parameters of type Element -
Uses of Element in tigase.xml.db
Subclasses of Element in tigase.xml.dbMethods in tigase.xml.db that return ElementModifier and TypeMethodDescriptionDBElementFactory.elementInstance(String name, String cdata, StringBuilder[] attnames, StringBuilder[] attvalues) DescribeelementInstancemethod here.