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

HashMap<String, ArrayList<String> > jaxe::Config::getParametresNoeud ( final Element  refElement,
final String  typeNoeud,
final String  nom 
) [inline]

Renvoie la table des paramètres d'affichage d'un noeud. Le nom peut être null si typeNoeud vaut "element" et que refElement n'est pas null.

Returns:
la table hash

Definition at line 2020 of file Config.java.

References getParametresNoeud(), getRefConf(), and nomElement().

Referenced by jaxe::JaxeElement::creer(), getParametresElement(), getParametresNoeud(), and valeurParametreElement().

                                                                                                                                     {
        if (refElement != null) {
            final Config conf = getRefConf(refElement);
            if (conf != null && conf != this)
                return(conf.getParametresNoeud(refElement, typeNoeud, nom));
        }
        Element base;
        if ("element".equals(typeNoeud))
            base = getAffichageElement(nomElement(refElement));
        else if ("instruction".equals(typeNoeud)) {
            base = null;
            Element elplug = findElement(getAffichageNoeuds(), "PLUGIN_INSTRUCTION");
            while (elplug != null) {
                if (nom != null && nom.equals(elplug.getAttribute("cible"))) {
                    base = elplug;
                    break;
                }
                elplug = nextElement(elplug, "PLUGIN_INSTRUCTION");
            }
        }else if ("commentaire".equals(typeNoeud)) {
            final Element elplug = findElement(getAffichageNoeuds(), "PLUGIN_COMMENTAIRE");
            if (elplug == null) {
                base = null;
            } else {
                base = elplug;
            }
        }else
            base = null;
        if (base == null)
            return(new HashMap<String, ArrayList<String>>());
        if (cacheParametres == null)
            cacheParametres = new HashMap<Element, HashMap<String, ArrayList<String>>>();
        HashMap<String, ArrayList<String>> hashparams = cacheParametres.get(base);
        if (hashparams == null)
            hashparams = construireCacheParams(base);
        return(hashparams);
    }


Generated by  Doxygen 1.6.0   Back to index