Logo Search packages:      
Sourcecode: jaxe version File versions  Download package

String jaxe::Config::documentationAttribut ( final Element  refParent,
final Element  refAttribut 
) [inline]

Renvoie la documentation d'un attribut à partir de la référence de l'élément parent et la référence de l'attribut.

Definition at line 2485 of file Config.java.

References dom_valeurElement(), getRefConf(), listeElementsStrings(), nomAttribut(), and nomElement().

Referenced by jaxe::AttributePanel::createInputLists(), and documentationAttribut().

                                                                                            {
        final String nomElement = nomElement(refParent);
        final String nomAttribut = nomAttribut(refAttribut);
        final ArrayList<Element> lstrings = listeElementsStrings();
        for (final Element strings : lstrings) {
            Element sel = findElement(strings, "STRINGS_ELEMENT");
            while (sel != null) {
                if (sel.getAttribute("element").equals(nomElement)) {
                    Element sat = findElement(sel, "STRINGS_ATTRIBUT");
                    while (sat != null) {
                        if (sat.getAttribute("attribut").equals(nomAttribut)) {
                            final Element eldoc = findElement(sat, "DOCUMENTATION");
                            if (eldoc != null &&eldoc.getFirstChild() != null)
                                return(dom_valeurElement(eldoc));
                            break;
                        }
                        sat = nextElement(sat, "STRINGS_ATTRIBUT");
                    }
                }
                sel = nextElement(sel, "STRINGS_ELEMENT");
            }
        }
        return(getRefConf(refParent).getSchema().documentationAttribut(refAttribut));
    }


Generated by  Doxygen 1.6.0   Back to index